{"id":"CVE-2026-59884","published":"2026-07-14T16:41:10Z","modified":"2026-07-15T13:50:29Z","title":"pyasn1 BER/CER/DER decoder denial of service via unbounded long-form tag IDs","vendor":"pyasn1","product":"pyasn1","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00616,"percentile":0.43792,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/pyasn1/pyasn1/security/advisories/GHSA-m4p7-r5rc-7g4j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pyasn1/pyasn1/commit/628e36ecbb5277a3f01572ce418ef54271b165a5","tags":["x_refsource_MISC"]},{"url":"https://github.com/pyasn1/pyasn1/releases/tag/v0.6.4","tags":["x_refsource_MISC"]}],"priority":{"score":14.0,"factors":[{"name":"EPSS percentile","points":8.76},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"pyasn1","affectedVersions":[{"vendor":"pyasn1","product":"pyasn1","versions":["< 0.6.4"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-07-15T13:50:17.314569Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pyasn1","vulnerableRanges":["<0.6.4"],"patched":["0.6.4"],"from":["GHSA-m4p7-r5rc-7g4j","PYSEC-2026-3455"],"provenance":"source"}],"summary":{"text":"The pyasn1 library, a generic ASN.1 implementation for Python, contains a flaw in its shared BER decoder (used by the CER and DER codecs) where long-form tag IDs are accumulated without any upper bound on their size. An attacker can exploit this by sending crafted BER, CER, or DER input over the network to any application that decodes untrusted data with pyasn1, requiring no authentication or user interaction, to cause excessive CPU consumption and unhandled exceptions that deny service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:09Z"},"euvd":{"id":"EUVD-2026-43956","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pyasn1-cve-2026-23490","parents":[{"from":"CVE-2026-30922","to":"CVE-2026-59884","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:pyasn1","fromFixed":"0.6.3","toFixed":"0.6.4","daysApart":118},{"kind":"same-code","provenance":"machine","files":["pyasn1/codec/ber/decoder.py"],"commits":["https://github.com/pyasn1/pyasn1/commit/25ad481c19fdb006e20485ef3fc2e5b3eff30ef0","https://github.com/pyasn1/pyasn1/commit/5a49bd1fe93b5b866a1210f6bf0a3924f21572c8","https://github.com/pyasn1/pyasn1/commit/628e36ecbb5277a3f01572ce418ef54271b165a5"],"basis":"shared function","functions":["__call__"]}]}],"packageHistory":[{"cve":"CVE-2026-23490","published":"2026-01-16","fixed":"0.6.2","kev":false},{"cve":"CVE-2026-30922","published":"2026-03-18","fixed":"0.6.3","kev":false},{"cve":"CVE-2026-59884","published":"2026-07-14","fixed":"0.6.4","kev":false},{"cve":"CVE-2026-59885","published":"2026-07-14","fixed":"0.6.4","kev":false},{"cve":"CVE-2026-59886","published":"2026-07-14","fixed":"0.6.4","kev":false},{"cve":"CVE-2026-119194","published":"2026-10-29","fixed":"0.6.5","kev":false}],"package":"PyPI:pyasn1"}}