Stack-based buffer overflow in FFmpeg - CVE-2009-4637
Published: May 20, 2010 / Updated: June 12, 2025
Vulnerability details
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error when processing unknown vectors that trigger a stack-based buffer overflow. A remote unauthenticated attacker can trigger stack-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
Affected software
Ubuntu
libavcodec1d (Ubuntu package)
libavformat1d (Ubuntu package)
libavformat52 (Ubuntu package)
libavcodec51 (Ubuntu package)
libavcodec52 (Ubuntu package)
How to mitigate CVE-2009-4637
libavformat1d (Ubuntu package) - update to 3:0.cvs20070307-5ubuntu7.4
libavformat52 (Ubuntu package) - addressed in versions 3:0.svn20080206-12ubuntu3.2, 3:0.svn20090303-1ubuntu6.1, 4:0.5+svn20090706-2ubuntu2.1
libavcodec51 (Ubuntu package) - update to 3:0.svn20080206-12ubuntu3.2
libavcodec52 (Ubuntu package) - addressed in versions 3:0.svn20090303-1ubuntu6.1, 4:0.5+svn20090706-2ubuntu2.1
Links to Public Exploits and PoC-codes
External References
- http://scarybeastsecurity.blogspot.com/2009/09/patching-ffmpeg-into-shape.html
- http://secunia.com/advisories/36805
- http://secunia.com/advisories/38643
- http://secunia.com/advisories/39482
- http://www.debian.org/security/2010/dsa-2000
- http://www.securityfocus.com/bid/36465
- http://www.ubuntu.com/usn/USN-931-1
- http://www.vupen.com/english/advisories/2010/0935
- https://roundup.ffmpeg.org/roundup/ffmpeg/issue1240