Heap-based Buffer Over-read and Undefined Behavior in libcroco

libcroco Updated 02 Oct 2025

Summary

23/04/2017
N/A
Yes i
Unrated
Not published

DLA-909-1: libcroco - security update. Affects libcroco versions < 0.6.6-2+deb7u1. Fixed in 0.6.6-2+deb7u1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

libcroco is a library for parsing and manipulating CSS (Cascading Style Sheets) files. It provides functionality for reading, writing, and modifying CSS files. The library is widely used in various applications that deal with CSS files, such as web browsers and text editors. However, libcroco is vulnerable to two security issues that could be exploited remotely.

Vulnerability Detail

The first vulnerability, identified as CVE-2017-7960, is a heap-based buffer over-read issue. An attacker can trigger this vulnerability by providing a specially crafted CSS file, leading to a denial of service. The second vulnerability, CVE-2017-7961, involves an undefined behavior issue related to a long type. By supplying a malicious CSS file, an attacker may cause a denial of service or potentially achieve other unspecified impacts.

How To Fix

Minimum fixed version

0.6.6-2+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libcroco

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There are no known workarounds for these vulnerabilities. It is essential to apply the provided fix by upgrading the libcroco package.

Conclusion

libcroco is susceptible to a heap-based buffer over-read vulnerability (CVE-2017-7960) and an undefined behavior issue (CVE-2017-7961). These vulnerabilities can be mitigated by updating the libcroco package to version 0.6.6-2+deb7u1 or later. It is crucial to apply the fix promptly to ensure the security of systems using libcroco. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for libcroco →

Share this vulnerability

FAQ

libcroco is a library used for parsing and manipulating CSS files.

CVE-2017-7960 is a heap-based buffer over-read vulnerability in libcroco that can be triggered remotely via a crafted CSS file.

CVE-2017-7961 is an undefined behavior issue in libcroco related to a long type, which can be exploited through a malicious CSS file.

The vulnerabilities could lead to a denial of service (application crash) or other unspecified impacts.

To fix these vulnerabilities, you need to upgrade the libcroco package to version 0.6.6-2+deb7u1 or later.

Related vulnerabilities

Recent vulnerabilities recorded for libcroco.

How To Fix

Minimum fixed version

0.6.6-2+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libcroco

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback