#VU95532 Heap-based buffer overflow in FFmpeg


Vulnerability identifier: #VU95532

Vulnerability risk: High

CVSSv3.1: 7.7 [CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2024-7055

CWE-ID: CWE-122

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
FFmpeg
Universal components / Libraries / Libraries used by multiple products

Vendor: ffmpeg.sourceforge.net

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to a boundary error within the the pnm_decode_frame() function in /libavcodec/pnmdec.c. A remote attacker can trick the victim to open a specially crafted file, trigger a use-after-free error and execute arbitrary code on the system.

Mitigation
Install update from vendor's website.

Vulnerable software versions

FFmpeg: 5.0 - 7.0.1


External links
http://vuldb.com/?id.273651
http://vuldb.com/?ctiid.273651
http://vuldb.com/?submit.376532
http://github.com/CookedMelon/ReportCVE/tree/main/FFmpeg/poc3


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability