CVE-2023-28638
Last modified
CVE-2023-28638 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. Snappier is a high performance C# implementation of the Snappy compression algorithm. This is a buffer overrun vulnerability that can affect any user of Snappier 1.1.0. EPSS estimates a 0.55% chance of exploitation in the next 30 days.
Description
Snappier is a high performance C# implementation of the Snappy compression algorithm. This is a buffer overrun vulnerability that can affect any user of Snappier 1.1.0. In this release, much of the code was rewritten to use byte references rather than pointers to pinned buffers. This change generally improves performance and reduces workload on the garbage collector. However, when the garbage collector performs compaction and rearranges memory, it must update any byte references on the stack to refer to the updated location. The .NET garbage collector can only update these byte references if they still point within the buffer or to a point one byte past the end of the buffer. If they point outside this area, the buffer itself may be moved while the byte reference stays the same. There are several places in 1.1.0 where byte references very briefly point outside the valid areas of buffers. These are at locations in the code being used for buffer range checks. While the invalid references are never dereferenced directly, if a GC compaction were to occur during the brief window when they are on the stack then it could invalidate the buffer range check and allow other operations to overrun the buffer. This should be very difficult for an attacker to trigger intentionally. It would require a repetitive bulk attack with the hope that a GC compaction would occur at precisely the right moment during one of the requests. However, one of the range checks with this problem is a check based on input data in the decompression buffer, meaning malformed input data could be used to increase the chance of success. Note that any resulting buffer overrun is likely to cause access to protected memory, which will then cause an exception and the process to be terminated. Therefore, the most likely result of an attack is a denial of service. This issue has been patched in release 1.1.1. Users are advised to upgrade. Users unable to upgrade may pin buffers to a fixed location before using them for compression or decompression to mitigate some, but not all, of these cases. At least one temporary decompression buffer is internal to the library and never pinned.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Snappier Project | Snappier | 1.1.0 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2023-28638?
How severe is CVE-2023-28638?
How do I fix CVE-2023-28638?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2023
- CVE-2023-28632GLPI is a free asset and IT management software package. Sta…8.1
- CVE-2023-28633GLPI is a free asset and IT management software package. Sta…5.4
- CVE-2023-28634GLPI is a free asset and IT management software package. Sta…8.8
- CVE-2023-28635vantage6 is privacy preserving federated learning infrastruc…5.4
- CVE-2023-28636GLPI is a free asset and IT management software package. Sta…4.8
- CVE-2023-28637DataEase is an open source data visualization analysis tool.…8.8
- CVE-2023-28639GLPI is a free asset and IT management software package. Sta…6.1
- CVE-2023-2864A vulnerability was found in SourceCodester Online Jewelry S…6.1
- CVE-2023-28640Apiman is a flexible and open source API Management platform…3.1
- CVE-2023-28642runc is a CLI tool for spawning and running containers accor…7.8
- CVE-2023-28643Nextcloud server is an open source home cloud implementation…8.8
- CVE-2023-28644Nextcloud server is an open source home cloud implementation…7.5
Are you affected by CVE-2023-28638?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
