p PatchFirst

CVE-2025-59731

CVE-2025-59731 · Heap-buffer-overflow write in FFmpeg EXR dwa_uncompress

This page contains facts from public vulnerability sources. Check the original advisory before updating.

When decoding an OpenEXR file that uses DWAA or DWAB compression, the specified raw length of run-length-encoded data is not checked when using it to calculate the output data. We read rle_raw_size from the input file at [0], we decompress and decode into the buffer td->rle_raw_data of size rle_raw_size at [1], and then at [2] we will access entries in this buffer up to (td->xsize - 1) * (td->ysize - 1) + rle_raw_size / 2, which may exceed rle_raw_size. We recommend upgrading to version 8.0 or beyond.

CVSS 6.9 · Medium · EPSS 0.2% · Fix available

Published
Updated

Stack: system

Affected products and versions

  • ffmpeg

    Versions
    • ≥ 9a32b863074ed4140141e0d3613905c6f1fe61c5, < 8.0: Affected (custom)
    • ≥ 7.1.1, < 8.0: Affected (semver)

    Update to 8.0

  • ffmpeg Debian:12

    Versions
    • 7:5.1.3-1
    • 7:5.1.3-2
    • 7:5.1.4-0+deb12u1
    • 7:5.1.5-0+deb12u1
    • 7:5.1.6-0+deb12u1
    Affected ranges
    • ECOSYSTEM: < 7:5.1.7-0+deb12u1

    Update to 7:5.1.7-0+deb12u1

  • ffmpeg Debian:13

    Versions
    • 7:7.1.1-1
    Affected ranges
    • ECOSYSTEM: < 7:7.1.2-0+deb13u1

    Update to 7:7.1.2-0+deb13u1

  • ffmpeg Debian:14

    Versions
    • 7:7.1.1-1
    Affected ranges
    • ECOSYSTEM: < 7:7.1.2-1

    Update to 7:7.1.2-1

  • libav Ubuntu:Pro:14.04:LTS

    Versions
    • 6:0.8.7-1ubuntu2
    • 6:9.10-1ubuntu1
    • 6:9.10-1ubuntu2
    • 6:9.10-1ubuntu5
    • 6:9.10-1ubuntu6
    • 6:9.10-1ubuntu7
    • 6:9.11-2ubuntu1
    • 6:9.11-2ubuntu2
    • 6:9.13-0ubuntu0.14.04.1
    • 6:9.14-0ubuntu0.14.04.1
    • 6:9.16-0ubuntu0.14.04.1
    • 6:9.18-0ubuntu0.14.04.1
    • 6:9.20-0ubuntu0.14.04.1
    • 6:9.20-0ubuntu0.14.04.1+esm1
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • ffmpeg Ubuntu:Pro:22.04:LTS

    Versions
    • 7:4.4-6ubuntu5
    • 7:4.4.1-2ubuntu1
    • 7:4.4.1-3ubuntu1
    • 7:4.4.1-3ubuntu2
    • 7:4.4.1-3ubuntu3
    • 7:4.4.1-3ubuntu5
    • 7:4.4.2-0ubuntu0.22.04.1
    • 7:4.4.2-0ubuntu0.22.04.1+esm1
    • 7:4.4.2-0ubuntu0.22.04.1+esm2
    • 7:4.4.2-0ubuntu0.22.04.1+esm3
    • 7:4.4.2-0ubuntu0.22.04.1+esm4
    • 7:4.4.2-0ubuntu0.22.04.1+esm5
    • 7:4.4.2-0ubuntu0.22.04.1+esm6
    • 7:4.4.2-0ubuntu0.22.04.1+esm7
    • 7:4.4.2-0ubuntu0.22.04.1+esm8
    • 7:4.4.2-0ubuntu0.22.04.1+esm9
    • 7:4.4.2-0ubuntu0.22.04.1+esm10
    Affected ranges
    • ECOSYSTEM: < 7:4.4.2-0ubuntu0.22.04.1+esm11

    Update to 7:4.4.2-0ubuntu0.22.04.1+esm11

  • ffmpeg Ubuntu:Pro:24.04:LTS

    Versions
    • 7:6.0-6ubuntu1
    • 7:6.0-9ubuntu1
    • 7:6.1-2ubuntu1
    • 7:6.1-3ubuntu1
    • 7:6.1-4ubuntu1
    • 7:6.1-5ubuntu1
    • 7:6.1.1-1ubuntu1
    • 7:6.1.1-3ubuntu1
    • 7:6.1.1-3ubuntu5
    • 7:6.1.1-3ubuntu5+esm1
    • 7:6.1.1-3ubuntu5+esm2
    • 7:6.1.1-3ubuntu5+esm3
    • 7:6.1.1-3ubuntu5+esm4
    • 7:6.1.1-3ubuntu5+esm5
    • 7:6.1.1-3ubuntu5+esm6
    Affected ranges
    • ECOSYSTEM: < 7:6.1.1-3ubuntu5+esm7

    Update to 7:6.1.1-3ubuntu5+esm7

  • ffmpeg Ubuntu:25.10

    Versions
    • 7:7.1.1-1ubuntu1
    • 7:7.1.1-1ubuntu2
    • 7:7.1.1-1ubuntu3
    • 7:7.1.1-1ubuntu4
    • 7:7.1.1-1ubuntu4.1
    Affected ranges
    • ECOSYSTEM: < 7:7.1.1-1ubuntu4.2

    Update to 7:7.1.1-1ubuntu4.2

Original sources

Check your server →