Critical Security Update for mingw-libpng: Buffer Overflows and Out-of-Bounds Read

mingw32-libpng Updated 08 Jan 2026

Summary

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

ALSA-2026:0125: Important: mingw-libpng security update. Affects mingw32-libpng versions < 1.6.34-1.el8_10. Fixed in 1.6.34-1.el8_10. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The mingw-libpng package is a MinGW Windows implementation of the popular libpng library, which is used for handling PNG (Portable Network Graphics) image files. It provides essential functionality for reading and writing PNG images, making it a crucial component for applications that require image processing. However, vulnerabilities in this library can lead to severe security risks, including buffer overflows and out-of-bounds reads, which can be exploited by attackers to execute arbitrary code or cause application crashes.

Vulnerability Detail

The mingw-libpng package has been identified with several critical vulnerabilities, including 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 vulnerabilities arise from improper handling of PNG image data, which can allow attackers to manipulate image files in a way that leads to memory corruption. The ramifications of these vulnerabilities can be severe, potentially allowing attackers to execute arbitrary code or crash applications that rely on the affected library.

How To Fix

Minimum fixed version

1.6.34-1.el8_10

This is the first release that contains the fix.

sudo dnf update mingw32-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 the libpng library until the package is updated. Additionally, validating and sanitizing input PNG files before processing them can help mitigate the risk of exploitation.

Conclusion

The mingw-libpng package has critical vulnerabilities that pose significant security risks. It is essential for users to update to the patched version to protect their applications from potential exploitation. Regular monitoring and validation of dependencies can help maintain security in software development.

See every vulnerability recorded for mingw32-libpng →

Share this vulnerability

FAQ

mingw-libpng is a MinGW Windows implementation of the libpng library, which is used for reading and writing PNG image files.

The vulnerabilities include a buffer overflow, a heap buffer overflow, and an out-of-bounds read, which can lead to memory corruption and potential code execution.

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

Update the mingw-libpng package to version 1.6.34-1.el8_10 or later to fix the vulnerabilities. Additionally, consider implementing input validation for PNG files.

Failing to update the package leaves your application vulnerable to exploitation, which could lead to unauthorized access, data breaches, or application crashes.

Related vulnerabilities

Recent vulnerabilities recorded for mingw32-libpng.

How To Fix

Minimum fixed version

1.6.34-1.el8_10

This is the first release that contains the fix.

sudo dnf update mingw32-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