CVE-2018-18064 Memory corruption in n/a

Medium 6.5 Published Updated

An out-of-bounds stack write in Cairo allows attackers to execute arbitrary code or cause denial of service via crafted documents.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2018-18064?

CVE-2018-18064 is a medium-severity memory corruption vulnerability in n/a, published on 8 Oct 2018. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official 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).

Weakness: CWE-787

Which versions are affected by CVE-2018-18064?

It affects 1 product.

Products include Cairographics Cairo.

How do I fix CVE-2018-18064?

Upgrade to a fixed version.

Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.

Is CVE-2018-18064 being exploited?

There is no known exploitation of CVE-2018-18064 in the wild and no public exploit code.

Sources

Also known as DEBIAN-CVE-2018-18064, ECHO-e239-b681-e01f, GHSA-8wp2-6325-3w3v, JLSEC-2025-13, UBUNTU-CVE-2018-18064.

Is CVE-2018-18064 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free