Skip to main content

asn1c CVE-2026-45615

| EUVDEUVD-2026-33314 HIGH
Improper Input Validation (CWE-20)
2026-05-29 GitHub_M
8.2
CVSS 3.1 · Vendor: GitHub_M
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify asn1c-based OER endpoint
  2. Delivery
    Craft zero-length INTEGER OER payload
  3. Exploit
    Deliver malformed message over network
  4. Execution
    Trigger 1-byte heap OOB read in INTEGER_oer.c
  5. Persist
    Crash process or poison integer field
  6. Impact
    Achieve DoS or downstream logic bypass

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Input validation, allowlisting
Exploitation Conditions

The target application must use a decoder generated by mouse07410/asn1c version 1.4 or earlier that includes the OER skeleton INTEGER_oer.c and parses a schema containing at least one variable-length non-negative INTEGER field reachable from untrusted input; the attacker then needs only network reach to that parser and the ability to deliver a single OER-encoded message with a zero-length value field for that INTEGER. No authentication, user interaction, or special privileges are required (PR:N/UI:N), and the schema condition is satisfied by the vast majority of real-world deployments since variable-length integers are pervasive in V2X, 5G NAS/NGAP, and X.509 grammars. Exploitation is limited to products that specifically use the OER codec - applications that compiled only BER/DER/PER decoders from the same asn1c version are not exposed via this code path.

Impact

The CVSS 3.1 vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H reflects an unauthenticated network-reachable bug that is trivial to trigger (single malformed TLV), with high availability impact and a low integrity impact stemming from the documented 'incorrect integer interpretation' side effect. EPSS and KEV data were not provided in the input, so probability of exploitation in the wild and active-exploitation status cannot be quantified here. The real-world risk is amplified by deployment context: asn1c-generated decoders sit on the untrusted edge of V2X roadside units, 5G control-plane elements, and PKI parsers, where a single malformed packet can DoS infrastructure or, more concerning, cause logic bypass through misinterpreted integer fields. This is a genuine priority for any product shipping asn1c-generated OER code paths, not merely a high-CVSS paper risk.

Exploit ScenarioDerived

An attacker on the network sends a single crafted OER-encoded message containing a variable-length non-negative INTEGER element with a zero-byte value field to any service whose parser was generated by asn1c <= 1.4, such as a 5G NF, a V2X roadside unit, or a certificate-validating endpoint. The decoder reads one byte past the allocated heap buffer, which most commonly crashes the process for a DoS but can also yield an attacker-controlled MSB that flips sign or magnitude in downstream business logic, producing protocol state poisoning or authorization bypass. No public exploit identified at time of analysis, though the trigger is small enough to reproduce from the advisory description alone.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 29, 2026

Heap out-of-bounds read in mouse07410/asn1c versions 1.4 and earlier allows remote attackers to crash applications or corrupt integer parsing logic by sending a zero-length OER payload for a variable-length non-negative INTEGER type. The generated INTEGER_oer.c skeleton extracts the Most Significant Bit without validating input length, and because asn1c-generated parsers are commonly deployed in V2X, 5G telecom, and X.509 stacks, the impact extends into safety- and identity-critical pipelines. No public exploit identified at time of analysis, but the trivial trigger condition makes weaponization straightforward.

RemediationAI

Upgrade asn1c to a release that includes the fix referenced in GHSA-wxx8-76rw-96j2 (https://github.com/mouse07410/asn1c/security/advisories/GHSA-wxx8-76rw-96j2); upstream fix available per the advisory, but a specific released patched version was not independently confirmed from the supplied data, so consult the advisory for the exact tag. Critically, regenerate and recompile every product that uses the asn1c-emitted skeletons because the vulnerable code is copied into downstream binaries - simply updating the compiler without rebuilding consumers leaves the bug in place. As a compensating control where immediate rebuilds are not possible, add an input-length pre-check in front of the OER INTEGER decoder (reject TLVs whose value field is zero bytes) or front the parser with a schema-aware proxy that drops malformed packets; the trade-off is the added latency and the risk of rejecting unusual but legitimate encodings on the wire.

Affected VersionsENISA

asn1c ≤ 1.4

Affected Packages

euvd asn1c no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

asn1c is a widely used compiler that translates ASN.1 schemas into C decoders for binary encodings such as BER, DER, OER, and PER. The defect lives in the generated OER (Octet Encoding Rules) skeleton INTEGER_oer.c, which handles variable-length non-negative INTEGER decoding by reading the MSB of the value buffer to determine sign extension behavior. The root cause maps to CWE-20 (Improper Input Validation): the decoder dereferences the first byte of the payload without first checking that at least one byte is present, so a length-zero TLV element causes a 1-byte heap OOB read past the allocated buffer. Per CPE cpe:2.3:a:mouse07410:asn1c:*, all distributed versions of this fork up through 1.4 emit vulnerable skeleton code, meaning every application built against those skeletons inherits the flaw at runtime.

Know when Asn1C gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (GitHub_M) PRIMARY 8.2 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:H

Primary rating from Vendor (GitHub_M) · only source for this CVE.

CVSS VectorVendor: GitHub_M

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

DescriptionCVE.org

mouse07410/asn1c is an ASN.1 compiler. In 1.4 and earlier, a memory safety vulnerability was identified in the OER decoding skeleton files generated by asn1c (specifically INTEGER_oer.c). When parsing a maliciously crafted, zero-length OER payload for a variable-length, non-negative INTEGER type, the decoder fails to validate the required bytes before extracting the Most Significant Bit (MSB). This forces a precise 1-byte Heap Out-of-Bounds (OOB) Read. Because asn1c generated code is primarily deployed to parse untrusted network inputs (such as V2X network protocols, 5G telecom headers, or X.509 certificates), when the decoder processes untrusted network-originated input, a remote attacker can exploit this to cause a Denial of Service (DoS) or trigger incorrect integer interpretation in downstream applications (e.g., protocol state poisoning or logic bypass).

Executive ViewAI

Why It Matters

asn1c compiler versions 1.4 and earlier contain a heap out-of-bounds read vulnerability in OER payload parsing that affects generated code deployed in vehicle-to-everything (V2X), 5G telecommunications, and X.509 certificate validation systems. While no public exploit has been identified at time of analysis, the trivial trigger mechanism (zero-length OER payload) creates significant operational risk to safety- and identity-critical infrastructure, with potential for service disruption and data validation corruption.

Business Impact: Severe
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) implement strict input validation enforcing minimum OER payload length before processing; (2) deploy network segmentation to restrict untrusted sources from reaching affected parsers; (3) enable real-time alerting on parsing errors and unexpected application termination; (4) maintain detailed forensic logs of all OER processing for incident response.

Threat Intelligence Overview

EPSS Score
0.1%
Top 81% exploitable
Social Media
2
Sightings
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Out-of-Cycle
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
Very High
Technical Impact
Partial

Priority Score

41
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +41
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy