# CVE-2021-30022: There is a integer overflow in mediatools/avparsers.c in the gfavcreadppsbsinternal in GPAC from 0.5.2 to 1.0.1.

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/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.07%, higher than 65% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-04-19T19:34:08.000Z
- Modified: 2026-06-17T03:49:36.873Z
- Weaknesses: CWE-190
- Assigned by: mitre

## Description

There is a integer overflow in media_tools/av_parsers.c in the gf_avc_read_pps_bs_internal in GPAC from 0.5.2 to 1.0.1. pps_id may be a negative number, so it will not return. However, avc->pps only has 255 unit, so there is an overflow, which results a crash.

(As written by CVE List.)

## Affected

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

## Every score

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

## References

- <https://github.com/gpac/gpac/issues/1720> (exploit, third-party-advisory)
- <https://github.com/gpac/gpac/commit/51cdb67ff7c5f1242ac58c5aa603ceaf1793b788> (patch, third-party-advisory)
- <https://github.com/gpac/gpac/blob/v0.5.2/src/media_tools/av_parsers.c#L2344> (product)

## Sources

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

---

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