# JLSEC-2026-1186: FFmpeg through 8.1.2, fixed in commit b506faf, contains a heap out-of-bounds write vulnerability...

- Severity: High 8.8 (CVSS:3.1, scored by Julia Security Advisories) `CVSS:3.1/AV:N/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
- Published: 2026-08-07T13:27:45.313Z
- Modified: 2026-08-08T23:15:05.743Z
- Related: CVE-2026-66040, GHSA-6vcg-882j-82v5, EUVD-2026-48742

## Description

FFmpeg through 8.1.2, fixed in commit b506faf, contains a heap out-of-bounds write vulnerability in the native PNG and APNG encoders that allows remote attackers to corrupt heap memory by supplying a crafted PNG image with a malicious eXIf chunk. Attackers can craft an eXIf chunk where multiple IFD entries reference the same large value payload, causing canonical serialization to expand the output far beyond the undersized allocation estimated by `add_exif_profile_size()`, resulting in `png_write_chunk()` writing tens of thousands of bytes past the buffer boundary, leading to deterministic heap corruption, process crash, and potentially arbitrary code execution.

(As written by Julia Security Advisories.)

## Affected

- FFMPEG_jll (Julia): before 9.0.0+0
- FFMPEG_nogpl_jll (Julia): before 9.0.0+0
- FFplay_jll (Julia): before 9.0.0+0

## Every score

- Julia Security Advisories: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H`
- Julia Security Advisories: CVSS:4.0 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X`

## References

- <https://code.ffmpeg.org/FFmpeg/FFmpeg/commit/b506fafec9a19fcbc2be5271875fd4a63d6615bc> (web)
- <https://code.ffmpeg.org/FFmpeg/FFmpeg/pulls/23786> (web)
- <https://github.com/advisories/GHSA-6vcg-882j-82v5> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-66040> (web)
- <https://www.vulncheck.com/advisories/ffmpeg-heap-out-of-bounds-write-via-png-apng-exif-encoder> (web)

## Sources

- Julia Security Advisories: [JLSEC-2026-1186](https://osv.dev/vulnerability/JLSEC-2026-1186), CC-BY-4.0, modified 2026-08-08

---

Page: https://cve.day/JLSEC-2026-1186 · Whole record: https://cve.day/JLSEC-2026-1186.json · Rebuilt by cve.day 2026-11-25T22:56:25.894Z
