CVE-2026-75614

ASN1SCC: Out-of-bounds write in BitStream_DecodeConstraintWholeNumber (uPER/ACN)

Published Nov 5, 2026 CVSS 3.1 · 8.1 High EPSS < 1% KEV · Not listed
Description
ASN1SCC is an open source ASN.1 compiler for embedded systems. Prior to 4.7.0.1, BitStream_DecodeConstraintWholeNumber in asn1crt/asn1crt_encoding.c reads enough bits for a constrained integer but does not reject values above the declared range when the encoded range is not a power of two. Generated uPER and ACN decoders for variable-size SEQUENCE OF, OCTET STRING, BIT STRING, and string values use the invalid result as a loop or copy length, so a crafted over-range size field can write beyond a destination buffer. Decoding untrusted affected data can corrupt heap or stack memory, cause a crash, or potentially permit code execution. This issue is fixed in version 4.7.0.1.

Analysis

AI-generated

Technical impact

ASN1SCC is an open‑source ASN.1 compiler used in embedded systems. A bug in BitStream_DecodeConstraintWholeNumber, found in versions prior to 4.7.0.1, reads the required number of bits for a constrained integer but fails to reject values that exceed the declared range when that range is not a power of two. The decoded value is then used as a loop or copy length in generated uPER and ACN decoders for variable‑size SEQUENCE OF, OCTET STRING, BIT STRING, and string fields. A crafted over‑range size field can therefore overwrite memory beyond the intended destination buffer, leading to heap or stack corruption, crashes, or in worst cases, arbitrary code execution.

Affected Systems

The vulnerability affects the ESA Asn1Scc compiler in all releases prior to 4.7.0.1, and is fixed in that version. Any project that compiles ASN.1 specifications with a vulnerable version of Asn1Scc and subsequently decodes untrusted ASN.1 data is at risk.

Risk and Exploitability

The CVSS score of 8.1 indicates that the flaw is high severity. Exploitation requires the attacker to supply maliciously crafted ASN.1 data that encodes an out‑of-range value; the attack vector is therefore external if the affected application processes data from untrusted sources. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, so while the chance of exploitation is unclear, the potential impact is significant enough to warrant immediate attention.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Asn1Scc compiler to version 4.7.0.1 or later.
  • If an immediate upgrade is not possible, sanitize all incoming ASN.1 data by rejecting or limiting constrained integer fields whose encoded values exceed the declared bounds.
  • Ensure that applications employing the compiler enable runtime memory protection mechanisms such as stack canaries, address space layout randomization, and heap guard pages to reduce the risk of successful exploitation.

Generated by OpenCVE AI on November 5, 2026 at 19:57 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Esa
Esa asn1scc
Vendors & Products Esa
Esa asn1scc
Type Values Removed Values Added
Description ASN1SCC is an open source ASN.1 compiler for embedded systems. Prior to 4.7.0.1, BitStream_DecodeConstraintWholeNumber in asn1crt/asn1crt_encoding.c reads enough bits for a constrained integer but does not reject values above the declared range when the encoded range is not a power of two. Generated uPER and ACN decoders for variable-size SEQUENCE OF, OCTET STRING, BIT STRING, and string values use the invalid result as a loop or copy length, so a crafted over-range size field can write beyond a destination buffer. Decoding untrusted affected data can corrupt heap or stack memory, cause a crash, or potentially permit code execution. This issue is fixed in version 4.7.0.1.
Title ASN1SCC: Out-of-bounds write in BitStream_DecodeConstraintWholeNumber (uPER/ACN)
Weaknesses CWE-129
CWE-787
References
Metrics cvssV3_1

{'score': 8.1, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H'}

Weaknesses
  • CWE-129

    Improper Validation of Array Index

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 5, 2026, 6:26 PM
Reserved
Aug 17, 2026, 11:49 PM
Status
Deferred
Published
Nov 5, 2026, 5:18 PM
Modified
Nov 12, 2026, 10:18 PM