CVE-2026-131872 SOIL2 before 1.4.2 NULL Pointer Dereference in DDS, PVR and PKM Loaders

Medium 6.8 Published Updated
Exploited in the wild
Not known
Fix
1.4.2

What is CVE-2026-131872?

CVE-2026-131872 is a medium-severity vulnerability in Martin Lucas Golini SOIL2, published on 18 Nov 2026.

Official description

SOIL2 before 1.4.2 contains a NULL pointer dereference vulnerability in its DDS, PVR and PKM image loaders that write results through unchecked caller-supplied output pointers. Attackers can supply a valid DDS, PVR or PKM file to applications passing NULL output pointers to SOIL_load_image or stbi_info, causing a crash.

Weakness: CWE-476

Which versions are affected by CVE-2026-131872?

1 open source package ship an affected version, including spartanj/soil2.

PackageAffectedFixed in
spartanj/soil2 GitHub
pkg:github/spartanj/soil2
All versions1.4.2

How do I fix CVE-2026-131872?

Upgrade spartanj/soil2 to 1.4.2 or later.

Is CVE-2026-131872 being exploited?

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

Sources

Also known as GHSA-4gw9-pqc2-jhpg, UBUNTU-CVE-2026-131872.

Is CVE-2026-131872 in your software?

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

Check your SBOMs for free