{"vuid":"VU#123799","idnumber":"123799","name":"libbpg contains a type confusion vulnerability that leads to out of bounds write","keywords":["libbpg"],"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.","clean_desc":"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.","resolution":"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.","workarounds":"","sysaffected":"","thanks":"Thanks to Shi Ji (@Puzzor) for reporting this vulnerability.","author":"This document was written by Garret Wassermann.","public":["http://bellard.org/bpg/","http://www.imagemagick.org/script/security-policy.php"],"cveids":["CVE-2016-5637"],"certadvisory":"","uscerttechnicalalert":null,"datecreated":"2016-06-27T18:19:30Z","publicdate":"2016-07-12T00:00:00Z","datefirstpublished":"2016-07-12T17:11:40Z","dateupdated":"2016-07-12T17:11:41Z","revision":12,"vrda_d1_directreport":"1","vrda_d1_population":"3","vrda_d1_impact":"3","cam_widelyknown":"0","cam_exploitation":"0","cam_internetinfrastructure":"0","cam_population":"0","cam_impact":"0","cam_easeofexploitation":"0","cam_attackeraccessrequired":"0","cam_scorecurrent":"0","cam_scorecurrentwidelyknown":"0","cam_scorecurrentwidelyknownexploited":"0","ipprotocol":"","cvss_accessvector":"N","cvss_accesscomplexity":"M","cvss_authentication":null,"cvss_confidentialityimpact":"P","cvss_integrityimpact":"P","cvss_availabilityimpact":"P","cvss_exploitablity":null,"cvss_remediationlevel":"U","cvss_reportconfidence":"UR","cvss_collateraldamagepotential":"ND","cvss_targetdistribution":"M","cvss_securityrequirementscr":"ND","cvss_securityrequirementsir":"ND","cvss_securityrequirementsar":"ND","cvss_basescore":"6.8","cvss_basevector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","cvss_temporalscore":"5.8","cvss_environmentalscore":"4.37482289122594","cvss_environmentalvector":"CDP:ND/TD:M/CR:ND/IR:ND/AR:ND","metric":0.0,"vulnote":null}