<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Pyasn1 &lt;= 0.6.3 - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/pyasn1--0.6.3/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Tue, 21 Jul 2026 19:15:06 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/pyasn1--0.6.3/feed.xml" rel="self" type="application/rss+xml"/><item><title>pyasn1 Uncontrolled Resource Consumption (CVE-2026-59886)</title><link>https://feed.craftedsignal.io/briefs/2026-07-pyasn1-uncontrolled-resource-consumption/</link><pubDate>Tue, 21 Jul 2026 19:15:06 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-pyasn1-uncontrolled-resource-consumption/</guid><description>The pyasn1 library is vulnerable to uncontrolled resource consumption (excessive CPU and memory) when converting BER/CER/DER-encoded REAL values to Python floats, which can lead to a denial of service (DoS) in applications that decode untrusted ASN.1 data and then perform operations like printing, logging, comparing, or arithmetic on the decoded `univ.Real` objects.</description><content:encoded><![CDATA[<p>A critical vulnerability (CVE-2026-59886) has been identified in the <code>pyasn1</code> Python library, specifically affecting versions up to 0.6.3. This flaw, classified as uncontrolled resource consumption, arises when the <code>univ.Real</code> type converts specially crafted BER/CER/DER-encoded ASN.1 REAL values to Python floats. An attacker can craft a REAL value with a large exponent, which, upon conversion (e.g., via printing, logging, comparison, or arithmetic operations), attempts to materialize an astronomically large integer. This computationally intensive process consumes excessive CPU and memory, leading to a denial of service in applications that decode untrusted ASN.1 data and subsequently operate on these decoded objects. The issue is purely a DoS vector and does not involve remote code execution or data exfiltration. The vulnerability is fixed in <code>pyasn1</code> version 0.6.4, released to address this resource exhaustion attack.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An attacker crafts a malicious BER/CER/DER-encoded ASN.1 REAL value containing a very large exponent.</li>
<li>A vulnerable application, using <code>pyasn1</code> versions &lt;= 0.6.3, receives and decodes untrusted ASN.1 data.</li>
<li>The <code>pyasn1.codec.ber</code>, <code>cer</code>, or <code>der</code> decoders process the input, creating a <code>pyasn1.type.univ.Real</code> object.</li>
<li>The application then performs an operation that implicitly or explicitly triggers a float conversion on the crafted <code>univ.Real</code> object (e.g., <code>prettyPrint()</code>, <code>str()</code>, comparison, arithmetic operation, or <code>float()</code> call).</li>
<li>During this conversion, <code>pyasn1</code> attempts exact big-integer exponentiation based on the large exponent in the REAL value.</li>
<li>This computation requires materializing an extremely large intermediate integer, leading to a rapid and uncontrolled consumption of system CPU and memory resources.</li>
<li>The application becomes unresponsive or crashes due to resource exhaustion, resulting in a denial of service for legitimate users.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of CVE-2026-59886 leads to a denial of service (DoS) for applications processing untrusted ASN.1 REAL values using <code>pyasn1</code> library versions 0.6.3 or earlier. The vulnerability causes the application to consume excessive CPU and memory, often leading to unresponsiveness or a crash. Any operation that converts the <code>pyasn1.type.univ.Real</code> object to a Python float, such as printing, logging, comparing, or performing arithmetic, can trigger this resource exhaustion. While no specific victim counts or sectors are mentioned, any Python application that handles untrusted ASN.1 REAL data via <code>pyasn1</code> is at risk of being rendered unavailable.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li>Patch CVE-2026-59886 by upgrading the <code>pyasn1</code> library to version 0.6.4 or later immediately.</li>
<li>If immediate patching of <code>pyasn1</code> is not feasible, implement workarounds to avoid converting, printing, or comparing <code>pyasn1.type.univ.Real</code> objects from untrusted sources. Instead, inspect the raw (mantissa, base, exponent) tuple directly.</li>
</ul>
]]></content:encoded><category domain="severity">low</category><category domain="type">advisory</category><category>denial-of-service</category><category>vulnerability</category><category>python</category><category>library</category></item></channel></rss>