GPAC before 26.07.0 Heap Buffer Overflow via XML SAX Parser Entity Handling
- State
- Published
- Severity
- 6.9 Medium
- Published
- Nov 17, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 17, 2026
Description
GPAC before 26.07.0 contains an integer underflow in gf_xml_sax_parse_intern() in src/utils/xml_parser.c that causes a heap-based buffer overflow when completing partially buffered entities. Attackers can convince a user to process a crafted XML or XMT file with MP4Box, overflowing xml_sax_append_string() size arithmetic to corrupt heap memory and crash the process.
| Product | Versions |
|---|---|
| gpac gpac | before 26.07.0 Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 6.9 Medium | VulnCheck | |
| 3.1 | 6.6 Medium | VulnCheck |
Weaknesses
- CWE-191 Integer Underflow (Wrap or Wraparound)
References
- https://github.com/gpac/gpac/issues/3615Issue Tracker
- https://github.com/gpac/gpac/issues/3646Issue Tracker
- https://github.com/gpac/gpac/commit/e87dff25aa91f9a52d8857b4d8558c93960c9522Patch
- https://github.com/gpac/gpac/commit/6f54ff86b2fdc045d6a683b93f9ced8928d8b35cPatch
- gpac v26.07.0 Release NotesRelease Notes
- https://github.com/gpac/gpac/blob/v26.02.0/src/utils/xml_parser.c#L1040-L1069Technical Details
- https://github.com/gpac/gpac/blob/v26.02.0/src/utils/xml_parser.c#L977-L998Technical Details
- https://github.com/sigdevel/pocs/blob/main/res/gpac/MP4Box/79/79_xml_sax_append_string_xml_parser_c_993.xmlExploit
- https://github.com/gpac/gpac/issues/3645Issue Tracker
- https://github.com/gpac/gpac/blob/v26.02.0/src/utils/xml_parser.c#L1043-L1068Technical Details
- https://github.com/sigdevel/pocs/blob/main/res/gpac/MP4Box/86/86_xml_sax_swap_utils_xml_parser_c_214Exploit
- VulnCheck Advisory: GPAC before 26.07.0 Heap Buffer Overflow via XML SAX Parser Entity HandlingThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.