Description
ASN1SCC is an open source ASN.1 compiler for embedded systems. Prior to 4.7.0.1, BitStream_DecodeConstraintWholeNumber in asn1crt/asn1crt_encoding.c reads enough bits for a constrained integer but does not reject values above the declared range when the encoded range is not a power of two. Generated uPER and ACN decoders for variable-size SEQUENCE OF, OCTET STRING, BIT STRING, and string values use the invalid result as a loop or copy length, so a crafted over-range size field can write beyond a destination buffer. Decoding untrusted affected data can corrupt heap or stack memory, cause a crash, or potentially permit code execution. This issue is fixed in version 4.7.0.1.
Severity (CVSS)
| Base score | 8.1 |
|---|---|
| Severity | High |
| Version | CVSS 3.1 |
| Vector | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H |
| Provided by | CNA |
Weaknesses
- CWE-129 — CWE-129: Improper Validation of Array Index
- CWE-787 — CWE-787: Out-of-bounds Write
Affected products
| Vendor | Product | Versions |
|---|---|---|
| esa | asn1scc | < 4.7.0.1 [affected] |
References
- https://github.com/esa/asn1scc/security/advisories/GHSA-825c-7h77-2jjq (x_refsource_CONFIRM)
- https://github.com/esa/asn1scc/commit/fe6ab763bc60d8a2def4104c15414809b45fffd9 (x_refsource_MISC)
- https://github.com/esa/asn1scc/releases/tag/4.7.0.1 (x_refsource_MISC)
Assess this vulnerability
Compare your deployed product and version with the source record. Review vendor references for fixes and workarounds. A CVSS score describes technical severity; it does not establish that your systems are affected or that exploitation has occurred.
Browse all CVE security advisories · Symaro cybersecurity services
Generated from the official CVE List on 06 Nov 2026 08:03 UTC.