GHSA-8ppf-4f7h-5ppj

    Dashboard / Vulnerabilities / GHSA-8ppf-4f7h-5ppj

    GHSA-8ppf-4f7h-5ppj

    Published: 21 Jul 2026Last Modified: 10 Sept 2026

    Summary: pyasn1: Quadratic complexity in OBJECT IDENTIFIER and RELATIVE-OID processing allows denial of service

    Details: ### Impact The BER/CER/DER decoders process OBJECT IDENTIFIER and RELATIVE-OID values in quadratic time relative to the number of arcs. A small crafted payload (tens of kilobytes) containing an OID with many arcs consumes seconds of CPU per decode() call, allowing denial of service in any application that decodes untrusted ASN.1 data (certificates, LDAP, SNMP, Kerberos, etc.). The corresponding encoders have the same quadratic behavior, reachable when an application re-encodes previously decoded attacker-supplied values. The arc-size limit introduced for CVE-2026-23490 bounds the byte length of an individual arc but not the number of arcs, so it does not mitigate this issue. ### Affected components ObjectIdentifierPayloadDecoder and RelativeOIDPayloadDecoder in pyasn1/codec/ber/decoder.py; ObjectIdentifierEncoder and RelativeOIDEncoder in pyasn1/codec/ber/encoder.py. The CER and DER codecs inherit these and are equally affected. ### Patches Fixed in pyasn1 0.6.4: arc accumulation in both decoders and encoders now runs in linear time. ### Workarounds Limit the size of untrusted ASN.1 input before decoding.

    Affected packages

    Package

    Name: pyasn1

    Purl: pkg:pypi/pyasn1

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0
    Fixed -0.6.4

    Affected versions

    0.0.10a
    0.0.11a
    0.0.12a
    0.0.13
    0.0.13a
    0.0.13b
    0.0.6a
    0.0.9a

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High
    GHSA-8ppf-4f7h-5ppj | CVE-DB