# CVE-2026-4185: GPAC MP4Box swf_parse.c swf_def_bits_jpeg stack-based overflow

- Severity: Medium 5.3 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- 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.29%, higher than 23% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-15T18:32:08.668Z
- Modified: 2026-06-17T10:56:08.293Z
- Weaknesses: CWE-119, CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## Description

A vulnerability was found in GPAC up to 2.5-DEV-rev2167-gcc9d617c0-master. This vulnerability affects the function swf_def_bits_jpeg of the file src/scene_manager/swf_parse.c of the component MP4Box. The manipulation of the argument szName results in stack-based buffer overflow. It is possible to launch the attack remotely. The exploit has been made public and could be used. The patch is identified as 8961c74f87ae3fe2d3352e622f7730ca96d50cf1. A patch should be applied to remediate this issue.

(As written by CVE List.)

## Affected

- GPAC: 2.5-DEV-rev2167-gcc9d617c0-master

## Every score

- VulDB: CVSS:4.0 5.3 Medium `CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 6.3 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:3.0 6.3 Medium `CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 6.5 Medium `AV:N/AC:L/Au:S/C:P/I:P/A:P/E:POC/RL:OF/RC:C`

## References

- <https://github.com/PeterXukt/test_pocs/blob/main/gpac/test.swf> (exploit)
- <https://vuldb.com/?id.351091> (technical-description, vdb-entry)
- <https://vuldb.com/?ctiid.351091> (permissions-required, signature)
- <https://vuldb.com/?submit.769840> (third-party-advisory)
- <https://github.com/gpac/gpac/issues/3436> (issue-tracking)
- <https://github.com/gpac/gpac/commit/8961c74f87ae3fe2d3352e622f7730ca96d50cf1> (patch)
- <https://github.com/gpac/gpac/> (product)

## Sources

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

---

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