All vulnerabilities
CVE-2026-96889GHSA-2464-fhr4-w9xwGHSA-cpvr-w4j5-2mpg

Librsvg: Use-after-free when XML includes have duplicated entities

Red Hat librsvgrustOperating systems
CVSS
7.8High
ExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 25 Sep 2026. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)0.20%Chance of exploitation activity in the next 30 days, higher than 9% of CVEs. Scored 23 Oct 2026FIRST EPSS
Fixed in2.57.5Also 2.60.3, 2.61.5 and 4 moreGitHub
Published23 Sep 2026Updated 22 Oct 2026CVE List

What fixes it

Show all 7 fixed versions
  • 16.4.1next, npmGitHubnpm install next@16.4.1

A fixed version on one release line is not the upgrade target for every line. Check your exact version and any vendor backports.

Description

Librsvg uses libxml2, a C library, to parse XML. When librsvg parses an SVG document which has a nested Xinclude, an XML entity declaration with a duplicate name as an existing one can cause a use-after-free error.

While libxml2 is expanding an internal entity, a recursive XInclude can parse another document that declares an entity with the same name. Both parses use the same XmlState entity map on the librsvg side. entity_insert() replaces the first entry, whose Drop implementation calls xmlFreeNode(). The outer xmlCtxtParseEntity() then keeps using the freed 144-byte xmlEntity.

The included parse should not free an entity that the outer parser is still using.

The fix is in commit 8a1b0cd319e9af2d1e9cf878081dd77f227a0504, where librsvg will no longer free xmlEntity pointers that libxml2 is still using.

Text from GitHub Advisory Database

Affected versions 13

  • librsvg, rust< 2.57.5GitHub
  • librsvg, rust>= 2.60.0-beta.0, < 2.60.3GitHub
  • librsvg, rust>= 2.61.0, < 2.61.5GitHub
  • librsvg, rust>= 2.62.0-beta.0, < 2.62.4GitHub
  • librsvg, rust>= 2.63.0-beta.0, < 2.63.2GitHub
  • Red Hat Enterprise Linux 10unaffected: 0:1.0.1-1.el10_2.2 and laterCVE List
  • Red Hat Enterprise Linux 10unaffected: 0:2.57.1-9.el10_2.10 and laterCVE List
  • Red Hat Enterprise Linux 8unaffected: 0:2.42.7-6.el8_10 and laterCVE List
  • Red Hat Enterprise Linux 9unaffected: 0:2.50.7-3.el9_8.1 and laterCVE List
  • next, npm>= 10.0.0 <= 15.5.27GitHub
  • next, npm> 16.0.0 <= 16.4.0GitHub
  • next, npmfrom 10.0.0, fixed in 15.5.28OSV
  • next, npmfrom 16.0.0, fixed in 16.4.1OSV

References 23