Stack-based buffer overflow in cairo
Key facts
- Attack vector
- Local
- Privileges required
- None
- User interaction
- Required
- Attack complexity
- Low
- Impact type
- Code execution
- Confidentiality · integrity · availability
- High · High · High
- Fix status
- Partial Red Hat: 1 fixed, 3 without a fix
Attack profile from CVSS 3.1 · NVD. Fix status from CNA and Red Hat. Impact type from CWE-121 and the CVSS impact.
Summary
A flaw was found in cairo's image-compositor.c in all versions prior to 1.17.4. This flaw allows an attacker who can provide a crafted input file to cairo's image-compositor (for example, by convincing a user to open a file in an application using cairo, or if an application uses cairo on untrusted input) to cause a stack buffer overflow -> out-of-bounds WRITE. The highest impact from this vulnerability is to confidentiality, integrity, as well as system availability.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| — | cairo | All cairo versions | — | No fix listed | CNA |
- cairo Vendor— Affected All cairo versions Fixed in — No fix listed CNA
CPE configurations NVD · 1
| CPE | Versions | Role | Vendor |
|---|---|---|---|
| cpe:2.3:a:cairographics:cairo:*:*:*:*:*:*:*:* | before 1.17.4 | Vulnerable | cairographics |
- cpe:2.3:a:cairographics:cairo:*:*:*:*:*:*:*:* Versions before 1.17.4 Vulnerable ·cairographics
Remediation
Red Hat 1 advisory
- RHSA-2022:1961 Released 2022-05-10 · Red Hat rating Moderatecairo and pixman security and bug fix update
- Red Hat Enterprise Linux AppStream (v. 8) cairo-1.15.12-6.el8, cairo-devel-1.15.12-6.el8, cairo-gobject-1.15.12-6.el8 +1
Vendor assessments
Red Hat
Red Hat rating: Moderate. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat Enterprise Linux 5 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 6 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux 7 | Affected | No fix planned: Out of support scope |
| Red Hat Enterprise Linux AppStream (v. 8) | Fixed | RHSA-2022:1961 |
Not affected: 5 products
- Red Hat Enterprise Linux 6
- Red Hat Enterprise Linux 7
- Red Hat Enterprise Linux 8
- Red Hat Enterprise Linux 9
- Red Hat Enterprise Linux AppStream (v. 8)
Timeline
- 2026-10-02 Threatist record created from CVE-2020-35492
- 2026-10-03 Alias added: GHSA-65pg-7gjm-q28m
References
More cairographics Cairo vulnerabilities
- TI-2017-07194 cairo-truetype-subset.c in cairo 1.15.6 and earlier allows remote attackers to cause a… CVSS 3.1HIGH 7.5
- TI-2016-02676 The fill_xrgb32_lerp_opaque_spans function in cairo-image-compositor.c in cairo before… CVSS 3.0HIGH 7.5
- TI-2019-04529 An issue was discovered in cairo 1.16.0. CVSS 3.1MEDIUM 6.5
- TI-2019-04528 An issue was discovered in cairo 1.16.0. CVSS 3.1MEDIUM 6.5
- TI-2014-04187 The cairo_image_surface_get_data function in Cairo 1.10.2, as used in GTK+ and Wireshark… CVSS 2.0MEDIUM 5.0
- TI-2018-14080 cairo 1.16.0, in cairo_ft_apply_variations() in cairo-ft-font.c, would free memory using… CVSS 3.0MEDIUM 6.5
Sources
- CVE-2020-35492 · CVE Program
- CVE-2020-35492 · NVD
- FIRST EPSS
- GHSA-65pg-7gjm-q28m · GitHub Advisory Database · CC BY 4.0
- CVE-2020-35492 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences