# CVE-2021-40574: The binary MP4Box in Gpac from 0.9.0-preview to 1.0.1 has a double-free vulnerability in the gftextgetutf8line function in loadtext.c, whic…

- Severity: High 7.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- 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): 1.42%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-01-13T00:00:00.000Z
- Modified: 2026-06-17T04:07:09.293Z
- Weaknesses: CWE-415
- Assigned by: mitre

## Description

The binary MP4Box in Gpac from 0.9.0-preview to 1.0.1 has a double-free vulnerability in the gf_text_get_utf8_line function in load_text.c, which allows attackers to cause a denial of service, even code execution and escalation of privileges.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- gpac gpac: from 0.9.0 up to 1.0.1

## Every score

- NVD: CVSS:3.1 7.8 High `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/gpac/gpac/issues/1897> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/gpac/gpac/commit/30ac5e5236b790accd1f25347eebf2dc8c6c1bcb> (patch, third-party-advisory)
- <https://www.debian.org/security/2023/dsa-5411> (mailing-list, third-party-advisory, vendor-advisory)
- <https://github.com/gpac/gpac/blob/v0.9.0-preview/src/filters/load_text.c#L232> (product)
- <https://github.com/gpac/gpac/blob/v0.9.0-preview/src/filters/load_text.c#L304> (product)

## Sources

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

---

Page: https://cve.day/CVE-2021-40574 · Whole record: https://cve.day/CVE-2021-40574.json · Rebuilt by cve.day 2026-11-25T22:58:06.491Z
