Changes for version 0.37 - 2026-11-19

  • Security Fixes
    • CVE-2026-126540: cap INTEGER/ENUMERATED decode size to prevent quadratic cost
    • CVE-2026-126568: fix asn_recv OOM on truncated header or huge declared length
    • CVE-2026-126576: bounds-check REAL exponent length; fix long-form mantissa size
    • CVE-2026-126682: cap INTEGER/ENUMERATED encode size to prevent quadratic cost
    • CVE-2026-126819: fix zero-length BIT STRING reading past end of buffer
    • CVE-2026-126956: add configurable decode depth limit to prevent stack exhaustion
    • CVE-2026-131868: prevent huge allocations in asn_read and asn_get
    • CVE-2026-131877: limit OBJECT IDENTIFIER arc size to prevent quadratic cost
  • Bug Fixes
    • Discard invalid datagrams so SOCK_DGRAM sockets don't wedge
  • Incompatible Changes
    • INTEGER/ENUMERATED values over 1025 bytes (larger than an RSA-8192 modulus) are now rejected on decode and encode by default. Raise or disable the limit with configure(decode => { max_int_len => N }) and configure(encode => { max_int_len => N }); 0 means no limit.
    • Structures nested more than 99 levels deep are now rejected on decode by default. Raise or disable the limit with configure(decode => { max_depth => N }); 0 means no limit.
    • OBJECT IDENTIFIER and RELATIVE-OID arcs over 32 bytes (224 bits) are now rejected on decode and encode by default. Raise or disable the limit with configure(decode => { max_oid_arc_len => N }) and configure(encode => { max_oid_arc_len => N }); 0 means no limit.

Documentation

Modules

ASN.1 Encode/Decode library