Heap-based buffer overflow in FFmpeg - CVE-2017-9995
Published: June 28, 2017 / Updated: October 12, 2021
FFmpeg
Detailed vulnerability description
The vulnerability allows a remote attacker to execute arbitrary code on the target system.
The vulnerability exists due to a boundary error in libavcodec/scpr.c in FFmpeg 3.3 before 3.3.1 does not properly validate height and width data, which. A remote attacker can use a crafted file. to trigger heap-based buffer overflow and execute arbitrary code on the target system.
Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.
How to mitigate CVE-2017-9995
Sources
- http://www.securityfocus.com/bid/99320
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1478
- https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=1519
- https://github.com/FFmpeg/FFmpeg/commit/2171dfae8c065878a2e130390eb78cf2947a5b69
- https://github.com/FFmpeg/FFmpeg/commit/7ac5067146613997bb38442cb022d7f41321a706