Critical Security Flaw in libpng: Arbitrary Code Execution Vulnerability

libpng Updated 19 May 2026

Summary

18/05/2026
N/A
Yes i
Unrated
Not published

ALSA-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 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 for handling Portable Network Graphics (PNG) image files. It provides essential functions for creating, manipulating, and displaying PNG images, making it a critical component in various applications and systems that rely on image processing. The library is known for its efficiency and compatibility across different platforms, but like any software, it can be susceptible to vulnerabilities that may compromise its integrity and security.

Vulnerability Detail

The vulnerability identified in libpng is a use-after-free issue, which can lead to arbitrary code execution. This flaw arises when the software attempts to access memory that has already been freed, potentially allowing an attacker to execute malicious code. The implications of this vulnerability are significant, as it could enable unauthorized access to systems, data breaches, or even complete system compromise. The specific identifier for this vulnerability is CVE-2026-33416.

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 may consider disabling features that utilize libpng until the update is applied. However, this is not a long-term solution and should only be used if immediate patching is not feasible.

Conclusion

The libpng security update addresses a critical use-after-free vulnerability that could lead to arbitrary code execution. It is essential for users to update their libpng and libpng-devel packages to the patched version to protect their systems from potential attacks. Utilizing tools like Vulert can help monitor for such vulnerabilities in real-time.

See every vulnerability recorded for libpng →

Share this vulnerability

FAQ

The vulnerability is a use-after-free issue that can lead to arbitrary code execution, allowing attackers to execute malicious code.

You can use the Vulert platform, which allows you to monitor and alert for open-source vulnerabilities in your software by analyzing your manifest file. Visit Vulert Scanner to check your application without any signup.

Failure to address this vulnerability could result in unauthorized access, data breaches, or complete system compromise.

Yes, the vulnerability is fixed in version 2:1.6.40-8.el10_1.4 and later. It is crucial to update to this version or newer.

If immediate updating is not possible, consider disabling features that rely on libpng as a temporary workaround until you can apply the patch.

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