cairo: Stack-based buffer overflow via parsing of crafted WebKitGTK+ document
Published Oct 8, 2018
6.5
MEDIUMCVSS 3.1
EPSS 1.48%
Description
cairo through 1.15.14 has an out-of-bounds stack-memory write during processing of a crafted document by WebKitGTK+ because of the interaction between cairo-rectangular-scan-converter.c (the generate and render_rows functions) and cairo-image-compositor.c (the _cairo_image_spans_and_zero function).
Affected products
No data.
- ≤ 1.15.14
No data.
Red Hat Enterprise Linux 5
cairo
Not affected
Red Hat Enterprise Linux 6
cairo
Not affected
Red Hat Enterprise Linux 6
chromium-browser
Will not fix
Red Hat Enterprise Linux 6
firefox
Will not fix
Red Hat Enterprise Linux 6
thunderbird
Will not fix
Red Hat Enterprise Linux 7
cairo
Will not fix
Red Hat Enterprise Linux 8
cairo
Will not fix
Red Hat Enterprise Linux 8
mingw-cairo
Will not fix
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | cairo | Not affected | n/a |
| Red Hat Enterprise Linux 6 | cairo | Not affected | n/a |
| Red Hat Enterprise Linux 6 | chromium-browser | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | firefox | Will not fix | n/a |
| Red Hat Enterprise Linux 6 | thunderbird | Will not fix | n/a |
| Red Hat Enterprise Linux 7 | cairo | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | cairo | Will not fix | n/a |
| Red Hat Enterprise Linux 8 | mingw-cairo | Will not fix | n/a |
No package ranges for this CVE.
Remediation
Red Hat mitigation
Attackers can use specially-crafted files to trigger this stack-buffer overflow in cairo. Applications compiled with cairo, which do not parse untrusted 2D image files are not vulnerable to this flaw. cairo package in Red Hat Enterprise Linux 7 and 8 is compiled with gcc's Stack Smashing Protection, which may reduce the impact of this flaw to crash only.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
AV:N/AC:M/Au:N/C:N/I:N/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 2, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Percentile over time
- EPSS v1
- EPSS v5
- EPSS v2
- EPSS v3
Table of values (11 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 2, 2026 | 1.48% (0.01480) | 73.00th | v5 (v2026.06.15) |
| Sep 20, 2026 | 1.48% (0.01480) | 72.76th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.18% (0.00182) | 55.89th | v3 (v2023.03.01) |
| May 27, 2024 | 0.18% (0.00182) | 55.40th | v3 (v2023.03.01) |
| Nov 8, 2023 | 0.17% (0.00171) | 54.10th | v3 (v2023.03.01) |
| Sep 3, 2023 | 0.15% (0.00154) | 50.99th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.12% (0.00119) | 44.22th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.66% (0.00663) | 18.75th | v5 (v2026.06.15) |
| Apr 14, 2021 | 0.66% (0.00663) | 0.00th | v1 |
References (6)
- https://access.redhat.com/security/cve/CVE-2018-18064 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1637792 Issue Tracking
- https://gitlab.freedesktop.org/cairo/cairo/issues/341 x_refsource_MISCExploitThird Party Advisory
- https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E mailing-listx_refsource_MLIST
- https://nvd.nist.gov/vuln/detail/CVE-2018-18064
- https://www.cve.org/CVERecord?id=CVE-2018-18064
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-18064 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1637792 | Issue Tracking | |
| https://gitlab.freedesktop.org/cairo/cairo/issues/341 | x_refsource_MISCExploitThird Party Advisory | |
| https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E | mailing-listx_refsource_MLIST | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-18064 | ||
| https://www.cve.org/CVERecord?id=CVE-2018-18064 |
Change history (0)
No recorded changes yet.