Remote code execution in Simple DirectMedia Layer

Published: 2017-10-11 14:20:14
Severity High
Patch available YES
Number of vulnerabilities 2
CVE ID CVE-2017-2887
CVE-2017-2888
CVSSv3 8.6 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H/E:P/RL:O/RC:C]
8.6 [CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:H/E:P/RL:O/RC:C]
CWE ID CWE-121
CWE-190
Exploitation vector Network
Public exploit Public exploit code for vulnerability #1 is available.
Public exploit code for vulnerability #2 is available.
Vulnerable software Simple DirectMedia Layer
Vulnerable software versions Simple DirectMedia Layer 2.0.1
Simple DirectMedia Layer 2.0.5
Vendor URL zlib license

Security Advisory

1) Stack-based buffer overflow

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists in the XCF property handling function of Simple DirectMedia Layer SDL_image due to stack-based buffer overflow. A remote attacker can send a specially crafted xcf file, trick the victim into opening it, trigger memory corruption and execute arbitrary code with privileges of the current user.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Remediation

Update to version 2.0.6.

External links

https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0394

2) Integer overflow

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to integer overflow vulnerability exists when creating a new RGB Surface via a call to the CreateRBGSurface function. A remote attacker can send a specially crafted image file, trick the victim into opening it, trigger memory corruption and execute arbitrary code with privileges of the current user.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.

Remediation

Update to version 2.0.6.

External links

https://www.talosintelligence.com/vulnerability_reports/TALOS-2017-0395

Back to List