CVE-2026-76077

ASN1SCC: Stack buffer overflow and out-of-bounds read in XER tokenizer NT()

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, the XER tokenizer NT() in asn1crt/asn1crt_encoding_xer.c, which is reached by all XER decode paths, copies tag characters into a fixed char Value[100] field without a length bound and reads input and lookahead bytes without checking the buffer count. A crafted XER message with an overlong tag can overwrite the tokenizer's stack frame, while a truncated tag or unterminated processing-instruction or comment sequence can read beyond the input and may cause a CPU spin. The flaws can disclose adjacent memory, corrupt stack data, crash or hang the decoder, and 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 flaw in the XER tokenizer function NT() copies tag characters into a fixed 100‑byte buffer without enforcing a length limit and accesses input beyond the buffer size. A crafted XER message can overwrite the tokenizer’s stack frame, or a malformed tag can read data past the input boundary. These conditions may disclose memory contents, corrupt stack data, crash or hang the decoder, and may allow an attacker to execute arbitrary code.

Affected Systems

Vendors (CNA) esa:asn1scc produce the ASN1SCC compiler. Versions prior to 4.7.0.1 are vulnerable. The issue affects all builds that use the asn1crt/asn1crt_encoding_xer.c XER decode paths.

Risk and Exploitability

The vulnerability has a CVSS score of 8.1, indicating high severity. EPSS data is unavailable and the flaw is not listed in the CISA KEV catalog, so no confirmed exploitation reports exist. Nevertheless, the attack vector is inferred to be any component that processes untrusted XER input, such as network services or file imports. Given the potential for remote code execution, a high level of risk is warranted until the fix is applied.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade ASN1SCC to version 4.7.0.1 or later as released by the vendor.
  • Rebuild and redeploy all software components that link with or embed ASN1SCC to ensure the updated code is used.
  • Identify and audit any third‑party libraries or custom code that rely on older ASN1SCC versions and replace them with the patched compiler or remove the dependency on XER decoding where feasible.

Generated by OpenCVE AI on November 5, 2026 at 19:30 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': 'none', '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, the XER tokenizer NT() in asn1crt/asn1crt_encoding_xer.c, which is reached by all XER decode paths, copies tag characters into a fixed char Value[100] field without a length bound and reads input and lookahead bytes without checking the buffer count. A crafted XER message with an overlong tag can overwrite the tokenizer's stack frame, while a truncated tag or unterminated processing-instruction or comment sequence can read beyond the input and may cause a CPU spin. The flaws can disclose adjacent memory, corrupt stack data, crash or hang the decoder, and potentially permit code execution. This issue is fixed in version 4.7.0.1.
Title ASN1SCC: Stack buffer overflow and out-of-bounds read in XER tokenizer NT()
Weaknesses CWE-120
CWE-125
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-120

    Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

  • CWE-125

    Out-of-bounds Read

  • CWE-787

    Out-of-bounds Write

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Nov 9, 2026, 4:50 PM
Reserved
Aug 18, 2026, 9:17 PM
Status
Deferred
Published
Nov 5, 2026, 5:18 PM
Modified
Nov 12, 2026, 8:07 PM
Severity
Important
Public date
Nov 5, 2026, 4:49 PM