CVE-2026-119197
pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.5, binary REAL decoding builds a large mantissa one octet at a time by shifting a growing integer and slicing the remaining byte string. Attacker-controlled ASN.1 includes a binary-encoded REAL with a large mantissa and reaches BER, CER, or DER decode(), with or without a schema containing REAL. RealPayloadDecoder.valueDecoder repeatedly performs a left shift, OR, and suffix copy for every mantissa octet, making decode time quadratic in mantissa length. A comparatively small REAL value can hold a decoding worker on one CPU core for seconds or longer and cause availability loss. This issue is fixed in version 0.6.5.
- Score
- 7.5 high
- Published
- 2026-10-29
- Links
- NVD · cve.org · Report wrong data
Matched ports (1)
| Port | Package | Version | Status | Maintainer |
|---|---|---|---|---|
| devel/py-pyasn1 | py312-pyasn1 | 0.6.4 | unaddressed | mhjacks@swbell.net |
Template for a VuXML entry
Check the version numbers before you commit this entry. Some ports share an entry in the CVE database with another port, such as sqlite2 and sqlite3. The version shown here may then be one that never existed for this port.
Ranges per package from the CVE rows that match this port, in pkg notation with the port's epoch and revision, every bound checked with pkg; one range per epoch the port actually had. make newentry in security/vuxml creates the vid.
<vuln vid="FIXME (make newentry)">
<topic>py312-pyasn1 -- FIXME</topic>
<affects>
<package>
<name>py312-pyasn1</name>
<range><lt>0.6.5</lt></range>
</package>
</affects>
<description>
<body xmlns="http://www.w3.org/1999/xhtml">
<p>CVE-2026-119197: pyasn1 is a generic ASN.1 library for Python. Prior
to 0.6.5, binary REAL decoding builds a large mantissa one octet at
a time by shifting a growing integer and slicing the remaining byte
string. Attacker-controlled ASN.1 includes a binary-encoded REAL
with a large mantissa and reaches BER, CER, or DER decode(), with
or without a schema containing REAL.
RealPayloadDecoder.valueDecoder repeatedly performs a left shift,
OR, and suffix copy for every mantissa octet, making decode time
quadratic in mantissa length. A comparatively small REAL value can
hold a decoding worker on one CPU core for seconds or longer and
cause availability loss. This issue is fixed in version 0.6.5.</p>
</body>
</description>
<references>
<cvename>CVE-2026-119197</cvename>
<url>https://nvd.nist.gov/vuln/detail/CVE-2026-119197</url>
</references>
<dates>
<discovery>2026-10-29</discovery>
<entry>2026-10-30</entry>
</dates>
</vuln>