Technical impact
ASN1SCC is an open‑source ASN.1 compiler used in embedded systems. A bug in BitStream_DecodeConstraintWholeNumber, found in versions prior to 4.7.0.1, reads the required number of bits for a constrained integer but fails to reject values that exceed the declared range when that range is not a power of two. The decoded value is then used as a loop or copy length in generated uPER and ACN decoders for variable‑size SEQUENCE OF, OCTET STRING, BIT STRING, and string fields. A crafted over‑range size field can therefore overwrite memory beyond the intended destination buffer, leading to heap or stack corruption, crashes, or in worst cases, arbitrary code execution.
Affected Systems
The vulnerability affects the ESA Asn1Scc compiler in all releases prior to 4.7.0.1, and is fixed in that version. Any project that compiles ASN.1 specifications with a vulnerable version of Asn1Scc and subsequently decodes untrusted ASN.1 data is at risk.
Risk and Exploitability
The CVSS score of 8.1 indicates that the flaw is high severity. Exploitation requires the attacker to supply maliciously crafted ASN.1 data that encodes an out‑of-range value; the attack vector is therefore external if the affected application processes data from untrusted sources. The EPSS score is not available, and the vulnerability is not listed in CISA KEV, so while the chance of exploitation is unclear, the potential impact is significant enough to warrant immediate attention.