CVE-2022-39237 Digital Signature Hash Algorithms Not Validated in sylabs/sif

Medium 6.3 Published Updated

Attackers can bypass digital signature verification in Singularity Image Format libraries by using insecure hash algorithms, compromising image integrity.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2022-39237?

CVE-2022-39237 is a medium-severity vulnerability in sylabs sif, published on 6 Oct 2022. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

syslabs/sif is the Singularity Image Format (SIF) reference implementation. In versions prior to 2.8.1the `github.com/sylabs/sif/v2/pkg/integrity` package did not verify that the hash algorithm(s) used are cryptographically secure when verifying digital signatures. A patch is available in version >= v2.8.1 of the module. Users are encouraged to upgrade. Users unable to upgrade may independently validate that the hash algorithm(s) used for metadata digest(s) and signature hash are cryptographically secure.

Weakness: CWE-327, CWE-347

Which versions are affected by CVE-2022-39237?

3 open source packages ship an affected version, including github.com/sylabs/sif/v2. It affects 1 product.

PackageAffectedFixed in
github.com/sylabs/sif/v2 GoAll versions2.8.1
github.com/sylabs/sif/v2 GoAll versions2.8.1
github.com/sylabs/sif/v2 GoAll versions2.8.1
Linux distribution packages (1)
apptainer openSUSE:TumbleweedAll versions1.1.2-1.1

Products include Sylabs Singularity Image Format.

How do I fix CVE-2022-39237?

Upgrade github.com/sylabs/sif/v2 to 2.8.1 or later.

Is CVE-2022-39237 being exploited?

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

Sources

Also known as CLEANSTART-2024-TO97998, DEBIAN-CVE-2022-39237, GHSA-m5m3-46gj-wch8, GO-2022-1045, UBUNTU-CVE-2022-39237, openSUSE-SU-2024:12389-1.

Is CVE-2022-39237 in your software?

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

Check your SBOMs for free