Critical Vulnerability in libpng: Arbitrary Code Execution Risk

libpng Updated 19 May 2026

Summary

19/05/2026
N/A
Yes i
High
7.5

RLSA-2026:18064: Moderate: libpng security update. Affects libpng versions < 2:1.6.40-8.el10_1.4. Fixed in 2:1.6.40-8.el10_1.4. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

libpng is a widely used library that provides functions for creating and manipulating Portable Network Graphics (PNG) image files. It is integral to many applications that require image processing capabilities. The library is known for its efficiency and versatility in handling PNG files, making it a staple in software development. However, it has recently been identified to have a security vulnerability that could allow arbitrary code execution, posing significant risks to applications that utilize it.

Vulnerability Detail

The vulnerability, identified as CVE-2026-33416, is a use-after-free issue within the libpng library. This flaw allows an attacker to execute arbitrary code on the affected system by exploiting the improper handling of memory. If an application using libpng processes a specially crafted PNG file, it may lead to unexpected behavior, including crashes or unauthorized access to system resources. The severity of this vulnerability is underscored by its CVSS score of 7.5, indicating a high risk of exploitation.

How To Fix

Minimum fixed version

2:1.6.40-8.el10_1.4

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 measure, users can avoid processing untrusted PNG files until the package is updated. This can help reduce the risk of exploitation while waiting for the official patch.

Conclusion

The libpng library has a critical vulnerability that could lead to arbitrary code execution. It is crucial for users to update to the latest patched version to protect their applications from potential exploitation. Employing Vulert can further enhance your security posture by providing real-time monitoring of vulnerabilities.

See every vulnerability recorded for libpng →

Share this vulnerability

FAQ

CVE-2026-33416 is a security vulnerability in the libpng library that allows for arbitrary code execution due to a use-after-free error.

If your application uses libpng to process PNG files, it may be at risk of exploitation, leading to potential unauthorized access or crashes.

As a workaround, avoid processing untrusted PNG files until you can apply the necessary updates to the libpng package.

Detailed information can be found on the CVE page for CVE-2026-33416, which provides insights into the vulnerability's impact and mitigation strategies.

Vulert provides a service that monitors and alerts for open-source vulnerabilities in your software using a manifest file like package-lock.json, allowing you to stay informed without needing to access the code directly.

Related vulnerabilities

Recent vulnerabilities recorded for libpng.

How To Fix

Minimum fixed version

2:1.6.40-8.el10_1.4

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