CVE-2021-40426
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of...
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- High
Exploit likelihood
What each source reports
CVE List Score used
10.0
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
- Record
CVE-2021-40426- CVSS 3.0
- 10.0 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H - Weakness
- CWE-122
- Updated
- 2026-11-02
EUVDEUVD-2021-27603
10.0
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
- Record
EUVD-2021-27603- CVSS 3.0
- 10.0 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-5x4j-m9qh-g9w5
8.8
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of...
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
- Record
GHSA-5x4j-m9qh-g9w5- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Weakness
- CWE-122, CWE-787
- Updated
- 2026-11-02
NVD
8.8
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
- Record
CVE-2021-40426- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 10.0 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H - CVSS 2.0
- 6.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:P - Weakness
- CWE-122, CWE-787
- Updated
- 2026-11-02
OSVALPINE-CVE-2021-40426
8.8
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
- Record
ALPINE-CVE-2021-40426- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-03
OSV
8.8
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
- Record
CVE-2021-40426- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
Show 7 moreShow less
OSVDEBIAN-CVE-2021-40426
8.8
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
- Record
DEBIAN-CVE-2021-40426- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2021-40426
8.8
A heap-based buffer overflow vulnerability exists in the sphere.c start_read() functionality of Sound Exchange libsox 14.4.2 and master commit 42b3557e. A specially-crafted file can lead to a heap buffer overflow. An attacker can provide a malicious file to trigger this vulnerability.
- Record
UBUNTU-CVE-2021-40426- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H - CVSS 3.0
- 10.0 Critical
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H - Updated
- 2026-11-02
OSVMGASA-2023-0059 No score
Updated sox packages fix security vulnerability
CVE-2019-13590: sox-fmt validation CVE-2021-3643 and CVE-2021-23210: voc validation CVE-2021-23159 and CVE-2021-23172: hcom validation CVE-2021-33844: wav validation CVE-2021-40426: sphere validation CVE-2022-31650: aiff validation CVE-2022-31651: reject implausible rate
- Record
MGASA-2023-0059- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0328-1 No score
Security update for sox
This update for sox fixes the following issues:
- Apply various fix patches taken from Debian package; it fixes also other entries (CVE-2022-31650 boo#1212060 CVE-2023-34318 boo#1212062 CVE-2023-34432 boo#1212063)
- Fix floating point exception in src/voc.c (CVE-2023-32627 boo#1212061)
- Record
openSUSE-SU-2023:0328-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2023:0329-1 No score
Security update for sox
This update for sox fixes the following issues:
- Apply various fix patches taken from Debian package; it fixes also other entries (CVE-2022-31650 boo#1212060 CVE-2023-34318 boo#1212062 CVE-2023-34432 boo#1212063)
- Fix floating point exception in src/voc.c (CVE-2023-32627 boo#1212061)
- Record
openSUSE-SU-2023:0329-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2024:13359-1 No score
libsox3-14.4.2-8.1 on GA media
These are all security issues fixed in the libsox3-14.4.2-8.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2024:13359-1- Updated
- 2026-11-02
OSVUSN-5904-1 No score
sox vulnerabilities
Helmut Grohne discovered that SoX incorrectly handled certain inputs. If a user or an automated system were tricked into opening a specially crafted input file, a remote attacker could possibly use this issue to cause a denial of service. This issue only affected Ubuntu 14.04 ESM, Ubuntu 16.04 ESM, and Ubuntu 18.04 LTS. (CVE-2019-13590)
Helmut Grohne discovered that SoX incorrectly handled certain inputs. If a user or an automated system were tricked into opening a specially crafted input file, a remote attacker could possibly use this issue to cause a denial of service. (CVE-2021-23159, CVE-2021-23172, CVE-2021-23210, CVE-2021-33844, CVE-2021-3643, CVE-2021-40426, CVE-2022-31650, and CVE-2022-31651)
- Record
USN-5904-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
soxAlpine:v3.18 |
before 14.4.2-r10 | 14.4.2-r10 |
soxAlpine:v3.19 |
before 14.4.2-r10 | 14.4.2-r10 |
soxAlpine:v3.20 |
before 14.4.2-r10 | 14.4.2-r10 |
soxAlpine:v3.21 |
before 14.4.2-r10 | 14.4.2-r10 |
soxAlpine:v3.22 |
before 14.4.2-r10 | 14.4.2-r10 |
soxAlpine:v3.23 |
before 14.4.2-r10 | 14.4.2-r10 |
soxAlpine:v3.24 |
before 14.4.2-r10 | 14.4.2-r10 |
soxDebian:12 |
before 14.4.2+git20190427-3.1 | 14.4.2+git20190427-3.1 |
soxDebian:13 |
before 14.4.2+git20190427-3.1 | 14.4.2+git20190427-3.1 |
soxDebian:10 |
before 14.4.2+git20190427-1+deb10u1, plus listed versions 14.4.2+git20190427-1 |
14.4.2+git20190427-1+deb10u1 |
Show 12 moreShow less
| Package | Affected | Fixed |
|---|---|---|
soxDebian:11 |
before 14.4.2+git20190427-2+deb11u1, plus listed versions 14.4.2+git20190427-2 |
14.4.2+git20190427-2+deb11u1 |
soxMageia:8 |
before 14.4.3-0.git20200117.3.1.mga8 | 14.4.3-0.git20200117.3.1.mga8 |
soxUbuntu:Pro:14.04:LTS |
before 14.4.1-3ubuntu1.1+esm2, plus listed versions 14.4.1-314.4.1-3ubuntu114.4.1-3ubuntu1.114.4.1-3ubuntu1.1+esm1 |
14.4.1-3ubuntu1.1+esm2 |
soxUbuntu:Pro:16.04:LTS |
before 14.4.1-5+deb8u4ubuntu0.1+esm1, plus listed versions 14.4.1-514.4.1-5ubuntu0.114.4.1-5ubuntu0.1+esm114.4.1-5+deb8u4ubuntu0.1 |
14.4.1-5+deb8u4ubuntu0.1+esm1 |
soxUbuntu:18.04:LTS |
before 14.4.2-3ubuntu0.18.04.2, plus listed versions 14.4.1-5build114.4.2-214.4.2-314.4.2-3ubuntu0.18.04.1 |
14.4.2-3ubuntu0.18.04.2 |
soxUbuntu:20.04:LTS |
before 14.4.2+git20190427-2+deb11u1build0.20.04.1, plus listed versions 14.4.2+git20190427-1build114.4.2+git20190427-2 |
14.4.2+git20190427-2+deb11u1build0.20.04.1 |
soxUbuntu:22.04:LTS |
before 14.4.2+git20190427-2+deb11u1build0.22.04.1, plus listed versions 14.4.2+git20190427-2 |
14.4.2+git20190427-2+deb11u1build0.22.04.1 |
soxSUSE:Package Hub 15 SP4 |
before 14.4.2-bp154.2.3.1 | 14.4.2-bp154.2.3.1 |
soxopenSUSE:Leap 15.4 |
before 14.4.2-bp154.2.3.1 | 14.4.2-bp154.2.3.1 |
soxSUSE:Package Hub 15 SP5 |
before 14.4.2-bp155.3.3.1 | 14.4.2-bp155.3.3.1 |
soxopenSUSE:Leap 15.5 |
before 14.4.2-bp155.3.3.1 | 14.4.2-bp155.3.3.1 |
soxopenSUSE:Tumbleweed |
before 14.4.2-8.1 | 14.4.2-8.1 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, aliases, references | OSV | |
| first indexed | CVE List, EUVD, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-40426 is a critical vulnerability (CVSS 10.0) in Sound Exchange Libsox, published April 14, 2022. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.05%, the 81st percentile. Fixed in sox 14.4.2-r10.
References
talosintelligence.com/vulnerability_reports/TALOS-2021-1434
openwall.com/lists/oss-security/2023/02/03/3
lists.debian.org/debian-lts-announce/2023/02/msg00009.html
debian.org/security/2023/dsa-5356
nvd.nist.gov/vuln/detail/CVE-2021-40426
github.com/advisories/GHSA-5x4j-m9qh-g9w5
Show 32 moreShow less
security.alpinelinux.org/vuln/CVE-2021-40426
security-tracker.debian.org/tracker/CVE-2021-40426
advisories.mageia.org/MGASA-2023-0059.html
bugs.mageia.org/show_bug.cgi?id=30291
debian.org/lts/security/2023/dla-3315
ubuntu.com/security/CVE-2021-40426
ubuntu.com/security/notices/USN-5904-1
cve.org/CVERecord?id=CVE-2021-40426
ubuntu.com/security/CVE-2019-13590
ubuntu.com/security/CVE-2021-3643
ubuntu.com/security/CVE-2021-23159
ubuntu.com/security/CVE-2021-23172
ubuntu.com/security/CVE-2021-23210
ubuntu.com/security/CVE-2021-33844
ubuntu.com/security/CVE-2022-31650
ubuntu.com/security/CVE-2022-31651
lists.opensuse.org/archives/list/[email protected]/thread/E6JOTRIOEMXEYXNHM2HOXMVP2MMLL3Y6
bugzilla.suse.com/1212060
bugzilla.suse.com/1212061
bugzilla.suse.com/1212062
bugzilla.suse.com/1212063
suse.com/security/cve/CVE-2019-13590
suse.com/security/cve/CVE-2021-23159
suse.com/security/cve/CVE-2021-33844
suse.com/security/cve/CVE-2021-3643
suse.com/security/cve/CVE-2021-40426
suse.com/security/cve/CVE-2022-31650
suse.com/security/cve/CVE-2022-31651
suse.com/security/cve/CVE-2023-32627
suse.com/security/cve/CVE-2023-34318
suse.com/security/cve/CVE-2023-34432
lists.opensuse.org/archives/list/[email protected]/thread/OWH3Y6RJSLCAZ7XAIEM2FMD5E6EQYZM5