CVE-2026-144499: ASN1SCC before 4.7.0.1 Out-of-Bounds Write via Excess XER SEQUENCE OF Elements
ASN1SCC before 4.7.0.1 contains an out-of-bounds write vulnerability in the SequenceOfdecode template in StgC/xerc.stg, which generates XER decoders for SEQUENCE OF types that store each decoded element at arr[i] in a loop running until the closing tag and compare the element count with the type's maximum size only after the loop ends. Attackers who supply crafted XER input with more elements than the SIZE constraint allows to an application using decoders generated with -XER by an affected version can write attacker-controlled element values past the end of the fixed-size array, corrupting adjacent memory, 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 affected XER decoders with the fixed version and rebuild the application.
Event History
Frequently Asked Questions
Which deployments are exposed?
Applications are exposed if they use XER decoders generated with the -XER option by ASN1SCC versions before 4.7.0.1, and those decoders process SEQUENCE OF types with a SIZE constraint. The generated decoder must be reachable with attacker-supplied XER input.
What access does an attacker need?
An attacker needs to supply crafted XER data containing more SEQUENCE OF elements than the declared SIZE constraint permits. The supplied CVSS vector indicates network reachability, no required privileges, and no user interaction, although exploitation has high attack complexity.
Is upgrading ASN1SCC alone sufficient to remove the issue?
No. Decoders generated by affected versions remain vulnerable after the tool is upgraded; they must be regenerated using version 4.7.0.1 or later and the application must be rebuilt with the newly generated code.
How can teams identify affected builds?
Identify generated decoder sources or binaries produced with ASN1SCC before 4.7.0.1 using -XER. Prioritize those that decode externally supplied XER into fixed-size SEQUENCE OF arrays with SIZE constraints.