Vulnerability DatabaseRUSTSEC-2026-0305

RUSTSEC-2026-0305: 
Rust vulnerability analysis and mitigation

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.


Source: NVD

Related Rust vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

RUSTSEC-2026-0307HIGH7.1
  • Rust logoRust
  • uncbv
NoYesSep 23, 2026
GHSA-2jx3-ff3v-j7jjMEDIUM4.8
  • Rust logoRust
  • yara-x
NoYesSep 24, 2026
RUSTSEC-2026-0310NONEN/A
  • Rust logoRust
  • domain
NoYesSep 25, 2026
RUSTSEC-2026-0308NONEN/A
  • Rust logoRust
  • salsa
NoYesSep 24, 2026
RUSTSEC-2026-0305NONEN/A
  • Rust logoRust
  • librsvg
NoYesSep 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

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