Remote code execution in libsndfile



Published: 2021-08-01 | Updated: 2022-03-28
Risk High
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-3246
CWE-ID CWE-122
Exploitation vector Network
Public exploit N/A
Vulnerable software
Subscribe
libsndfile
Client/Desktop applications / Multimedia software

Vendor Erik de Castro Lopo

Security Bulletin

This security bulletin contains information about 1 vulnerabilities.

Updated 28.03.2022
Added fixed version.

1) Heap-based buffer overflow

EUVDB-ID: #VU55455

Risk: High

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

CVE-ID: CVE-2021-3246

CWE-ID: CWE-122 - Heap-based Buffer Overflow

Exploit availability: No

Description

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

The vulnerability exists due to a boundary error msadpcm_decode_block() function of libsndfile. A remote attacker can trick the victim to open a specially crafted WAV file, 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.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

libsndfile: 1.0.0 - 1.0.31

External links

http://github.com/libsndfile/libsndfile/issues/687
http://github.com/libsndfile/libsndfile/releases/tag/1.1.0


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.



###SIDEBAR###