CVE-2026-136904 in POCO Libraries
Summary
by MITRE • 11/25/2026
POCO C++ Libraries through 1.15.4 contain a denial of service vulnerability in InflatingStreamBuf::reset() and InflatingInputStream::reset() that fails to discard unconsumed compressed input after decompression errors. Attackers can supply one corrupt zlib, gzip or zip-deflate stream to applications reusing an InflatingInputStream, causing all later stream reads, including valid ones, to fail.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/25/2026
The POCO C++ Libraries version 1.15.4 and earlier contain a critical denial of service vulnerability within the decompression components, specifically affecting the InflatingStreamBuf::reset() and InflatingInputStream::reset() methods. This flaw stems from an improper state management mechanism where the library fails to properly discard or reset internal buffers containing unconsumed compressed input data when a decompression error occurs. In typical usage scenarios involving stream reuse, applications often rely on these classes to process multiple sequential data streams without reallocating memory or reinitializing low-level structures every time. However, when an attacker supplies a corrupt zlib, gzip, or zip-deflate stream that triggers a decompression failure, the internal state of the InflatingInputStream is left in an inconsistent condition. The library does not clear the residual compressed bytes from its internal buffer before allowing subsequent operations to proceed, leading to a persistent corruption of the input stream's logical position and integrity.
The operational impact of this vulnerability is severe for any application that reuses instances of InflatingInputStream or related decompression objects across multiple requests or data processing cycles. Once an error occurs during the decomposition of maliciously crafted compressed data, all subsequent reads from that same stream instance will fail, regardless of whether the incoming data in those later operations is valid and well-formed. This effectively creates a persistent denial of service condition for the specific application component handling these streams. For services such as web servers, API gateways, or file processing utilities that maintain long-lived connections or object pools to optimize performance, this flaw can lead to complete unavailability of functionality after just one successful exploitation attempt by an attacker. The vulnerability does not require privilege escalation and can be triggered remotely if the affected library is exposed through a network service accepting compressed payloads.
From a classification perspective, this issue aligns with CWE-401, which describes missing release of memory or other resource after effective use, although in this context it manifests more specifically as improper state reset leading to functional failure rather than just resource exhaustion. It also relates closely to CWE-252, unchecked return value, where the error condition from decompression is not adequately handled by resetting the stream's internal pointers and buffers. In terms of adversary tactics, this vulnerability supports Denial of Service (T1499) techniques within the MITRE ATT&CK framework, specifically under endpoint denial of service or resource exhaustion vectors. Attackers can leverage this flaw to disrupt availability without needing to exploit code execution vulnerabilities, making it a potent tool for disrupting critical infrastructure services that rely on efficient stream processing.
Mitigation strategies should focus primarily on upgrading to patched versions of the POCO C++ Libraries where this state management issue has been resolved by ensuring that reset operations fully clear internal buffers and reinitialize all relevant flags upon decompression errors. For applications unable to immediately upgrade, developers must implement defensive coding practices such as avoiding stream reuse after any detected error condition. Instead of resetting a potentially corrupted InflatingInputStream instance, the application should discard the current object entirely and instantiate a new one for subsequent operations. Additionally, input validation at the network or API boundary can help detect malformed compressed streams before they reach the decompression layer, although this is less reliable than fixing the underlying library behavior. Regular security audits of code paths that handle external compressed data are recommended to ensure proper error handling and state isolation mechanisms are in place.