CVE-2022-27938
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-27938 affects stbimage.h (also known as the stb image loader) version 2.19, which is utilized in libsixel and other products. The vulnerability was discovered and disclosed on March 26, 2022, and involves a reachable assertion in the stbi_createpngimage_raw function (NVD, MITRE).

Technical details

The vulnerability exists in the stbi_createpngimageraw function of stbimage.h version 2.19. When processing certain PNG images, the function can trigger an assertion failure with the message 'imgwidthbytes <= x' at line 4374 of stbimage.h. This issue was identified during testing with Address Sanitizer (ASan) enabled (GitHub Issue).

Impact

The vulnerability has been classified as having negligible security impact, primarily affecting the availability of applications using the affected library. When triggered, it causes an assertion failure that leads to program termination (Debian Security).

Mitigation and workarounds

The vulnerability affects multiple versions of packages using stb_image.h, including various Debian distributions. As of the latest reports, some distributions remain vulnerable, including Debian bullseye, bookworm, and sid (Debian Security).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-48606HIGH7.8
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48625HIGH7
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48608MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-48569MEDIUM5.5
  • NixOSNixOS
  • android
NoNoDec 08, 2025
CVE-2025-65799MEDIUM4.3
  • NixOSNixOS
  • memos
NoYesDec 08, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management