pngquant 2.7.0 PNG File rwpng.c rwpng_read_image24_libpng integer overflow

CVSS Meta Temp Score
CVSS is a standardized scoring system to determine possibilities of attacks. The Temp Score considers temporal factors like disclosure, exploit and countermeasures. The unique Meta Score calculates the average score of different sources to provide a normalized scoring system.
Current Exploit Price (≈)
Our analysts are monitoring exploit markets and are in contact with vulnerability brokers. The range indicates the observed or calculated exploit price to be seen on exploit markets. A good indicator to understand the monetary effort required for and the popularity of an attack.
CTI Interest Score
Our Cyber Threat Intelligence team is monitoring different web sites, mailing lists, exploit markets and social media networks. The CTI Interest Score identifies the interest of attackers and the security community for this specific vulnerability in real-time. A high score indicates an elevated risk to be targeted for this vulnerability.
6.2$0-$5k0.00

A vulnerability was found in pngquant 2.7.0. It has been declared as critical. This vulnerability affects the function rwpng_read_image24_libpng of the file rwpng.c of the component PNG File Handler. The manipulation with an unknown input leads to a integer overflow vulnerability. The CWE definition for the vulnerability is CWE-190. The product performs a calculation that can produce an integer overflow or wraparound, when the logic assumes that the resulting value will always be larger than the original value. This can introduce other weaknesses when the calculation is used for resource management or execution control. As an impact it is known to affect confidentiality, integrity, and availability. CVE summarizes:

Integer overflow in the rwpng_read_image24_libpng function in rwpng.c in pngquant 2.7.0 allows remote attackers to have unspecified impact via a crafted PNG file, which triggers a buffer overflow.

The bug was discovered 06/23/2016. The weakness was shared 05/23/2017 (GitHub Repository). The advisory is shared for download at github.com. This vulnerability was named CVE-2016-5735 since 06/21/2016. The attack can be initiated remotely. No form of authentication is required for a successful exploitation. Successful exploitation requires user interaction by the victim. There are known technical details, but no exploit is available.

The vulnerability was handled as a non-public zero-day exploit for at least 334 days. During that time the estimated underground price was around $0-$5k. The vulnerability scanner Nessus provides a plugin with the ID 100515 (Debian DLA-966-1 : pngquant security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks and running in the context l.

Upgrading eliminates this vulnerability. A possible mitigation has been published 1 weeks after the disclosure of the vulnerability.

The vulnerability is also documented in the vulnerability database at Tenable (100515). The entries VDB-180549, VDB-182686, VDB-183442 and VDB-188777 are related to this item.

Productinfo

Name

Version

License

CPE 2.3info

CPE 2.2info

CVSSv4info

VulDB CVSS-B Score: 🔍
VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍

CVSSv3info

VulDB Meta Base Score: 6.5
VulDB Meta Temp Score: 6.2

VulDB Base Score: 5.3
VulDB Temp Score: 4.7
VulDB Vector: 🔍
VulDB Reliability: 🔍

NVD Base Score: 7.8
NVD Vector: 🔍

CVSSv2info

AVACAuCIA
💳💳💳💳💳💳
💳💳💳💳💳💳
💳💳💳💳💳💳
VectorComplexityAuthenticationConfidentialityIntegrityAvailability
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock
unlockunlockunlockunlockunlockunlock

VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍

NVD Base Score: 🔍

Exploitinginfo

Class: Integer overflow
CWE: CWE-190 / CWE-189
CAPEC: 🔍
ATT&CK: 🔍

Local: No
Remote: Yes

Availability: 🔍
Status: Not defined

EPSS Score: 🔍
EPSS Percentile: 🔍

Price Prediction: 🔍
Current Price Estimation: 🔍

0-Dayunlockunlockunlockunlock
Todayunlockunlockunlockunlock

Nessus ID: 100515
Nessus Name: Debian DLA-966-1 : pngquant security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
Nessus Context: 🔍

Threat Intelligenceinfo

Interest: 🔍
Active Actors: 🔍
Active APT Groups: 🔍

Countermeasuresinfo

Recommended: Upgrade
Status: 🔍

Reaction Time: 🔍
0-Day Time: 🔍
Exposure Time: 🔍

Patch: github.com

Timelineinfo

06/21/2016 🔍
06/23/2016 +2 days 🔍
05/23/2017 +334 days 🔍
05/23/2017 +0 days 🔍
05/23/2017 +0 days 🔍
05/30/2017 +7 days 🔍
05/31/2017 +1 days 🔍
12/07/2022 +2016 days 🔍

Sourcesinfo

Advisory: b7c217680cda02dddced245d237ebe8c383be285
Status: Not defined
Confirmation: 🔍

CVE: CVE-2016-5735 (🔍)
OSVDB: - CVE-2016-5735 - Pngquant - Pngquant - Medium

See also: 🔍

Entryinfo

Created: 05/23/2017 12:43
Updated: 12/07/2022 08:18
Changes: 05/23/2017 12:43 (65), 05/24/2017 19:21 (1), 10/02/2020 09:16 (5), 12/07/2022 08:16 (5), 12/07/2022 08:18 (1)
Complete: 🔍
Committer: glennrp
Cache ID: 18:152:103

Discussion

glennrp (+2)
7 years ago
This vulnerability is about pngquant, not libpng. There are other libpng applications that suffer from the same vulnerability. The underlying problem is that the Portable Network Graphics (PNG) format allows as many as 2^31-1 rows and 2^31-1 columns and up to eight bytes per pixel. Applications that try to allocate all pixels in a single buffer will be subject to integer overflow, even on 64-bit platforms.

Want to stay up to date on a daily basis?

Enable the mail alert feature now!