Snappier CVE-2026-44302
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify endpoint accepting compressed data
-
DeliveryCraft 15-byte malformed Snappy stream
-
ExploitSend via HTTP POST
-
ExecutionTrigger SnappyStream.Decompress
-
PersistEnter infinite loop in Crc32CAlgorithm.Append
-
ImpactThread exhaustion DoS
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK
1 technique across 1 tactic: Impact The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the target application to use the SnappyStream class in decompression mode (CompressionMode.Decompress) on data sourced from network input or other attacker-controlled sources. The vulnerability is NOT triggered by block-level Snappy.Decompress API or compression-mode operations. Applications processing only trusted internal data (e.g., decompressing from secure storage or inter-service communication on trusted networks with mutual TLS) face minimal risk unless lateral movement is a concern. The attack succeeds against default configurations with no special features or non-default settings required. Authentication is not a limiting factor - unauthenticated API endpoints, authenticated endpoints, and even internal microservice endpoints are all exploitable if they process untrusted compressed data. The attack does not require user interaction, specific platform versions, or timing conditions. The primary limiting factor is whether the application exposes a code path where SnappyStream.Decompress processes attacker-supplied bytes, which is common in data ingestion APIs, log collection services, and distributed system protocols using Snappy compression. |
| Impact | Real-world risk is HIGH for internet-facing .NET services processing compressed data from untrusted sources. CVSS 7.5 (AV:N/AC:L/PR:N/UI:N) correctly reflects unauthenticated remote exploitation with low complexity - an attacker needs only to send 15 malformed bytes to any endpoint accepting Snappy-compressed input. The uncatchable nature of the infinite loop is critical: standard defensive coding (try/catch blocks) cannot mitigate the attack, and the thread remains locked until process termination. This makes it highly effective for resource exhaustion compared to typical DoS vectors that can be caught and rate-limited. No EPSS or KEV data provided, but the combination of publicly available POC, trivial exploit complexity, and widespread NuGet deployment suggests significant exposure. The attack is automatable (no human interaction required) and the technical impact is complete availability loss per affected thread. Prioritization depends on whether your .NET services accept compressed data from untrusted sources - if yes, this is patch-immediately severity despite 'only' being a DoS. Services using Snappier for internal compression of trusted data face minimal risk. The fix in version 1.3.1 is straightforward, suggesting low patch complexity and no known breaking changes. |
| Exploit ScenarioDerived | An attacker identifies a .NET web API endpoint accepting Snappy-compressed request bodies (common in high-performance REST APIs or gRPC services). They craft a 15-byte malformed framed-format Snappy stream using the exact byte sequence from the public POC and send it via HTTP POST. The server's SnappyStream decompression enters an infinite loop, burning 100% CPU on one thread indefinitely. By sending multiple concurrent requests (trivial with HTTP/2 multiplexing), the attacker exhausts all available worker threads in the ASP.NET thread pool, causing complete service unavailability for legitimate users. The service appears responsive to health checks (still accepts connections) but cannot process any requests requiring decompression, and no error logs are generated since no exception is thrown. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 06, 2026
Infinite loop denial-of-service in Snappier .NET library allows remote attackers to exhaust server resources with as few as 15 bytes of malformed Snappy-compressed data. The vulnerability affects the SnappyStream decompressor component when processing framed-format streams, causing an uncatchable busy-loop that cannot be interrupted via try/catch blocks. Publicly available exploit code exists (CVE researcher provided a working proof-of-concept). CVSS 7.5 with network vector and no authentication required indicates remotely exploitable attack surface in web applications processing compressed uploads or API payloads. No active exploitation confirmed at time of analysis, but the trivial exploit complexity (15-byte payload) makes this attractive for resource exhaustion attacks against .NET services using Snappier for decompression.
RemediationAI
Upgrade to Snappier version 1.3.1 or later, which includes the fix for the infinite loop condition in SnappyStreamDecompressor. Update the NuGet package reference in your .csproj file to '<PackageReference Include="Snappier" Version="1.3.1" />' and redeploy. The official fix commit is referenced in the GitHub security advisory at https://github.com/brantburnett/Snappier/security/advisories/GHSA-pggp-6c3x-2xmx. If immediate patching is not feasible, implement input validation before decompression: limit the maximum size of compressed payloads (e.g., reject inputs larger than expected data size plus compression overhead) and run decompression operations in isolated worker threads or processes with CPU time limits and health monitoring that can detect and terminate hung threads. For ASP.NET applications, configure request timeouts and implement async cancellation tokens on decompression operations to enable forced termination, though this will not prevent the thread spin itself. These mitigations reduce blast radius but do not eliminate the vulnerability - patching is the only complete fix. Note that cancellation tokens in .NET cannot interrupt a CPU-bound infinite loop unless the loop explicitly checks the token, which the buggy code does not do.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in nuget
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Snappier is a .NET port of Google's Snappy compression algorithm, commonly used for high-performance data compression in distributed systems, databases, and network protocols. The vulnerability resides in the SnappyStreamDecompressor.Decompress method's handling of framed-format Snappy streams, specifically when processing malformed chunk headers. The infinite loop occurs in the CRC32 validation path where Crc32CAlgorithm.Append is called repeatedly without advancing the stream position or detecting corruption. This is a CWE-835 (Loop with Unreachable Exit Condition) class defect, where missing input validation allows specially crafted frame headers to trigger a state machine that never terminates. Unlike typical .NET exceptions, this manifests as a userspace CPU spin rather than throwing an exception, making it invisible to standard error handling. The affected package is distributed via NuGet as 'Snappier' and is used in performance-critical .NET applications requiring fast compression, including Couchbase clients, event streaming systems, and data serialization layers.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/brantburnett/Snappier) · only source for this CVE.
CVSS VectorVendor: https://github.com/brantburnett/Snappier
DescriptionCVE.org
Summary
Snappier.SnappyStream enters an uncatchable infinite loop when decompressing a malformed framed-format Snappy stream as small as 15 bytes.
Details
The hang manifests as a userspace busy loop with SnappyStreamDecompressor.Decompress repeatedly calling Crc32CAlgorithm.Append. The exact non-terminating loop in or above Decompress has not been traced further.
PoC
using System.IO.Compression;
using Snappier;
byte[] data = { 0x00, 0x04, 0x00, 0x00, 0x64, 0x4e, 0x6c, 0x71, 0x79, 0x20, 0x77, 0x6f, 0x72, 0x6c, 0x64 };
using var src = new MemoryStream(data);
using var snap = new SnappyStream(src, CompressionMode.Decompress);
using var dst = new MemoryStream();
snap.CopyTo(dst); // never returnsImpact
A caller using SnappyStream on attacker-controlled bytes can be made to spin forever and burn a thread until the process is killed. try/catch around the stream operation can't recover (no exception is thrown).
Executive ViewAI
CVE-2026-44302 is a remote denial-of-service vulnerability in the Snappier .NET compression library that allows unauthenticated attackers to crash or freeze services processing compressed data with a minimal 15-byte payload. Any organization using Snappier for decompression in web applications, APIs, or file upload handlers faces immediate service disruption risk, particularly if no rate-limiting or request validation is deployed.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Implement strict input validation rejecting Snappy streams with suspicious framing; (2) Deploy request-level rate limiting and size restrictions on decompression endpoints; (3) Monitor CPU usage for busy-loop signatures; (4) Disable Snappier decompression if not business-critical; (5) Consider library replacement with alternative compression implementations pending vendor patch availability.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
GHSA-pggp-6c3x-2xmx
NVD
CVE.org
EPSS
Exploit-DB