Stack references to locations outside buffers may become invalid if they exist during a GC compaction in Snappier
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- High
- Impact type
- —
- Confidentiality · integrity · availability
- Low · Low · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| brantburnett | Snappier | = 1.1.0 | — | No fix listed | CNA |
| — | Snappier (NuGet) | 1.1.0 to before 1.1.1 | 1.1.1 | Patch available | GHSA-838x-pcvx-6p5w |
- Snappier Vendorbrantburnett Affected = 1.1.0 Fixed in — No fix listed CNA
- Snappier (NuGet) Vendor— Affected 1.1.0 to before 1.1.1 Fixed in 1.1.1 Patch available GHSA-838x-pcvx-6p5w
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:snappier_project:snappier:1.1.0:*:*:*:*:*:*:* | 1.1.0 | Vulnerable | Snappier Project |
- cpe:2.3:a:snappier_project:snappier:1.1.0:*:*:*:*:*:*:* Versions 1.1.0 Vulnerable ·Snappier Project
Remediation
- Fix · GHSA-838x-pcvx-6p5w Snappier (NuGet) Fixed in 1.1.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2023-28638
- 2026-10-03 Alias added: GHSA-838x-pcvx-6p5w
References
Advisory 2
More brantburnett vulnerabilities
- TI-2026-32271 Snappier: Infinite loop in SnappyStream decompression on malformed framed input CVSS 3.1HIGH 7.5
Sources
- CVE-2023-28638 · CVE Program
- CVE-2023-28638 · NVD
- FIRST EPSS
- GHSA-838x-pcvx-6p5w · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences