# CVE-2021-4156: An out-of-bounds read flaw was found in libsndfile's FLAC codec functionality.

- Severity: High 7.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.75%, higher than 78% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2022-03-23T00:00:00.000Z
- Modified: 2026-06-17T04:19:07.763Z
- Weaknesses: CWE-125
- Assigned by: redhat

## Description

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.

(As written by CVE List.)

## Affected

- libsndfile: libsndfile 1.1.0
- libsndfile_project libsndfile: 1.1.10
- debian debian_linux: 9.0; 10.0

## Every score

- NVD: CVSS:3.1 7.1 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:N/A:P`

## References

- <https://bugzilla.redhat.com/show_bug.cgi?id=2027690> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/libsndfile/libsndfile/issues/731> (exploit, issue-tracking, third-party-advisory)
- <https://github.com/libsndfile/libsndfile/pull/732/commits/4c30646abf7834e406f7e2429c70bc254e18beab> (patch, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/06/msg00020.html> (mailing-list, third-party-advisory)
- <https://lists.debian.org/debian-lts-announce/2022/09/msg00036.html> (mailing-list, third-party-advisory)
- <https://security.gentoo.org/glsa/202309-11> (vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/12/msg00013.html>

## Sources

- CVE List: [CVE-2021-4156](https://www.cve.org/CVERecord?id=CVE-2021-4156), CVE Terms of Use, modified 2025-12-11
- NVD: [CVE-2021-4156](https://nvd.nist.gov/vuln/detail/CVE-2021-4156), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-4156 · Whole record: https://cve.day/CVE-2021-4156.json · Rebuilt by cve.day 2026-11-25T22:58:07.256Z
