Executive Summary

Summary
Title libbpg contains a type confusion vulnerability that leads to out of bounds write
Informations
Name VU#123799 First vendor Publication 2016-07-12
Vendor VU-CERT Last vendor Modification 2016-07-12
Severity (Vendor) N/A Revision M

Security-Database Scoring CVSS v3

Cvss vector : N/A
Overall CVSS Score NA
Base Score NA Environmental Score NA
impact SubScore NA Temporal Score NA
Exploitabality Sub Score NA
 
Calculate full CVSS 3.0 Vectors scores

Security-Database Scoring CVSS v2

Cvss vector : (AV:N/AC:M/Au:N/C:P/I:P/A:P)
Cvss Base Score 6.8 Attack Range Network
Cvss Impact Score 6.4 Attack Complexity Medium
Cvss Expoit Score 8.6 Authentication None Required
Calculate full CVSS 2.0 Vectors scores

Detail

Vulnerability Note VU#123799

libbpg contains a type confusion vulnerability that leads to out of bounds write

Original Release date: 12 Jul 2016 | Last revised: 12 Jul 2016

Overview

libbpg is a library for the BPG graphics format. libbpg 0.9.5 through 0.9.7 may allow a crafted file to write out-of-bounds, which may lead to denial of service or arbitrary code execution.

Description

CWE-787: Out-of-bounds Write - CVE-2016-5637

According to the reporter, improper checking of transquant_bypass_enable_flag in the function restore_tqb_pixels in libbpg 0.9.5 through 0.9.7 may allow a crafted file to write out-of-bounds, which may lead to denial of service or arbitrary code execution.

Other versions may also be impacted. The CERT/CC has not been able to confirm this information with libbpg developers.

libbpg is used within other products; see the Vendor Status list below for more information.

Impact

By causing an application that uses libbpg to process a malformed image, a remote unauthenticated attacker may be able to write to memory, which may lead to denial of service or arbitrary code execution.

Solution

The CERT/CC is currently unaware of a practical solution to this problem. Users may consider the following workarounds:

Update ImageMagick Security Policy

ImageMagick's security policy may be updated to deny BPG from use by modifying the policy.xml configuration file. The BPG element may also be removed from the delegate.xml configuration file. More information on these configuration files is available at ImageMagick's website.

Vendor Information (Learn More)

VendorStatusDate NotifiedDate Updated
libbpgAffected03 Jun 201627 Jun 2016
If you are a vendor and your product is affected, let us know.

CVSS Metrics (Learn More)

GroupScoreVector
Base6.8AV:N/AC:M/Au:N/C:P/I:P/A:P
Temporal5.8E:POC/RL:U/RC:UR
Environmental4.4CDP:ND/TD:M/CR:ND/IR:ND/AR:ND

References

  • http://bellard.org/bpg/
  • http://www.imagemagick.org/script/security-policy.php

Credit

Thanks to Shi Ji (@Puzzor) for reporting this vulnerability.

This document was written by Garret Wassermann.

Other Information

  • CVE IDs:CVE-2016-5637
  • Date Public:12 Jul 2016
  • Date First Published:12 Jul 2016
  • Date Last Updated:12 Jul 2016
  • Document Revision:11

Feedback

If you have feedback, comments, or additional information about this vulnerability, please send us email.

Original Source

Url : http://www.kb.cert.org/vuls/id/123799

CWE : Common Weakness Enumeration

% Id Name
100 % CWE-119 Failure to Constrain Operations within the Bounds of a Memory Buffer

CPE : Common Platform Enumeration

TypeDescriptionCount
Application 4

Alert History

If you want to see full details history, please login or register.
0
1
2
Date Informations
2016-07-19 01:01:48
  • Multiple Updates
2016-07-16 01:01:51
  • Multiple Updates
2016-07-12 21:29:22
  • First insertion