Skip to main content
No exploitation reportedFix available

CVE-2021-4156

No exploitation reported by the sources we read.

  • Published2022-03-23
  • WeaknessCWE-125

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2022-03-2320:15CVE publishedNVD

Versions per branch

NVD
Debian debian linux
BranchAffectedFixed in
9.0= 9.0no fix published
10.0= 10.0no fix published
Libsndfile project libsndfile
BranchAffectedFixed in
1.1= 1.1.10no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libsndfileUbuntu:Pro:18.04:LTSall versions · fixed in 1.0.28-4ubuntu0.18.04.2+esm2
  • libsndfileUbuntu:Pro:16.04:LTSall versions · fixed in 1.0.25-10ubuntu0.16.04.3+esm2
  • libsndfileUbuntu:Pro:14.04:LTSall versions · fixed in 1.0.25-7ubuntu2.2+esm4
  • libsndfileUbuntu:22.04:LTSall versions · fixed in 1.0.31-2ubuntu0.2
  • libsndfileUbuntu:20.04:LTSall versions · fixed in 1.0.28-7ubuntu0.3
  • libsndfileSUSE:OpenStack Cloud Crowbar 9all versions · fixed in 1.0.25-36.26.1
  • libsndfileSUSE:OpenStack Cloud Crowbar 8all versions · fixed in 1.0.25-36.26.1
  • libsndfileSUSE:OpenStack Cloud 9all versions · fixed in 1.0.25-36.26.1

51 more package ranges on OSV.dev

Vendor advisories

  • CVE-2021-4156 Red Hat Product Security52 products fixed · 7 known affected

    libsndfile: heap out-of-bounds read in src/flac.c in flac_buffer_copy

    libsndfile as a component of Red Hat Enterprise Linux 6 · libsndfile-devel as a component of Red Hat Enterprise Linux 6 · libsndfile.src as a component of Red Hat Enterprise Linux 6 · +4 more

  • RHSA-2022:1968 Red Hat Product Security41 products fixed

    Red Hat Security Advisory: libsndfile security update

Full record on NVD

Fix

  1. Vendor fix Red Hat Product Security RHSA-2022:1968 · 41 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  2. Workaround from the vendor Red Hat Product Security RHSA-2022:1968 · 41 productsOne way to mitigate the risk of this flaw is to not open untrusted sound files using libsndfile or other linked programs.
  3. No fix planned, says the vendor Red Hat Product Security CVE-2021-4156 · 7 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • NVDCVSS 3.17.1read 2026-10-23
  • NVDCVSS 2.05.8read 2026-10-23
  • CNAweakness (CWE)CWE-125known since 2026-10-23
  • NVDweakness (CWE)CWE-125read 2026-10-23
  • FIRST EPSSEPSS score1.8 %2026-11-08
  • OSVaffected packages—
  • GitHub Advisoriesadvisory—

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H
Published
2022-03-23
Last Modified
2026-06-17
NVD status
Modified
GitHub Advisory
GHSA-vvgm-gfhp-rj9x

Frequently asked questions

What is CVE-2021-4156?

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.

Is CVE-2021-4156 actively exploited?

Active exploitation of CVE-2021-4156 has not been confirmed. Its EPSS score was 1.8% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2021-4156?

CVE-2021-4156 has a CVSS v3 base score of 7.1 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:H.

Running libsndfile? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record