Out-of-bounds Write Affecting ffmpeg package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

Exploit Maturity
Not Defined

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UNMANAGED-FFMPEG-8732766
  • published19 Feb 2025
  • disclosed18 Feb 2025
  • credit0x20z

Introduced: 18 Feb 2025

NewCVE-2025-22921  (opens in a new tab)
CWE-787  (opens in a new tab)

How to fix?

There is no fixed version for ffmpeg.

Overview

Affected versions of this package are vulnerable to Out-of-bounds Write due to a segmentation violation in the jpeg2000dec.c component.

PoC

git clone https://github.com/FFmpeg/FFmpeg.git
cd FFmpeg
./configure --cc=clang --cxx=clang++ --toolchain=clang-asan --extra-cflags="-I$HOME/ffmpeg_build/include -O0 -fno-omit-frame-pointer -g"   --extra-cxxflags="-O0 -fno-omit-frame-pointer -g" --extra-ldflags="-L$HOME/ffmpeg_build/include -fsanitize=address -fsanitize=undefined -lubsan" --disable-optimizations --disable-stripping --enable-cross-compile
make -j30
./ffmpeg -y -i poc tmp.mp4

References

CVSS Scores

version 4.0
version 3.1