{"id":"CVE-2026-76077","summary":"ASN1SCC: Stack buffer overflow and out-of-bounds read in XER tokenizer NT()","details":"ASN1SCC is an open source ASN.1 compiler for embedded systems. Prior to 4.7.0.1, the XER tokenizer NT() in asn1crt/asn1crt_encoding_xer.c, which is reached by all XER decode paths, copies tag characters into a fixed char Value[100] field without a length bound and reads input and lookahead bytes without checking the buffer count. A crafted XER message with an overlong tag can overwrite the tokenizer's stack frame, while a truncated tag or unterminated processing-instruction or comment sequence can read beyond the input and may cause a CPU spin. The flaws can disclose adjacent memory, corrupt stack data, crash or hang the decoder, and potentially permit code execution. This issue is fixed in version 4.7.0.1.","aliases":["GHSA-38q3-fg5h-wwf9"],"modified":"2026-11-05T21:32:43.130966698Z","published":"2026-11-05T16:49:58.765Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-120","CWE-125","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76077.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/76xxx/CVE-2026-76077.json"},{"type":"FIX","url":"https://github.com/esa/asn1scc/commit/fe6ab763bc60d8a2def4104c15414809b45fffd9"},{"type":"WEB","url":"https://github.com/esa/asn1scc/releases/tag/4.7.0.1"},{"type":"ADVISORY","url":"https://github.com/esa/asn1scc/security/advisories/GHSA-38q3-fg5h-wwf9"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-76077"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/esa/asn1scc","events":[{"introduced":"0"},{"fixed":"8437befc92eb04f20a47c38f4ac4742c0ff1617c"},{"fixed":"fe6ab763bc60d8a2def4104c15414809b45fffd9"}],"database_specific":{"extracted_events":[{"strategy":"StringRangeExpression","range":[{"introduced":"0"},{"fixed":"4.7.0.1"}],"source":"AFFECTED_FIELD"},{"range":[{"fixed":"fe6ab763bc60d8a2def4104c15414809b45fffd9"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_TAG","original_tag":"4.7.0.1","range":[{"fixed":"8437befc92eb04f20a47c38f4ac4742c0ff1617c"}]}]}}],"versions":["4.6.0.17","4.6.0.14","4.6.0.12","4.6.0.9","4.6.0.8","4.6.0.5","4.6.0.2","4.6.0.1","4.5.2.9","4.5.2.4","4.5.2.3","4.5.2.2","4.5.2.1","4.5.2.0","4.5.1.5","4.5.1.4","4.5.1.2","4.5.0.12","4.5.0.11","4.5.0.10","4.5.0.4","4.5.0.2","4.5.0.0","4.4.0.2","4.4.0.1","4.4.0.0","4.3.1.3","4.3.1.1","4.3.0.1","4.3.0.0","4.2.5.2f","4.2.5.0f","4.2.4.6f","4.2.4.5f","4.2.4.4f","4.2.4.3f","4.2.4.0f","4.2.1.3f","4.2.0.1.f","4.1.0.1f","4.1f","4.1e","4.1c","4.1b","3.3.9","3.3.3","3.3.2","3.2.81","v3.2.55"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-76077.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}