Skip to content
High 9.5

Use-After-Free in librsvg

CVE-2026-96889 First seen on SecPulse

Summary

Vulnerability in librsvg (CVE-2026-96889). Successful exploitation can lead to full system takeover.

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

A vulnerability tracked as CVE-2026-96889 has been found in librsvg.
Successful exploitation can lead to full system takeover. CVSS score: 7.8/10.
What to do: apply the vendor's official patched release.
If unsure, ask your IT team or search "librsvg CVE-2026-96889" on the vendor's site.

CVE-2026-96889 (librsvg) — CWE-416 / CVSS v3 7.8
Attack vector: local / unauthenticated
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

What is the problem

Use-after-free (CWE-416) exists in librsvg.

Affected scope

Check the vendor advisory for the affected versions of librsvg.

Severity

Severity: High (CVSS 7.8/10). Successful exploitation can lead to full system takeover.

How to fix

Update to the patched release per vendor advisory.

Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'librsvg' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposureidentify
    grep -r 'librsvg' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で librsvg を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Post-deployment verificationverify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

PackageAffected → Fixed
crates.iolibrsvg
≥ 0.0.0-0, < 2.57.5→ 2.57.5
≥ 2.57.90, < 2.60.3→ 2.60.3
≥ 2.61.0, < 2.61.5→ 2.61.5
≥ 2.61.90, < 2.62.4→ 2.62.4
≥ 2.62.90, < 2.63.2→ 2.63.2
Red HatRed Hat Enterprise Linux 10 —
Red HatRed Hat Enterprise Linux 8 —
Red HatRed Hat Enterprise Linux 9 —
Red HatRed Hat Enterprise Linux 6 —
Red HatRed Hat Enterprise Linux 7 —
rustlibrsvg
< 2.63.2→ 2.63.2
Red HatRed Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support —
Red HatRed Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On —
Red HatRed Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support —
Red HatRed Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On —
Red HatRed Hat Enterprise Linux 10.0 Extended Update Support —
Red HatRed Hat Enterprise Linux 7 Extended Lifecycle Support —
Red HatRed Hat Enterprise Linux 8.8 Telecommunications Update Service —
Red HatRed Hat Enterprise Linux 8.8 Update Services for SAP Solutions —
Red HatRed Hat Enterprise Linux 9.2 Update Services for SAP Solutions —
Red HatRed Hat Enterprise Linux 9.4 Update Services for SAP Solutions —
Red HatRed Hat Enterprise Linux 9.6 Extended Update Support —
Red HatRed Hat OpenShift AI 3.0 —
Red HatRed Hat OpenShift AI 3.4 —
Red HatRed Hat OpenShift AI 3.5 —

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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: NIST National Vulnerability Database NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details