Skip to main content

Snappier CVE-2026-44302

HIGH
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-05-06 https://github.com/brantburnett/Snappier GHSA-pggp-6c3x-2xmx
7.5
CVSS 3.1 · Vendor: https://github.com/brantburnett/Snappier
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify endpoint accepting compressed data
  2. Delivery
    Craft 15-byte malformed Snappy stream
  3. Exploit
    Send via HTTP POST
  4. Execution
    Trigger SnappyStream.Decompress
  5. Persist
    Enter infinite loop in Crc32CAlgorithm.Append
  6. Impact
    Thread 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

nuget snappier fix: 1.3.1

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

Vendor (https://github.com/brantburnett/Snappier) PRIMARY 7.5 HIGH
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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

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

csharp
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 returns

Impact

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.0%
Top 88% exploitable
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Affected Products (CPE)CVE.org

pkg:nuget/snappier

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy