# CVE-2024-31581

- Priority: **Prioritise**
- Reason: Severe, CVSS 9.8 (CVE.org); no exploitation reported by the 5 checked sources; EPSS 1% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-04-17 · Modified: 2025-11-04
- Aliases: UBUNTU-CVE-2024-31581, DEBIAN-CVE-2024-31581
- Record: https://cvemate.com/vulnerability/CVE-2024-31581 · JSON: https://cvemate.com/vulnerability/CVE-2024-31581/json

## Description

```text
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.
```

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.113%, percentile 67.08%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- debian ffmpeg (Debian): \< 7:7.0.1-3
- ubuntu ffmpeg (Ubuntu): \< 7:7.1.1-1ubuntu1.1
- fedoraproject fedora: 38 \| 39 \| 40
- ffmpeg ffmpeg: 6.1

## References

- <https://github.com/ffmpeg/ffmpeg/commit/ce0c178a408d43e71085c28a47d50dc939b60196>
- <https://github.com/FFmpeg/FFmpeg/blob/n6.1.1/libavcodec/cbs_h266_syntax_template.c#L2048>
- <https://gist.github.com/1047524396/a7e9273e12553775826784035333cdd8>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/LE3ASLH6QF2E5OVJI5VA3JSEPJFFFMNY/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/IPETICRXUOGRIM4U3BCRTIKE3IZWCSBT/>
- <https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/6G7EYH2JAK5OJPVNC6AXYQ5K7YGYNCDN/>
- <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/>
- <https://ubuntu.com/security/CVE-2024-31581>
- <https://www.cve.org/CVERecord?id=CVE-2024-31581>
- <https://security-tracker.debian.org/tracker/CVE-2024-31581>

---

Data as of 2026-12-05T04:25:08.156Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
