Horizon Alert
Summary of the vulnerability and why it matters
A vulnerability in ASN1SCC, a tool for generating code to decode ASN.1 data, could allow an attacker to corrupt memory or execute code by providing specially crafted input. This issue affects applications that use decoders generated by affected versions of ASN1SCC, and the vulnerability will persist until these decoders are regenerated with a fixed version and the application is rebuilt.
- Code generation tool can be tricked.
- Matters if your applications process external data.
- Confirm exposure and regenerate code if affected.
Attack Path
How an attacker could exploit the issue
An attacker could target applications that use code generated by affected versions of ASN1SCC to parse ASN.1 data in the XML Encoding Rules (XER) format. By crafting an XER input with an excessive number of elements, an attacker could trigger an out-of-bounds write in the generated decoder. This memory corruption could lead to application crashes or potentially allow the attacker to execute arbitrary code.
- Requires crafted XER input.
- Vulnerable decoder processes malformed data.
- Memory corruption or code execution.
Live Threat
Current exploitation, exposure, and threat context
When supported by the advisory, applications using decoders generated by affected versions of ASN1SCC could experience memory corruption or crashes when processing crafted XER input. This could lead to the execution of arbitrary code if an attacker supplies more elements than the SIZE constraint allows.
- Adjacent memory corruption.
- Crafted XER input provided.
- Potential code execution.
Operational Fix
Recommended remediation, mitigation, and detection steps
The application owners and development teams responsible for applications that use XER decoders generated by ASN1SCC are likely to be responsible for addressing this vulnerability. The first practical step is to identify all instances where ASN1SCC-generated decoders are used, confirm if these applications process untrusted XER input, and then plan for regeneration and rebuilding of affected components.
- Application owners must address.
- Verify all XER decoder usage.
- Regenerate and rebuild affected code.