Skip to main content

pyasn1 EUVDEUVD-2026-43956

| CVE-2026-59884 HIGH
Uncontrolled Resource Consumption (CWE-400)
2026-07-14 GitHub_M GHSA-m4p7-r5rc-7g4j
7.5
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

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

  1. Access
    Reach pyasn1 decode endpoint
  2. Delivery
    Submit crafted long-form ASN.1 tag
  3. Exploit
    Decoder accumulates unbounded tag octets
  4. Execution
    Construct arbitrarily large integer
  5. Persist
    Quadratic CPU cost or unhandled ValueError
  6. Impact
    Service denial of service

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V2 - Validation and Business Logic Resource consumption limits
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 only that the target application feed attacker-controlled data to pyasn1's BER, CER, or DER decoder - no authentication, user interaction, or special configuration is needed (AV:N/AC:L/PR:N/UI:N), so any endpoint that decodes untrusted ASN.1 against a pre-0.6.4 pyasn1 is exposed. The concrete prerequisite is a decode path reachable by untrusted input (e.g. certificate/CRL parsing, SNMP, LDAP, or token handling); what limits exploitation is that the impact is availability-only (no data disclosure or code execution), the more severe unhandled-ValueError crash requires the target to run Python 3.11 or later, and applications that only decode trusted, internally generated ASN.1 are not realistically at risk.

Impact

The CVSS 3.1 vector (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H, base 7.5) reflects a remotely triggerable, unauthenticated, low-complexity availability-only impact with no confidentiality or integrity effect - consistent with the description of a pure DoS. There is no EPSS score, KEV listing, or public exploit provided in the input, so real-world exploitation pressure appears low despite the high base score; the fix commit's test cases (1<<140 tags) demonstrate triggerability but are regression tests, not weaponized exploits. The realistic risk hinges on exposure: applications that decode attacker-controlled ASN.1 (certificate validation, SNMP agents, LDAP, token parsing) face genuine DoS exposure, while systems that only decode trusted internal data are low priority. No conflicting signals were observed - the vector and description agree that this is network-reachable availability loss; the main caveat is that the Python 3.11+ ValueError crash path is more severe (an immediate unhandled exception) than the quadratic slowdown seen on older interpreters.

Exploit ScenarioDerived

An attacker submits a crafted certificate, SNMP packet, LDAP message, or token whose ASN.1 encoding contains a long-form tag with an excessive number of continuation octets to a network service that decodes it with pyasn1. On Python 3.11+ the decoder raises an unhandled ValueError while formatting the enormous tag ID, crashing the request or worker; on older interpreters the quadratic big-integer processing pins CPU. No public proof-of-concept exploit exists, but the patch's regression tests show the exact triggering encodings.

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

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

Alert me

AnalysisAIv1 – Jul 14, 2026

Denial of service in the pyasn1 Python ASN.1 library (versions prior to 0.6.4) allows a remote attacker to exhaust CPU and crash applications by supplying crafted BER, CER, or DER encoded data. The shared BER decoder parses long-form tags without bounding the tag ID size, so a malicious tag forces construction of an arbitrarily large integer whose processing scales quadratically, and on Python 3.11+ triggers unhandled ValueError exceptions in integer-to-string error formatting. No public exploit identified at time of analysis, though the fix commit ships proof-of-concept test cases; not listed in CISA KEV.

RemediationAI

Vendor-released patch: upgrade pyasn1 to version 0.6.4 or later, which introduces a MAX_TAG_OCTETS = 20 limit (rejecting tag IDs beyond ~140 bits with a PyAsn1Error) and a hexadecimal-fallback in tag string formatting to avoid the Python 3.11+ integer-to-string ValueError; see the fix commit https://github.com/pyasn1/pyasn1/commit/628e36ecbb5277a3f01572ce418ef54271b165a5 and advisory https://github.com/pyasn1/pyasn1/security/advisories/GHSA-m4p7-r5rc-7g4j. Because pyasn1 is frequently a transitive dependency, audit your dependency tree (pip show pyasn1 and lockfiles) and pin the fixed version across all consuming services. If immediate upgrade is not possible, compensating controls include validating or size-limiting untrusted ASN.1 input before it reaches the decoder (reject inputs containing implausibly long-form tags), restricting which network endpoints accept externally supplied DER/BER/CER blobs, and running decode operations under CPU-time or separate worker-process limits so a single malicious payload cannot starve the whole service - the trade-off being added latency and operational complexity, and none of these fully close the crash path the way the patch does.

