Buffer Overflow Affecting cairo package, versions [,1.17.4)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
1.02% (64th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CONAN-CAIRO-10075395
  • published8 May 2025
  • disclosed18 Mar 2021
  • creditUnknown

Introduced: 18 Mar 2021

CVE-2020-35492  (opens in a new tab)
CWE-121  (opens in a new tab)

How to fix?

Upgrade cairo to version 1.17.4 or higher.

Overview

Affected versions of this package are vulnerable to Buffer Overflow. 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.

CVSS Base Scores

version 3.1