CVE-2026-144500: ASN1SCC before 4.7.0.1 Buffer Overflow via Oversized XER Element Content
ASN1SCC before 4.7.0.1 contains a buffer overflow vulnerability in XerDecodePrimitiveElement() in asn1crt/asn1crtencodingxer.c, the XER runtime that the compiler emits alongside generated C decoders, which copies the text content of an XML element into the caller's buffer until the next '<' without any length limit. The runtime decodes INTEGER, REAL, BOOLEAN, ENUMERATED, NULL, OCTET STRING, BIT STRING and OBJECT IDENTIFIER values through fixed stack buffers of 256 to 2048 bytes, and character strings directly into the decoded value. Attackers who supply crafted XER input to an application using decoders generated with -XER by an affected version can overflow these buffers with overlong element content, crashing the decoder or potentially executing code. Decoders generated by affected versions remain vulnerable until they are regenerated with a fixed version and rebuilt.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ASN1SCCto a version that resolves this vulnerability.Fixed in 4.7.0.1 - Operational
Regenerate decoders with the fixed ASN1SCC version and rebuild them; decoders generated by affected versions remain vulnerable until then.
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications that accept attacker-controlled XER input and use C decoders generated with the -XER option by ASN1SCC versions before 4.7.0.1 are exposed. The affected XER runtime is emitted alongside generated decoders, so the application's embedded generated code is the relevant component.
What does an attacker need to exploit it?
An attacker needs to supply crafted XER/XML input to a vulnerable decoder. The element content must exceed the capacity of the buffer used by the decoded type before the decoder reaches the next '<' character.
Are existing builds fixed by upgrading ASN1SCC alone?
No. Decoders generated by affected versions remain vulnerable after the compiler is upgraded; they must be regenerated using a fixed version and the application must be rebuilt.
How can I determine whether a deployed application is affected?
Identify whether the application includes ASN1SCC-generated C decoders with XER support and accepts XER input. If those decoders were generated by a version before 4.7.0.1, they remain affected unless they have been regenerated and rebuilt with a fixed version.