# CVE-2024-31581: FFmpeg version n6.1 was discovered to contain an improper validation of array index vulnerability in libavcodec/cbsh266syntaxtemplate.c.

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/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.11%, higher than 66% of CVEs (2026-12-01)
- Published: 2024-04-17T00:00:00.000Z
- Modified: 2026-06-17T07:28:36.347Z
- Weaknesses: CWE-129
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: mitre

## Description

FFmpeg version n6.1 was discovered to contain an improper validation of array index vulnerability in libavcodec/cbs_h266_syntax_template.c. This vulnerability allows attackers to cause undefined behavior within the application.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ffmpeg ffmpeg: 6.1
- fedoraproject fedora: 38; 39; 40

## References

- <https://github.com/ffmpeg/ffmpeg/commit/ce0c178a408d43e71085c28a47d50dc939b60196> (patch)
- <https://github.com/FFmpeg/FFmpeg/blob/n6.1.1/libavcodec/cbs_h266_syntax_template.c#L2048> (product)
- <https://gist.github.com/1047524396/a7e9273e12553775826784035333cdd8> (third-party-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPETICRXUOGRIM4U3BCRTIKE3IZWCSBT/> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/> (third-party-advisory, vendor-advisory)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/>
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/>

## Sources

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

---

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