Critical Security Flaw in libpng: Buffer Overflow and Out-of-Bounds Read Vulnerabilities

libpng Updated 08 Jan 2026

Summary

07/01/2026
N/A
Yes i
Unrated
Not published

ALSA-2026:0237: Important: libpng security update. Affects libpng versions < 2:1.6.40-8.el10_1.1. Fixed in 2:1.6.40-8.el10_1.1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

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 and rendering. The library is known for its efficiency and support for various PNG features. However, recent vulnerabilities have been identified that could compromise the security of applications relying on this library.

Vulnerability Detail

The vulnerabilities in libpng include a buffer overflow (CVE-2025-64720), a heap buffer overflow (CVE-2025-65018), and an out-of-bounds read in the png_image_read_composite function (CVE-2025-66293). These flaws can lead to arbitrary code execution, data corruption, or denial of service, posing significant risks to systems using affected versions of the library.

How To Fix

Minimum fixed version

2:1.6.40-8.el10_1.1

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

As a temporary workaround, users can avoid using the affected functions in libpng until the update is applied. However, this may limit functionality depending on the application’s reliance on image processing features.

Conclusion

The identified vulnerabilities in libpng pose serious security risks that can affect applications relying on this library. It is imperative to update to the latest patched version to mitigate these risks. Users should also consider using tools like Vulert to monitor for vulnerabilities in their software.

See every vulnerability recorded for libpng →

Share this vulnerability

FAQ

libpng is a library used for handling PNG image files, providing essential functions for image creation and manipulation.

The vulnerabilities can lead to arbitrary code execution, data corruption, or denial of service, which can compromise system integrity.

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

If you cannot update immediately, avoid using the affected functions in libpng as a temporary workaround.

More details can be found on the CVE pages linked in the advisory, which provide in-depth information about the vulnerabilities and their impacts.

Related vulnerabilities

Recent vulnerabilities recorded for libpng.

How To Fix

Minimum fixed version

2:1.6.40-8.el10_1.1

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