Description
The getImageData function in the ImageBufferCairo class in WebCore/platform/graphics/cairo/ImageBufferCairo.cpp in WebKit, as used in WebKitGTK+ prior to version 2.20.3 and WPE WebKit prior to version 2.20.1, is vulnerable to a heap-based buffer overflow triggered by an integer overflow, which could be abused by crafted HTML content.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | webkit2gtk | 2.20.3-1 | — |
| Debian 13 | webkit2gtk | 2.20.3-1 | — |
| Debian 12 | webkit2gtk | 2.20.3-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 24.04 LTS | qtwebkit-opensource-src | No fix yet | — |
| Ubuntu 22.04 LTS | qtwebkit-opensource-src | No fix yet | — |
| Ubuntu 20.04 LTS | qtwebkit-opensource-src | No fix yet | — |
| Ubuntu 18.04 LTS | webkit2gtk | 2.20.3-0ubuntu0.18.04.1 | USN-3687-1 |
| Ubuntu 18.04 LTS | webkitgtk +2 | No fix yet | — |
| Ubuntu 16.04 LTS | webkit2gtk | 2.20.3-0ubuntu0.16.04.1 | USN-3687-1 |
| Ubuntu 16.04 LTS | webkitgtk +2 | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- WebkitGTK+ 2.20.3 - 'ImageBufferCairo::getImageData()' Buffer Overflow (PoC) EDB-45205 · local · Aug 16, 2018
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- USN-3687-1 webkit2gtk vulnerabilities Ubuntu Security Notices (USN) · Apr 22, 2026
References
- https://bugs.webkit.org/show_bug.cgi?id=186384
- GLSA-201808-04 vendor-advisory
- 20180614 WebKitGTK+ and WPE WebKit Security Advisory WSA-2018-0005 mailing-list
- 45205 exploit
- https://trac.webkit.org/changeset/232618
- USN-3687-1 vendor-advisory
- http://packetstormsecurity.com/files/148200/WebKitGTK-Data-Leak-Code-Execution.html
- [oss-security] 20180614 WebKitGTK+ and WPE WebKit Security Advisory WSA-2018-0005 mailing-list