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.
| Package | Affected versions | Patched versions |
|---|---|---|
libpngNuGet | < 1.6.37 | 1.6.37 |
Affected products
2- libpng/libpngdescription
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
10- github.com/advisories/GHSA-qwwr-qc2p-6283ghsaADVISORY
- nvd.nist.gov/vuln/detail/CVE-2018-14550ghsaADVISORY
- security.gentoo.org/glsa/201908-02ghsavendor-advisoryWEB
- github.com/fouzhe/security/tree/master/libpngghsaWEB
- github.com/glennrp/libpng/issues/246ghsaWEB
- security.netapp.com/advisory/ntap-20221028-0001ghsaWEB
- snyk.io/vuln/SNYK-UPSTREAM-LIBPNG-1043612ghsaWEB
- www.oracle.com/security-alerts/cpuApr2021.htmlghsaWEB
- www.oracle.com/security-alerts/cpuoct2021.htmlghsaWEB
- security.netapp.com/advisory/ntap-20221028-0001/mitre
News mentions
0No linked articles in our index yet.