Vulnerabilities · 2021 · Libsndfile Project
CVE-2021-4156
Libsndfile Project Libsndfile vulnerability
An out-of-bounds read flaw was found in libsndfile's FLAC codec functionality. An attacker who is able to submit a specially crafted file (via tricking a user to open or otherwise) to an application linked with libsndfile and using the FLAC codec, could trigger an out-of-bounds read that would most likely cause a crash but could potentially leak memory information that could be used in further exploitation of other flaws.
Affected products
Libsndfile, Debian Linux. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Libsndfile Project Libsndfile runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/libsndfile/libsndfile/pull/732/commits/4c30646abf7834e406f7e2429c70bc254e18beab · Patch
- bugzilla.redhat.com/show_bug.cgi?id=2027690 · Exploit
- github.com/libsndfile/libsndfile/issues/731 · Exploit
- lists.debian.org/debian-lts-announce/2022/06/msg00020.html · Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/09/msg00036.html · Third Party Advisory
- security.gentoo.org/glsa/202309-11
- lists.debian.org/debian-lts-announce/2025/12/msg00013.html
- nvd.nist.gov/vuln/detail/CVE-2021-4156
- cve.org/CVERecord?id=CVE-2021-4156
More vulnerabilities in Libsndfile Project products
CVE-2025-56226CVE-2025-52194CVE-2024-50613CVE-2024-50612CVE-2022-33065CVE-2022-33064CVE-2021-3246CVE-2019-3832All 31
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.