CVE-2020-12825
libcroco: Stack overflow in function cr_parser_parse_any_core in cr-parser.c
Severity
ModerateRed Hat Product Security
CVSS 3.1
Review impact separately from score.
Published · May 12, 2020
Updated · June 27, 2026
Description
A stack overflow flaw was found in libcroco. A service using libcroco's CSS parser could be crashed by a local, authenticated attacker, or an attacker utilizing social engineering, using a crafted input. The highest threat from this vulnerability is to system availability.
Statement
While Red Hat Enterprise Linux 6, 7 and 8 ship versions of libcroco that are vulnerable to this flaw, the packages which use this library as a dependency would require a user to open a malicious file locally for exploitation. Opening such a file may result in a temporary crash of the application. See below for more detailed information:
- Red Hat Enterprise Linux 8 -
libcrocois a runtime dependency ofgnome-shell,gettextandinkscape. - Red Hat Enterprise Linux 7 -
libcrocois a runtime dependency ofgnome-shell,gettext,librsvg2andinkscape. - Red Hat Enterprise Linux 6 -
libcrocois required byfirefoxto bundlegtk3butfirefoxdoes not uselibcrocoas its CSS parsing engine or provide gtk3 to other packages, and thus not affected.libcrocois a runtime dependency ofinkscape,librsvg2andgettext.
This flaw has only been demonstrated to cause a crash, but if there is any concern of further exploitation beyond that, Red Hat Enterprise Linux 6, 7, and 8 packages are built with a stack protector and stack ASLR which would significantly reduce the likelihood of further exploitation.
CVSS score applicability
The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.
Mitigation
To mitigate this flaw as it applies to gnome-shell, do not install untrusted gnome-shell extensions or themes. Red Hat Enterprise Linux does not ship with gnome-shell themes that will trigger this vulnerability. To mitigate this flaw as it applies to inkscape, do not open untrusted CSS in inkscape.
CVSS / CWE
CVSS 3.1 · 7.1CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
CVSS 3.1 · 6.1CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:H
CWE-120 · Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')