CVE-2021-40426: 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. No link to upstream report, or patch, or anything, but sphere.c doesn't seem to have been touched since 2014.
CVE-2021-3643 (https://bugzilla.redhat.com/show_bug.cgi?id=1980626): A flaw was found in sox 14.4.1. The lsx_adpcm_init function within libsox leads to a global-buffer-overflow. This flaw allows an attacker to input a malicious file, leading to the disclosure of sensitive information. According to the Redhat bug, CVE-2021-23210 (a DoS) also affects Sox.
[CVE-2022-31650] In SoX 14.4.2, there is a floating-point exception in lsx_aiffstartwrite in aiff.c in libsox.a. [CVE-2022-31651] In SoX 14.4.2, there is an assertion failure in rate_init in rate.c in libsox.a. --- Found by fuzzing. URL: https://sourceforge.net/p/sox/bugs/360/
CVE-2021-23210 (https://bugzilla.redhat.com/show_bug.cgi?id=1975670): A floating point exception (divide-by-zero) issue was discovered in SoX in functon read_samples() of voc.c file. An attacker with a crafted file, could cause an application to crash. Issue: https://sourceforge.net/p/sox/bugs/351/ CVE-2021-33844 (https://bugzilla.redhat.com/show_bug.cgi?id=1975664): A floating point exception (divide-by-zero) issue was discovered in SoX in functon startread() of wav.c file. An attacker with a crafted wav file, could cause an application to crash. Issue: https://sourceforge.net/p/sox/bugs/349/ No patches, RedHat closed them as notabug.
CVE-2021-23159: A vulnerability was found in SoX, where a heap-buffer-overflow occurs in function lsx_read_w_buf() in formats_i.c file. The vulnerability is exploitable with a crafted file, that could cause an application to crash. Issue: https://sourceforge.net/p/sox/bugs/352/ RedHat bug: https://bugzilla.redhat.com/show_bug.cgi?id=1975671 CVE-2021-23172: A vulnerability was found in SoX, where a heap-buffer-overflow occurs in function startread() in hcom.c file. The vulnerability is exploitable with a crafted hcomn file, that could cause an application to crash. Issue: https://sourceforge.net/p/sox/bugs/350/ RedHat bug: https://bugzilla.redhat.com/show_bug.cgi?id=1975666 No response from upstream, and RedHat's WONTFIXed their bugs without explanation. Need to prod them, probably.
CVE-2022-31650 (https://sourceforge.net/p/sox/bugs/360/): In SoX 14.4.2, there is a floating-point exception in lsx_aiffstartwrite in aiff.c in libsox.a. CVE-2022-31651 (https://sourceforge.net/p/sox/bugs/360/): In SoX 14.4.2, there is an assertion failure in rate_init in rate.c in libsox.a. Seems like potential patches (for these two and others) at: http://www.openwall.com/lists/oss-security/2023/02/03/3
CVE-2023-34432 (https://bugzilla.redhat.com/show_bug.cgi?id=2212291): A heap buffer overflow vulnerability was found in sox, in the lsx_readbuf function at sox/src/formats_i.c:98:16. This flaw can lead to a denial of service, code execution, or information disclosure. Upstream report: https://sourceforge.net/p/sox/bugs/367/ CVE-2023-26590 (https://bugzilla.redhat.com/show_bug.cgi?id=2212279): A floating point exception vulnerability was found in sox, in the lsx_aiffstartwrite function at sox/src/aiff.c:622:58. This flaw can lead to a denial of service. Upstream report: https://sourceforge.net/p/sox/bugs/370/ CVE-2023-32627 (https://bugzilla.redhat.com/show_bug.cgi?id=2212282): A floating point exception vulnerability was found in sox, in the read_samples function at sox/src/voc.c:334:18. This flaw can lead to a denial of service. Upstream report: https://sourceforge.net/p/sox/bugs/369/ CVE-2023-34318 (https://bugzilla.redhat.com/show_bug.cgi?id=2212283): A heap buffer overflow vulnerability was found in sox, in the startread function at sox/src/hcom.c:160:41. This flaw can lead to a denial of service, code execution, or information disclosure. Upstream report: https://sourceforge.net/p/sox/bugs/368/ According to comments in the upstream issues, it appears these have patches in Debian.