Affected VersionsENISA

pyasn1 < 0.6.4

Affected Packages

pypi pyasn1 fix: 0.6.4
pypi pyssn1 fix: 0.6.4

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in pypi

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

pyasn1 implements ASN.1 (Abstract Syntax Notation One) encoding/decoding used pervasively in cryptography, PKI, X.509 certificate parsing, SNMP, and LDAP tooling. In BER/CER/DER encodings, tag numbers larger than 30 are represented in 'long form' as a sequence of continuation octets, each contributing 7 bits to the tag ID. The vulnerable code in pyasn1/codec/ber/decoder.py accumulated these continuation octets with no upper bound, letting an attacker build a Python big-integer of essentially unbounded width. This is a classic CWE-400 (Uncontrolled Resource Consumption): the quadratic cost of arbitrary-precision integer arithmetic drives CPU exhaustion, and secondarily, Python 3.11+ enforces sys.get_int_max_str_digits() so rendering such a huge integer to a decimal string in error/repr paths raises an uncaught ValueError. The CPE cpe:2.3:a:pyasn1:pyasn1 confirms the pyasn1 package itself (not a downstream consumer) is the affected component.

Know when Pyasn1 gets its next vulnerability

  • 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 (GitHub_M) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 7.5 HIGH

Untrusted ASN.1 is decoded without auth or interaction (AV:N/AC:L/PR:N/UI:N); impact is CPU exhaustion or an unhandled crash with no data exposure, so A:H and C:N/I:N.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE HIGH
Red Hat 5.9 MEDIUM

Primary rating from Vendor (GitHub_M).

CVSS VectorVendor: GitHub_M

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

Lifecycle Timeline

2
Patch available
Jul 14, 2026 - 23:21 EUVD
CVE Published
Jul 14, 2026 - 16:41 cve.org
HIGH 7.5

DescriptionCVE.org

pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER decoder shared by the CER and DER codecs parses long-form tags by accumulating continuation octets without an upper bound on the tag ID size, allowing a crafted input to force construction of an arbitrarily large integer with CPU cost growing quadratically and to trigger unhandled ValueError exceptions in Python 3.11+ error formatting paths. Any application decoding untrusted BER, CER, or DER input is affected. This issue is fixed in version 0.6.4.

Blast Radius

ecosystem impact
† from your stack dependencies † transitive graph · vuln.today resolves 4-path depth
  • 52 pypi packages depend on pyasn1 (18 direct, 34 indirect)

Ecosystem-wide dependent count for version 0.6.4.

Executive ViewAI

Why It Matters

pyasn1, a Python library used for SSL/TLS and certificate processing, contains a remote denial-of-service vulnerability (CVE-2026-59884, CVSS 7.5) allowing attackers to crash applications that parse external ASN.1 data. Organizations using pyasn1 for certificate validation or cryptographic operations face potential service outages without remediation.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations include: (1) implement strict input validation and maximum length enforcement on BER/CER/DER tag processing to prevent exploitation; (2) deploy rate limiting on endpoints accepting external ASN.1 data; (3) use network segmentation to isolate pyasn1-dependent services from untrusted networks; (4) monitor for abnormal CPU consumption during parsing operations as an exploitation indicator; (5) restrict ASN.1 processing to trusted internal data sources where feasible; (6) evaluate hardened ASN.1 library alternatives for long-term risk reduction.

Threat Intelligence Overview

EPSS Score
0.4%
Top 72% exploitable
Prevalence
High
widely used Python ASN.1 library, common transitive dependency in PKI/LDAP tooling
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor GitHub VulDB

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.4%
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
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

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.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 SUSE Linux Enterprise High Performance Computing 15 SP7 SUSE Linux Enterprise Module for Python 3 15 SP7 SUSE Linux Enterprise Server 15 SP7 SUSE Linux Enterprise Server for SAP Applications 15 SP7 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS Fixed
SUSE Linux Enterprise High Performance Computing 15 SP4 SUSE Linux Enterprise Module for Public Cloud 15 SP4 SUSE Linux Enterprise Server 15 SP4 SUSE Manager Proxy 4.3 SUSE Manager Retail Branch Server 4.3 SUSE Manager Server 4.3 Fixed
SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS Fixed

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