CVE-2017-9814
High · 7.5CVSS
7.5
EPSS
3.4%
Published
Jul 17, 2017
CISA due date
—
Cloudanix analysis
A graphics library used by some applications can be tricked into crashing when it receives certain bad data, potentially taking those applications offline.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Memory Corruption
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Out-of-bounds read triggered by mishandling of an unexpected malloc(0) return value in cairo-truetype-subset.c, resulting in denial of service.
Why it matters to the business
Applications or services that process untrusted font or vector data can be crashed remotely, causing availability loss; the issue affects older versions of boring-registry packages and has been exploitable for years with public code available.
How an attack unfolds
An attacker crafts input that forces cairo's truetype subsetting routine to request a zero-byte allocation; when the allocation unexpectedly returns NULL or an invalid pointer, subsequent memory accesses read outside allocated bounds and terminate the process.
How to fix it
Upgrade boring-registry (Chainguard) to 0.14.0-r1 or later and boring-registry (Wolfi) to 0.14.0-r1 or later; rebuild any downstream containers that embed vulnerable cairo versions.
How to confirm the fix worked
Verify installed cairo and boring-registry package versions match or exceed the listed fixed releases; re-test with known triggering inputs to confirm the out-of-bounds read no longer occurs.
Typical attack path
- Identify a network-accessible service that uses cairo to render or parse fonts or vector graphics
- Send a specially formed font subset or vector payload that triggers the malloc(0) path in cairo-truetype-subset.c
- Observe process crash or service restart, confirming denial of service
How to detect it
Review application and system logs for unexpected crashes or segmentation faults in processes linked against cairo around the time untrusted font data was processed; correlate with network logs showing delivery of font-containing payloads.
What your security team should do
- Apply the 0.14.0-r1 package updates immediately on all affected Chainguard and Wolfi deployments
- Scan container images and dependency manifests for any remaining pre-0.14.0-r1 cairo usage
- Add package version checks to CI pipelines to prevent reintroduction of the vulnerable cairo component
The record
cairo-truetype-subset.c in cairo 1.15.6 and earlier allows remote attackers to cause a denial of service (out-of-bounds read) because of mishandling of an unexpected malloc(0) call.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:10 | cairo | 0 | 1.16.0-1 |
| Debian:11 | cairo | 0 | 1.16.0-1 |
| Debian:12 | cairo | 0 | 1.16.0-1 |
| Debian:13 | cairo | 0 | 1.16.0-1 |
| Mageia:8 | cairo | 0 | 1.16.0-6.2.mga8 |
| SUSE:Linux Enterprise Desktop 12 SP3 | cairo | 0 | 1.15.2-25.3.2 |
| SUSE:Linux Enterprise Module for Basesystem 15 | cairo | 0 | 1.15.10-4.5.1 |
| SUSE:Linux Enterprise Module for Basesystem 15 SP1 | cairo | 0 | 1.16.0-4.8.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 | cairo | 0 | 1.15.10-4.5.1 |
| SUSE:Linux Enterprise Module for Desktop Applications 15 SP1 | cairo | 0 | 1.16.0-4.8.1 |
| SUSE:Linux Enterprise Server 11 SP4 | cairo | 0 | 1.8.8-2.3.7.1 |
| SUSE:Linux Enterprise Server 12 SP3 | cairo | 0 | 1.15.2-25.3.2 |
| SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | cairo | 0 | 1.8.8-2.3.7.1 |
| SUSE:Linux Enterprise Server for SAP Applications 12 SP3 | cairo | 0 | 1.15.2-25.3.2 |
| SUSE:Linux Enterprise Software Development Kit 11 SP4 | cairo | 0 | 1.8.8-2.3.7.1 |
| SUSE:Linux Enterprise Software Development Kit 12 SP3 | cairo | 0 | 1.15.2-25.3.2 |
| Ubuntu:18.04:LTS | cairo | 0 | No fix |
| Ubuntu:20.04:LTS | cairo | 0 | No fix |
| Ubuntu:22.04:LTS | cairo | 0 | No fix |
| Ubuntu:24.04:LTS | cairo | 0 | No fix |
| Ubuntu:24.10 | cairo | 0 | 1.18.0-3build1 |
| Ubuntu:Pro:16.04:LTS | cairo | 0 | 1.14.6-1ubuntu0.1~esm1 |
| Ubuntu:Pro:18.04:LTS | cairo | 0 | No fix |
| Ubuntu:Pro:20.04:LTS | cairo | 0 | No fix |
| openSUSE:Leap 15.1 | cairo | 0 | 1.16.0-lp151.5.3.1 |
Related vulnerabilities
- CVE-2017-7475 Cairo version 1.15.4 is vulnerable to a NULL pointer dereference related to the… Also affects cairo
- CVE-2025-50422 Cairo through 1.18.4, as used in Poppler through 25.08.0, has an "unscaled->face == NULL"… Also affects cairo
- CVE-2016-9082 Integer overflow in the write_png function in cairo 1.14.6 allows remote attackers to… Also affects cairo
- CVE-2026-118237 An out-of-bounds read vulnerability was identified in GitHub Enterprise Server in the Git… CWE-125
- CVE-2026-121208 Out of bounds read in Media in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121197 Out of bounds read in ANGLE in Google Chrome on on Mac prior to 157.0.8103.38 allowed a… CWE-125
- CVE-2026-121184 Out of bounds read in Media in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125
- CVE-2026-121160 Out of bounds read in Skia in Google Chrome prior to 157.0.8103.38 allowed a remote… CWE-125