CVE-2026-96889: 
Rust vulnerability analysis and mitigation

Overview

CVE-2026-96889 is a use-after-free (UAF) vulnerability in librsvg, the GNOME SVG rendering library, triggered when processing SVG documents containing nested XML inclusions (XIncludes) with duplicate entity declarations. The library incorrectly frees an XML entity still in use by the parser, potentially enabling denial of service or arbitrary code execution. Affected products include librsvg2 and glycin-loaders (Red Hat), as well as azl3_librsvg2 2.58.1-8 (Microsoft Azure Linux). The vulnerability was disclosed on September 23, 2026, and has a CVSS v3.1 base score of 7.8 (High) (Red Hat CVE, Red Hat Bugzilla).

Technical details

The root cause (CWE-416: Use After Free) lies in how librsvg uses libxml2 to parse XML. When a nested XInclude is processed, a recursive parse can declare an XML entity with the same name as one already registered in the shared XmlState entity map. The entity_insert() function replaces the first entry and calls xmlFreeNode() via its Drop implementation, but the outer xmlCtxtParseEntity() continues referencing the now-freed 144-byte xmlEntity struct. The fix, committed upstream as commit 8a1b0cd319e9af2d1e9af2d1e9cf878081dd77f227a0504, prevents librsvg from freeing xmlEntity pointers still held by libxml2. Exploitation requires user interaction — a victim must open a maliciously crafted SVG file — and no network-level access is needed (Red Hat Bugzilla, Red Hat CVE).

Impact

Successful exploitation can result in a crash (denial of service) of any application using librsvg to render SVG content, or potentially arbitrary code execution with the privileges of the affected application. All three security dimensions are impacted: confidentiality (memory read from freed regions), integrity (memory corruption enabling write-what-where primitives), and availability (process crash). Applications such as image viewers, document renderers, and web browsers that rely on librsvg for SVG processing are at risk, and exploitation could serve as an initial foothold for further lateral movement if the affected process runs with elevated privileges (Red Hat CVE).

Exploitability

A public proof-of-concept (PoC) exploit is available on GitHub at VectorFreed, which generates malicious SVG files to trigger the UAF condition. The researcher who reported the vulnerability (Rafael B. Dias) has stated that command execution has been achieved in multiple downstream application paths, though a universal end-to-end RCE PoC is not yet public. There is no confirmed evidence of in-the-wild exploitation at this time, and the vulnerability is not listed in the CISA KEV catalog. The EPSS score is approximately 0.00129 (low probability of exploitation in the near term), and NVD SSVC classifies exploitation status as 'PoC' (Red Hat Bugzilla, Feedly).

Exploitation steps

  1. Craft the inner SVG payload: Use the VectorFreed PoC generator (build_svg()) to create a minimal inner SVG document with a DOCTYPE declaring an XML entity (e.g., <!DOCTYPE svg [<!ENTITY active "R">]><svg.../>).
  2. Encode the inner SVG: Base64-encode the inner SVG and wrap it as a data:image/svg+xml;base64, URL to create a self-contained reference (inner_url).
  3. Create the outer SVG with XInclude: Construct an outer SVG that declares the same entity name (active) but maps it to an XInclude element pointing to the inner document: <!ENTITY active "<xi:include ... href="{inner_url}" parse="xml"/>">; reference it with &active;.
  4. Select output format: Optionally wrap the payload as a raw SVG file, a data URL, or an HTML-injectable XML fragment using the --carrier flag; apply optional encoding (base64, JSON, URL) via --encode.
  5. Deliver the payload: Write the generated uaf.svg to disk and deliver it to the victim via email attachment, web download, or file share.
  6. Trigger the vulnerability: When the victim opens the SVG in an application using librsvg (e.g., GNOME image viewer, Inkscape, a browser using librsvg), the nested XInclude processing triggers the UAF — the outer parser accesses the freed xmlEntity struct.
  7. Achieve impact: At minimum, the application crashes (DoS). With controlled heap layout, the UAF memory corruption primitive can potentially be leveraged for arbitrary code execution with the application's privileges (Red Hat Bugzilla, VectorFreed PoC).

Indicators of compromise

  • File System: Unexpected .svg files in download directories, temp folders, or email attachment staging areas with DOCTYPE declarations containing both <!ENTITY> definitions and <xi:include> elements; files with base64-encoded data:image/svg+xml;base64, URLs embedded in SVG entity declarations.
  • Process: Abnormal crashes or segmentation faults in librsvg-consuming applications (e.g., eog, inkscape, gdk-pixbuf-thumbnailer, glycin); unexpected child processes spawned from image viewer or document renderer processes.
  • Logs: Application crash logs or core dumps referencing librsvg or libxml2 memory access violations; system journal entries (journalctl) showing SIGSEGV or SIGABRT from SVG-processing applications; Nessus detection ID 349587 or 350703 flagging vulnerable librsvg2 versions.
  • Network: Unusual outbound connections from image viewer or document processing applications following SVG file opening (potential post-exploitation callback) (Red Hat Bugzilla, VectorFreed PoC).

Mitigation and workarounds

The upstream fix is available in librsvg version 2.63.1, which prevents librsvg from freeing xmlEntity pointers still held by libxml2. Red Hat has noted that no practical configuration-based mitigation is available for affected RHEL packages. Recommended actions include: (1) upgrade librsvg2 and glycin-loaders to patched versions as soon as vendor updates are released; (2) restrict SVG file processing to trusted sources only; (3) run SVG-processing applications in sandboxed environments with minimal privileges (e.g., using Flatpak or containers); (4) avoid opening SVG files from untrusted sources until patches are applied (Red Hat CVE, Red Hat Bugzilla).

Community reactions

Red Hat Product Security classified this as an "Important" flaw and acknowledged the reporter, Rafael B. Dias, in their advisory. A community member on the Red Hat Bugzilla tracker requested re-evaluation of remediation priority following the public PoC release, noting that the researcher claimed command execution in multiple downstream application paths. The vulnerability was picked up by Linux security news outlets including LinuxSecurity.com (Fedora advisory coverage) and pro-linux.de, as well as social media aggregators such as RedPacketSecurity on Mastodon. A technical blog post on dev.to discussed SVG processing safety in the context of this vulnerability (Red Hat CVE, Red Hat Bugzilla).

Additional resources

Linux Distribution fix status

Fix availability across major Linux distributions and their releases.

Debian

Fixed

bookworm

librsvg

Affected

sid

librsvg: 2.63.2+dfsg-1

Fixed

trixie

librsvg: 2.60.0+dfsg-1+deb13u1

Fixed

RHEL / CentOS

Fixed

RHEL 8

:appstream:librsvg2-0:2.42.7-6.el8_10.src

Fixed

RHEL 9

:appstream:librsvg2-0:2.50.7-1.el9_2.2.src

Fixed

RHEL 10

glycin-loaders-0:1.0.1-1.el10_0.1.src

Fixed

Source: This report was generated using AI

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-134056HIGH8.3
  • Rust logoRust
  • aws-lc-fips-sys
NoYesNov 23, 2026
GHSA-8wcq-xq25-7fhmMEDIUM6.5
  • Rust logoRust
  • cookie
NoYesNov 23, 2026
GHSA-2rx9-36wh-cm54MEDIUM5.3
  • Rust logoRust
  • gix
NoNoNov 23, 2026
GHSA-j5gm-p573-w4wqLOW2.2
  • Rust logoRust
  • gix
NoNoNov 23, 2026
GHSA-q7pr-3hx6-cgc4HIGHN/A
  • Rust logoRust
  • smallvec
NoNoNov 23, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Additional Wiz resources

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management