# CVE-2026-112021: snac2 before 2.93 Heap-Based Buffer Overflow via JSON Parser _xs_json_load_lexer()

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.67%, higher than 53% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-10-18T11:38:40.652Z
- Modified: 2026-10-19T21:14:14.150Z
- Weaknesses: CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

snac2 before 2.93 contains a heap-based buffer overflow vulnerability in _xs_json_load_lexer() that allows unauthenticated remote attackers to corrupt heap memory by sending JSON strings containing a \u0000 escape. Attackers can send a single crafted application/activity+json POST to activitypub_post_handler(), which parses it before signature checks, overflowing heap allocations and crashing the server.

(As written by CVE List.)

## Affected

- grunfink snac2: before 2.93

## Every score

- VulnCheck: CVSS:4.0 8.7 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://gist.github.com/nullenvk/2bf288e2d34cb3d4b7143e61dbf7d90b> (exploit)
- <https://nullenvk.pl/posts/02-snac2-json> (technical-description)
- <https://codeberg.org/grunfink/snac2/src/tag/2.92/xs_json.h#L283-L285> (technical-description)
- <https://codeberg.org/grunfink/snac2/commit/ec2c5c2046e0381bc942ec5d0d05ec861fe377e7> (patch)
- <https://codeberg.org/grunfink/snac2/releases/tag/2.93> (release-notes)
- <https://codeberg.org/grunfink/snac2> (product)
- <https://www.vulncheck.com/advisories/snac2-before-2.93-heap-based-buffer-overflow-via-json-parser-xs-json-load-lexer> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-112021](https://www.cve.org/CVERecord?id=CVE-2026-112021), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-112021](https://nvd.nist.gov/vuln/detail/CVE-2026-112021), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-112021 · Whole record: https://cve.day/CVE-2026-112021.json · Rebuilt by cve.day 2026-11-25T22:59:45.174Z
