{"id":"CVE-2026-116574","summary":"FreeSWITCH: Off-by-one heap write in core XML serialization of four-byte UTF-8 sequences","details":"FreeSWITCH is a Software Defined Telecom Stack enabling the digital transformation from proprietary telecom switches to a software implementation that runs on any commodity hardware. Prior to 1.11.2, switch_xml_ampencode() reserved only ten bytes for the widest numeric character reference produced from a four-byte UTF-8 sequence, omitting space for the terminating NUL. When remote-supplied text was serialized at the exact buffer-growth boundary, the terminator wrote one byte beyond the heap allocation. Reachable surfaces include mod_xml_cdr, conference and formatted CDR XML, XML Event Socket output, and XML API output that serializes caller-controlled values. The fixed zero-byte write can abort the process or truncate an adjacent object, while remote code execution has not been demonstrated. This issue is fixed in version 1.11.2.","aliases":["GHSA-r6vh-qmwm-h3cc"],"modified":"2026-11-12T07:04:13.278528941Z","published":"2026-11-05T19:00:26.440Z","database_specific":{"cna_assigner":"GitHub_M","cwe_ids":["CWE-193","CWE-787"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116574.json"},"references":[{"type":"WEB","url":"https://github.com/signalwire/freeswitch/releases/tag/v1.11.2"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/116xxx/CVE-2026-116574.json"},{"type":"ADVISORY","url":"https://github.com/signalwire/freeswitch/security/advisories/GHSA-r6vh-qmwm-h3cc"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-116574"},{"type":"FIX","url":"https://github.com/signalwire/freeswitch/commit/28fcfd26246c112fa4b9e698433d09e4836ca1b5"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/signalwire/freeswitch","events":[{"introduced":"0"},{"fixed":"3f13ad1b1d323e435757fc43a2bb829d4ea5b9a8"},{"fixed":"28fcfd26246c112fa4b9e698433d09e4836ca1b5"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"1.11.2"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"},{"range":[{"fixed":"28fcfd26246c112fa4b9e698433d09e4836ca1b5"}],"source":"REFERENCES_COMMIT"},{"original_tag":"v1.11.2","range":[{"fixed":"3f13ad1b1d323e435757fc43a2bb829d4ea5b9a8"}],"source":"REFERENCES_TAG"}]}}],"versions":["v1.11.1","v1.11.0","v1.10.12","v1.10.11","v1.10.10","v1.10.9","v1.10.8","v1.10.7","v1.10.6","v1.10.5","v1.10.4","v1.10.3","v1.10.2","v1.10.1","v1.10.0","v1.6.0","v1.5.final","v1.5.14","v1.5.13","v1.5.12","v1.5.10","v.15.9","v1.5.8","v1.5.5","v1.5.2","v1.5.1","v1.5.0","v1.3.17-final","v1.3.16","v1.3.15","v1.3.14","v1.3.13","v1.3.12","v.1.3.12","v0.0.1","v1.3.11","v1.3.10","v1.3.9","v1.3.8","v1.3.7","v1.3.6","v1.3.5","v1.3.4","v1.3.3","v1.3.2","v1.3.1","v1.3.0","v1.2-rc2","v1.2-rc1","git2svn-syncpoint-master"],"database_specific":{"vanir_signatures":[{"target":{"file":"src/switch_xml.c","function":"switch_xml_ampencode"},"deprecated":false,"digest":{"length":2160,"function_hash":"247728571356207015514159273917522246293"},"id":"CVE-2026-116574-0a63acdb","signature_type":"Function","signature_version":"v1","source":"https://github.com/signalwire/freeswitch/commit/28fcfd26246c112fa4b9e698433d09e4836ca1b5"},{"target":{"file":"src/switch_xml.c"},"deprecated":false,"digest":{"line_hashes":["332644768659563547700870195158832939792","6207077685477371978948334459036362953","67660503390346086951928893935526251062","68153851888813499762407153074276711392","287488614616921504708518343084220112466","134898921851821341396838826097228600784","288992504741394184768958504791495616666","15111541739716734553587835624392680170","285980372277214809038836355725845412906","104995635586966950613857010837303317771","150697181929613252726607619749844268467","299399332009340122016528297964985618171"],"threshold":0.9},"id":"CVE-2026-116574-98c50e6f","signature_type":"Line","signature_version":"v1","source":"https://github.com/signalwire/freeswitch/commit/28fcfd26246c112fa4b9e698433d09e4836ca1b5"},{"signature_version":"v1","source":"https://github.com/signalwire/freeswitch/commit/28fcfd26246c112fa4b9e698433d09e4836ca1b5","target":{"file":"tests/unit/switch_xml.c"},"deprecated":false,"digest":{"threshold":0.9,"line_hashes":["179440242265136915269087043086192217401","306660849351538817509648469451982736088","187327442546608299276063414956894736932","34684520416530899091391861614898600332"]},"id":"CVE-2026-116574-de0172f2","signature_type":"Line"},{"source":"https://github.com/signalwire/freeswitch/commit/28fcfd26246c112fa4b9e698433d09e4836ca1b5","target":{"function":"FST_SUITE_BEGIN","file":"tests/unit/switch_xml.c"},"deprecated":false,"digest":{"function_hash":"277059121987425152592360736585517219398","length":7443},"id":"CVE-2026-116574-fd40dc6e","signature_type":"Function","signature_version":"v1"}],"vanir_signatures_modified":"2026-11-12T07:04:13Z","source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-116574.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:N/I:L/A:H"}]}