
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2026-119197 is a denial-of-service vulnerability in the pyasn1 Python library caused by quadratic-complexity binary REAL decoding. Affecting all versions up to and including 0.6.4 (vulnerable loop present from v0.2.1 through v0.6.4), the flaw allows an unauthenticated remote attacker to exhaust CPU resources by supplying a crafted ASN.1 REAL value with a large mantissa. The vulnerability was disclosed on October 27, 2026, and fixed in version 0.6.5. It carries a CVSS v3.1 base score of 7.5 (High) (GitHub Security Advisory).
The root cause is CWE-407 (Inefficient Algorithmic Complexity) in RealPayloadDecoder.valueDecoder within pyasn1/codec/ber/decoder.py. The decoder builds a binary REAL mantissa one octet at a time using a loop that performs a left-shift on a growing integer (p <<= 8), an OR operation (p |= chunk[0]), and a byte-string suffix copy (chunk = chunk[1:]) for every octet — making decode time O(n²) in mantissa length. Because CER and DER reuse the BER REAL payload decoder, all three codec paths are affected. An attacker only needs to supply attacker-controlled ASN.1 data containing a REAL value that reaches any decode() call; no schema containing REAL is required, and the application does not need to further process the decoded object (GitHub Security Advisory, Fix Commit).
Successful exploitation causes CPU exhaustion on a single core, holding a decoding worker for seconds or longer per crafted request. Benchmarks on v0.6.4 showed BER decode times of ~0.33 s, ~1.3 s, ~6 s, and ~24 s for mantissa sizes of 50,000, 100,000, 200,000, and 400,000 octets respectively, with near-fourfold cost for each doubling of input size. The impact is limited to availability (no confidentiality or integrity loss), but repeated requests can sustain denial-of-service conditions against any service that passes attacker-controlled ASN.1 to pyasn1's BER, CER, or DER decoders (GitHub Security Advisory).
A proof-of-concept Python script is publicly available in the GitHub Security Advisory, demonstrating the quadratic CPU consumption by calling codec.decode() with crafted REAL-encoded ASN.1 input across BER, CER, and DER codecs. No authentication or user interaction is required, and attack complexity is low. There is no evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is currently 0.0 (GitHub Security Advisory).
decode() call (e.g., SNMP agents, LDAP clients, TLS certificate parsers, or any application accepting ASN.1 input).0x09 tag identifies REAL; 0x80 0x00 selects a positive base-2 binary value with a one-octet zero exponent, followed by N bytes of 0xff as the mantissa:def real_value(mantissa_octets):
content = b"\x80\x00" + b"\xff" * mantissa_octets
length = len(content).to_bytes(3, "big")
return b"\x09\x83" + length + contentpyasn1's decode() function, which enters the quadratic mantissa-building loop, consuming one CPU core for seconds or longer.0x09 followed by a long-form length and large payload); abnormally large ASN.1 messages compared to baseline traffic.pip show pyasn1 returning version ≤ 0.6.4) (GitHub Security Advisory).Upgrade pyasn1 to version 0.6.5 or later, which replaces the per-octet shift-and-slice loop with a single int.from_bytes(bytes(chunk), 'big') call, reducing mantissa decoding to linear time. The fix is applied in the shared BER payload decoder and covers BER, CER, and DER paths. If immediate upgrade is not possible, reject or strictly limit attacker-controlled ASN.1 input containing REAL values before passing it to pyasn1, and consider deploying rate limiting or CPU quotas on ASN.1 decoding operations to reduce exposure (GitHub Security Advisory, Release v0.6.5).
The vulnerability was reported by multiple researchers credited in the v0.6.5 release notes (manus-use, manus-pi, ucsurf, adriank31), suggesting coordinated responsible disclosure. The fix was merged and released promptly on October 27, 2026, the same day as the advisory publication. A Mastodon post from @thehackerwire noted the disclosure shortly after publication. No major vendor statements or significant media coverage beyond the GitHub advisory have been identified at this time (GitHub Security Advisory, Release v0.6.5).
Fix availability across major Linux distributions and their releases.
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."