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

- 種別: advisory
- 重大度: high
- 関連技術: rust
- CVE: CVE-2026-96889
- 公開日時: 2026-10-22T15:52:48.000Z
- 情報源: GitHub Advisory Database (https://github.com/advisories/GHSA-cpvr-w4j5-2mpg)
- パーマリンク: https://vulnpulse.app/items/ghsa-ghsa-cpvr-w4j5-2mpg

影響: rust:librsvg < 2.57.5 → 2.57.5, rust:librsvg >= 2.60.0-beta.0, < 2.60.3 → 2.60.3, rust:librsvg >= 2.61.0, < 2.61.5 → 2.61.5, rust:librsvg >= 2.62.0-beta.0, < 2.62.4 → 2.62.4, rust:librsvg >= 2.63.0-beta.0, < 2.63.2 → 2.63.2
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 xmlFr…