CVE-2015-7558: Librsvg Denial of Service Vulnerability

HIGH
Advisory Identifier: GHSA-j984-q4qc-6qxf
CVSS 7.5
CWE-20
Published
Advisory Summary

CVE-2015-7558 is a HIGH (CVSS 7.5) denial of service vulnerability (CWE-20: Improper Input Validation) affecting Librsvg libraries in the crates.io ecosystem. The issue involves librsvg dos via cyclic references. Remediation is available by upgrading affected packages to version 2.40.12.

CVE-2015-7558 at a Glance

CVE Identifier CVE-2015-7558
GHSA Identifier GHSA-j984-q4qc-6qxf
Severity HIGH
CVSS v3.1 Base Score 7.5
CWE Classification CWE-20: Improper Input Validation
Affected Product Librsvg
Package Ecosystem crates.io
Published Date
Last Updated

Security Impact

CVSS: 7.5

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality None (C:N)
Integrity None (I:N)
Availability High (A:H)

How to Fix CVE-2015-7558

To remediate this vulnerability, upgrade all affected Librsvg dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

librsvg fixed: 2.40.12
Upgrade librsvg to 2.40.12
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for librsvg

How to Check if You Are Affected

To determine whether your application is affected by CVE-2015-7558, inspect your project dependencies for Librsvg:

inspect dependencies for librsvg

Analyze the terminal output to locate any version of Librsvg in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.40.12), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-20: Improper Input Validation, where the product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly. In Librsvg, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

librsvg before 2.40.12 allows context-dependent attackers to cause a denial of service (infinite loop, stack consumption, and application crash) via cyclic references in an SVG document.

CVE-2015-7558 Affected Librsvg Versions

1 component(s)
Fixed Versions:
2.40.12
Product / Package Ecosystem Affected Versions Fixed Version
librsvg
crates.io
< 2.40.12
2.40.12

References

Frequently Asked Questions

What is CVE-2015-7558?
CVE-2015-7558 is a security vulnerability in Librsvg involving librsvg DoS via Cyclic References under CWE-20: Improper Input Validation.
Which Librsvg versions are affected?
Affected versions include releases prior to 2.40.12 across affected packages: librsvg.
What version fixes CVE-2015-7558?
Upgrading to 2.40.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is librsvg affected?
Yes, librsvg is affected in releases prior to 2.40.12. Upgrade your dependency to 2.40.12 or later.
What is the CVSS score of CVE-2015-7558?
CVE-2015-7558 has a CVSS v3.1 base score of 7.5 (HIGH) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
What CWE is associated with CVE-2015-7558?
CVE-2015-7558 is classified under CWE-20: Improper Input Validation (The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.).
How can I check crates.io dependencies for CVE-2015-7558?
Run the dependency tree command: 'inspect dependencies for librsvg'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-j984-q4qc-6qxf",
  "modified" : "2023-08-04T23:10:05Z",
  "published" : "2022-05-17T03:50:02Z",
  "aliases" : [ "CVE-2015-7558" ],
  "summary" : "librsvg DoS via Cyclic References",
  "details" : "librsvg before 2.40.12 allows context-dependent attackers to cause a denial of service (infinite loop, stack consumption, and application crash) via cyclic references in an SVG document.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "librsvg"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.40.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2015-7558"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=1268243"
  }, {
    "type" : "WEB",
    "url" : "https://git.gnome.org/browse/librsvg/commit/?id=a51919f7e1ca9c535390a746fbf6e28c8402dc61"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/GNOME/librsvg"
  }, {
    "type" : "WEB",
    "url" : "http://www.debian.org/security/2016/dsa-3584"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2015/12/21/5"
  }, {
    "type" : "WEB",
    "url" : "http://www.openwall.com/lists/oss-security/2016/04/30/3"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-20" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2023-08-04T23:10:05Z",
    "nvd_published_at" : "2016-05-20T14:59:00Z"
  }
}