CVE-2021-23172 Memory corruption in SoX (Sound eXchange)

Medium 5.5 Published Updated

A heap-buffer-overflow in SoX allows attackers to crash the application via a crafted hcom file, impacting systems using this audio processing library.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2021-23172?

CVE-2021-23172 is a medium-severity memory corruption vulnerability in SoX (Sound eXchange), published on 25 Aug 2022. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-787, CWE-120

Which versions are affected by CVE-2021-23172?

It affects 1 product.

Products include Sound Exchange Project Sound Exchange.

How do I fix CVE-2021-23172?

Apply the vendor's patch.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2021-23172 being exploited?

There is no known exploitation of CVE-2021-23172 in the wild and no public exploit code.

Sources

Also known as AZL-43585, AZL-44781, DEBIAN-CVE-2021-23172, GHSA-mw59-4c4c-6hhr, UBUNTU-CVE-2021-23172.

Is CVE-2021-23172 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free