{"id":"CVE-2026-59885","published":"2026-07-14T16:40:00Z","modified":"2026-07-14T17:32:43Z","title":"pyasn1: Quadratic complexity in OBJECT IDENTIFIER and RELATIVE-OID processing allows denial of service","vendor":"pyasn1","product":"pyasn1","tier":"tail","description":{"text":"pyasn1 is a generic ASN.1 library for Python. Prior to 0.6.4, the BER, CER, and DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs, so a small crafted payload containing an OID with many arcs consumes excessive CPU per decode() call and can deny service to applications that decode untrusted ASN.1 data. The corresponding encoders have the same quadratic behavior when an application re-encodes previously decoded attacker-supplied values. 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.43791,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"},{"id":"CWE-407","name":"Inefficient Algorithmic Complexity"}],"references":[{"url":"https://github.com/pyasn1/pyasn1/security/advisories/GHSA-8ppf-4f7h-5ppj","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9","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-14T17:32:32.986793Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"pyasn1","vulnerableRanges":["<0.6.4"],"patched":["0.6.4"],"from":["GHSA-8ppf-4f7h-5ppj","PYSEC-2026-3456"],"provenance":"source"}],"summary":{"text":"The pyasn1 Python ASN.1 library, in its BER, CER, and DER decoders and corresponding encoders before version 0.6.4, handles OBJECT IDENTIFIER and RELATIVE-OID values with quadratic complexity in the number of arcs. An attacker who can supply ASN.1 data to an application that decodes it can use a small crafted payload with an OID containing many arcs to exhaust CPU and cause denial of service, with no authentication or user interaction required and only network access needed.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:30:09Z"},"euvd":{"id":"EUVD-2026-43955","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-pyasn1-cve-2026-23490","parents":[{"from":"CVE-2026-23490","to":"CVE-2026-59885","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pyasn1/codec/ber/decoder.py"],"commits":["https://github.com/pyasn1/pyasn1/commit/3908f144229eed4df24bd569d16e5991ace44970","https://github.com/pyasn1/pyasn1/commit/be353d755f42ea36539b4f5053c652ddf56979a6","https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9"],"basis":"shared function","functions":["valueDecoder"]}]}],"children":[{"from":"CVE-2026-59885","to":"CVE-2026-119195","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pyasn1/codec/ber/decoder.py"],"commits":["https://github.com/pyasn1/pyasn1/commit/4ce00797c594b59c1fd6b86d9ebc3ba87b7ec9f9","https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9"],"basis":"shared function","functions":["valueDecoder"]}]},{"from":"CVE-2026-59885","to":"CVE-2026-119196","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pyasn1/codec/ber/decoder.py"],"commits":["https://github.com/pyasn1/pyasn1/commit/73ba7b043cc7e92cb37f16f2c955bff93b0e6f6c","https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9"],"basis":"shared function","functions":["valueDecoder"]}]},{"from":"CVE-2026-59885","to":"CVE-2026-119197","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["pyasn1/codec/ber/decoder.py"],"commits":["https://github.com/pyasn1/pyasn1/commit/ce3ec3390784780a530047e0e77be5ff457636a4","https://github.com/pyasn1/pyasn1/commit/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9"],"basis":"shared function","functions":["valueDecoder"]}]}],"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,"link":{"from":"CVE-2026-30922","to":"CVE-2026-59885","relation":"successor","confidence":"high","kind":"sequence","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/45bdb19eb7df4b3780fe9c912c63e99bffc39dd9"],"basis":"shared file"}]}},{"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},{"cve":"CVE-2026-119195","published":"2026-10-29","fixed":"0.6.5","kev":false}],"package":"PyPI:pyasn1"}}