# CVE-2024-5171: heap buffer overflow in libaom

- Severity: Critical 10.0 (CVSS:4.0, scored by Google) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA: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.26%, higher than 70% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-06-05T19:11:12.987Z
- Modified: 2026-06-17T08:15:20.570Z
- Weaknesses: CWE-20, CWE-190
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: Google

## Description

Integer overflow in libaom internal function img_alloc_helper can lead to heap buffer overflow. This function can be reached via 3 callers:


  *  Calling aom_img_alloc() with a large value of the d_w, d_h, or align parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aom_image_t struct may be invalid.
  *  Calling aom_img_wrap() with a large value of the d_w, d_h, or align parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aom_image_t struct may be invalid.
  *  Calling aom_img_alloc_with_border() with a large value of the d_w, d_h, align, size_align, or border parameter may result in integer overflows in the calculations of buffer sizes and offsets and some fields of the returned aom_image_t struct may be invalid.

(As written by CVE List.)

## Affected

- libaom libaom: from 1.0.0 before 3.9.0
- aomedia libaom: from 1.0.0 up to 3.9.0

## Every score

- Google: CVSS:4.0 10.0 Critical `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://issues.chromium.org/issues/332382766> (exploit)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6HYUEHZ35ZPY2EONVZCGO6LPT3AMLZCP/> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/U5NRNCEYS246CYGOR32MF7OGKWOWER22/> (third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2024/09/msg00024.html>

## Sources

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

---

Page: https://cve.day/CVE-2024-5171 · Whole record: https://cve.day/CVE-2024-5171.json · Rebuilt by cve.day 2026-11-25T22:58:41.463Z
