CVE-2023-28638
C# vulnerability analysis and mitigation

Overview

Snappier, a high-performance C# implementation of the Snappy compression algorithm, was found to contain a buffer overrun vulnerability (CVE-2023-28638) affecting version 1.1.0. The vulnerability was discovered and disclosed on March 27, 2023. The issue arose from a code rewrite that switched from using pinned buffers to byte references, which could potentially become invalid during garbage collection compaction (GitHub Advisory).

Technical details

The vulnerability occurs when byte references briefly point outside valid buffer areas during buffer range checks. The .NET garbage collector can only update byte references during compaction if they point within the buffer or exactly one byte past the end. If references point outside this area, the buffer may be moved while the reference remains unchanged, potentially invalidating buffer range checks and allowing buffer overruns. This issue is particularly concerning because one of the problematic range checks is based on input data in the decompression buffer, making it potentially exploitable through malformed input data (GitHub Advisory). The vulnerability has been assigned a CVSS v3.1 base score of 7.0 HIGH (NVD).

Impact

The primary impact of this vulnerability is the potential for buffer overruns, which would likely result in access to protected memory. When such access occurs, it typically triggers an exception and causes the process to terminate, effectively creating a denial of service condition. While more severe exploitation might be theoretically possible, the most probable outcome is service disruption (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been patched in release 1.1.1, and users are strongly advised to upgrade to this version. For users unable to upgrade immediately, a partial workaround exists: buffers can be pinned to a fixed location before using them for compression or decompression. However, this workaround is not completely effective as at least one temporary decompression buffer internal to the library is never pinned (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related C# vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-64095CRITICAL9.8
  • C#C#
  • DNN.PLATFORM
NoYesOct 28, 2025
CVE-2025-62594MEDIUM5.5
  • C#C#
  • ImageMagick
NoYesOct 27, 2025
CVE-2025-64094MEDIUM5.4
  • C#C#
  • DotNetNuke.Core
NoYesOct 28, 2025
CVE-2025-65955MEDIUM4.9
  • C#C#
  • imagemagick
NoYesDec 02, 2025
CVE-2025-62802MEDIUM4.3
  • C#C#
  • Dnn.Platform
NoYesOct 28, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management