Vulnerability 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.
CVSS Score
HIGH
Related Weaknesses (CWE)
References
- https://codeberg.org/grunfink/snac2
- https://codeberg.org/grunfink/snac2/commit/ec2c5c2046e0381bc942ec5d0d05ec861fe37
- https://codeberg.org/grunfink/snac2/releases/tag/2.93
- https://codeberg.org/grunfink/snac2/src/tag/2.92/xs_json.h#L283-L285
- https://gist.github.com/nullenvk/2bf288e2d34cb3d4b7143e61dbf7d90b
- https://nullenvk.pl/posts/02-snac2-json
- https://www.vulncheck.com/advisories/snac2-before-2.93-heap-based-buffer-overflo
FAQ
What is CVE-2026-112021?
CVE-2026-112021 is a vulnerability with a CVSS score of 7.5 (HIGH). 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 ...
How severe is CVE-2026-112021?
CVE-2026-112021 has been rated HIGH with a CVSS base score of 7.5/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-112021?
Check the references section above for vendor advisories and patch information. Review vendor security bulletins for remediation guidance.