Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-22801: CWE-125: Out-of-bounds Read in pnggroup libpng

0
Medium
VulnerabilityCVE-2026-22801cvecve-2026-22801cwe-125cwe-190
Published: Mon Jan 12 2026 (01/12/2026, 22:57:58 UTC)
Source: CVE Database V5
Vendor/Project: pnggroup
Product: libpng

Description

LIBPNG is a reference library for use in applications that read, create, and manipulate PNG (Portable Network Graphics) raster image files. From 1.6.26 to 1.6.53, there is an integer truncation in the libpng simplified write API functions png_write_image_16bit and png_write_image_8bit causes heap buffer over-read when the caller provides a negative row stride (for bottom-up image layouts) or a stride exceeding 65535 bytes. The bug was introduced in libpng 1.6.26 (October 2016) by casts added to silence compiler warnings on 16-bit systems. This vulnerability is fixed in 1.6.54.

AI-Powered Analysis

AILast updated: 01/12/2026, 23:23:29 UTC

Technical Analysis

CVE-2026-22801 is a vulnerability identified in the widely used libpng library, specifically affecting versions from 1.6.26 up to but not including 1.6.54. The issue stems from an integer truncation error in the simplified write API functions png_write_image_16bit and png_write_image_8bit. These functions handle image data row strides, which define the byte offset between rows in memory. When a negative row stride (used for bottom-up image layouts) or a stride exceeding 65535 bytes is provided, the integer truncation causes a heap buffer over-read. This means the library reads beyond the allocated memory buffer, potentially leading to application crashes or denial of service. The root cause was introduced in version 1.6.26 due to casts added to suppress compiler warnings on 16-bit systems, inadvertently creating this unsafe condition. The vulnerability does not require privileges or user interaction to exploit but does require local access to the vulnerable library. No known exploits have been reported in the wild to date. The vulnerability impacts confidentiality minimally but can severely affect availability by causing crashes. The issue is fixed in libpng version 1.6.54, which corrects the integer truncation and enforces proper bounds checking on row stride values. Given libpng's extensive use in image processing across many applications and platforms, this vulnerability could affect a broad range of software that processes PNG images, especially those that handle untrusted or malformed image inputs.

Potential Impact

For European organizations, the primary impact of CVE-2026-22801 is on the availability and stability of applications that utilize vulnerable versions of libpng for PNG image processing. This includes software in sectors such as media production, digital publishing, graphic design, web services, and any custom or commercial applications embedding libpng. An attacker with local access could trigger heap buffer over-reads by supplying crafted PNG images with malicious row stride values, causing application crashes or denial of service. While the confidentiality and integrity impacts are low, the disruption to critical services or workflows relying on image processing could be significant, especially in environments with high volumes of image data or automated image handling pipelines. European organizations with legacy systems or embedded devices using outdated libpng versions are particularly at risk. The lack of known exploits reduces immediate threat but does not eliminate the risk of future exploitation. Failure to patch could lead to operational interruptions and potential reputational damage if service outages occur.

Mitigation Recommendations

To mitigate CVE-2026-22801, European organizations should: 1) Immediately upgrade all libpng instances to version 1.6.54 or later, where the vulnerability is fixed. 2) Conduct an inventory of software and systems that embed libpng, including third-party applications and embedded devices, to identify vulnerable versions. 3) Implement strict input validation and sanitization for PNG images, especially those sourced from untrusted or external origins, to detect and reject malformed images with suspicious row stride values. 4) Employ runtime protections such as memory safety tools (e.g., ASAN) during development and testing to detect buffer over-read conditions. 5) Monitor application logs and crash reports for signs of heap buffer over-reads or abnormal terminations related to image processing. 6) Coordinate with software vendors to ensure timely patching and updates. 7) For environments where immediate patching is not feasible, consider isolating vulnerable applications or restricting access to reduce exposure. 8) Educate developers and system administrators about the risks associated with image processing vulnerabilities and secure coding practices.

Need more detailed analysis?Upgrade to Pro Console

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-01-09T22:50:10.287Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 69657efdda2266e83842302f

Added to database: 1/12/2026, 11:08:45 PM

Last enriched: 1/12/2026, 11:23:29 PM

Last updated: 1/13/2026, 1:44:43 AM

Views: 6

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console in Console -> Billing for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats