Critical Security Flaw in libpng: Integer Truncation and Buffer Overflows

libpng Updated 09 Mar 2026

Summary

05/03/2026
N/A
Yes i
High
7.0

RLSA-2026:3551: Important: libpng security update. Affects libpng versions < 2:1.6.40-8.el10_1.2. Fixed in 2:1.6.40-8.el10_1.2. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

libpng is a widely used library that provides functions for creating and manipulating Portable Network Graphics (PNG) image files. It is essential for applications that require image processing capabilities. The library is known for its efficiency and flexibility in handling PNG images, making it a staple in various software applications. However, recent vulnerabilities have raised concerns about its security, particularly regarding integer truncation and heap buffer overflows, which can lead to severe security risks.

Vulnerability Detail

The vulnerabilities in libpng include an integer truncation issue in the simplified write API, which can lead to information disclosure and denial of service (CVE-2026-22801). Additionally, there is a heap buffer over-read vulnerability in the png_image_finish_read function (CVE-2026-22695), and a heap buffer overflow in the png_set_quantize function (CVE-2026-25646). These vulnerabilities can be exploited by attackers to manipulate PNG files, potentially leading to unauthorized access to sensitive information or application crashes.

How To Fix

Minimum fixed version

2:1.6.40-8.el10_1.2

This is the first release that contains the fix.

sudo dnf update libpng

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If immediate updating is not feasible, consider restricting access to applications that utilize libpng until the update can be applied. Additionally, review and validate any PNG files processed by your applications to mitigate potential risks.

Conclusion

The vulnerabilities in libpng pose significant security risks, including potential information disclosure and denial of service. It is crucial to update to the latest patched version to safeguard your applications. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for libpng →

Share this vulnerability

FAQ

libpng is a library used for handling PNG image files, providing functions for creating and manipulating these images.

The main vulnerabilities include integer truncation, heap buffer over-read, and heap buffer overflow, which can lead to information disclosure and denial of service.

You can use Vulert, which monitors open-source vulnerabilities in your software. Visit Vulert Scanner to check your application without needing to sign up.

The CVSS score for this vulnerability is 7.0, indicating a high severity level.

If you cannot update immediately, restrict access to applications using libpng and validate PNG files to reduce risks.

Related vulnerabilities

Recent vulnerabilities recorded for libpng.

How To Fix

Minimum fixed version

2:1.6.40-8.el10_1.2

This is the first release that contains the fix.

sudo dnf update libpng

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback