VYPR
High severityNVD Advisory· Published Jul 10, 2019· Updated Aug 5, 2024

CVE-2018-14550

CVE-2018-14550

Description

Stack-based buffer overflow in pnm2png's get_token function in libpng 1.6.35 can cause memory corruption via crafted PNM images.

AI Insight

LLM-synthesized narrative grounded in this CVE's description and references.

Stack-based buffer overflow in pnm2png's get_token function in libpng 1.6.35 can cause memory corruption via crafted PNM images.

Vulnerability

CVE-2018-14550 is a stack-based buffer overflow vulnerability found in the get_token function of pnm2png.c, a utility in the libpng 1.6.35 distribution. The issue arises when processing specially crafted PNM (Portable Any Map) image files, leading to out-of-bounds writes on the stack [1][4].

Exploitation

To trigger the vulnerability, an attacker must supply a malicious PNM file to the pnm2png tool. The overflow occurs during token parsing without proper bounds checking. No authentication is needed if the tool processes untrusted input. The flaw can be reproduced with address sanitizer (ASan) builds, confirming memory corruption [1][4].

Impact

Successful exploitation can overwrite adjacent stack memory, potentially allowing an attacker to execute arbitrary code or crash the application. The vulnerability is rated as high severity, though it primarily affects the pnm2png utility rather than libpng's core decoding functions [3].

Mitigation

Users should update libpng to a version that includes the fix for this issue. The official libpng repository contains newer releases that resolve the overflow [2]. If updating the library is not immediately possible, avoid processing untrusted PNM files with the pnm2png tool until a patch is applied.

AI Insight generated on May 22, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.

Affected packages

Versions sourced from the GitHub Security Advisory.

PackageAffected versionsPatched versions
libpngNuGet
< 1.6.371.6.37

Affected products

2

Patches

0

No patches discovered yet.

Vulnerability mechanics

AI mechanics synthesis has not run for this CVE yet.

References

10

News mentions

0

No linked articles in our index yet.