Description
The cr_tknzr_parse_rgb function in cr-tknzr.c in libcroco 0.6.11 and 0.6.12 has an "outside the range of representable values of type long" undefined behavior issue, which might allow remote attackers to cause a denial of service (application crash) or possibly have unspecified other impact via a crafted CSS file. NOTE: third-party analysis reports "This is not a security issue in my view. The conversion surely is truncating the double into a long value, but there is no impact as the value is one of the RGB components.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 7 | libcroco | 0.6.6-2+deb7u1 | DLA-909-1 |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES 12 SP4 | libcroco | 0.6.11-12.3.1 | SUSE-SU-2019:1468-1 |
| SLES 12 SP3 | libcroco | 0.6.11-12.3.1 | SUSE-SU-2019:1468-1 |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SLES for SAP 12 SP4 | libcroco | 0.6.11-12.3.1 | SUSE-SU-2019:1468-1 |
| SLES for SAP 12 SP3 | libcroco | 0.6.11-12.3.1 | SUSE-SU-2019:1468-1 |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.11 | libcroco | 0.6.13-r1 | — |
| Alpine v3.10 | libcroco | 0.6.13-r1 | — |
| Alpine v3.9 | libcroco | 0.6.12-r2 | — |
| Alpine v3.8 | libcroco | 0.6.12-r2 | — |
| Alpine v3.7 | libcroco | 0.6.12-r1 | — |
Advisories 2
- DLA-909-1 libcroco - security update Debian Security (DSA / DLA) · Mar 9, 2026
- SUSE-SU-2019:1468-1 Security update for libcroco SUSE / openSUSE Security Updates · Feb 4, 2026
References
- https://git.gnome.org/browse/libcroco/commit/?id=9ad72875e9f08e4c519ef63d44cdbd94aa9504f7
- GLSA-201707-13 vendor-advisory
- http://openwall.com/lists/oss-security/2017/04/24/2
- https://bugzilla.suse.com/show_bug.cgi?id=1034482
- https://blogs.gentoo.org/ago/2017/04/17/libcroco-heap-overflow-and-undefined-behavior/
- openSUSE-SU-2019:1575 vendor-advisory