HighCVE-2026-96889

    Librsvg: use-after-free when xml includes have duplicated entities (CVE-2026-96889)

    Published Last modified Sources: BSI, OSV, CVE.org, Red Hat, Msrc Update Guide, Hersteller, SUSE, Debian, Ubuntu, pwn.watch, SingCERT

    What is affected, what to do

    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.

    An exploit is publicly available. Update Red Hat Enterprise Linux 10 to version 0:1.0.1-1.el10_2.2, Red Hat Enterprise Linux 10 to version 0:2.57.1-9.el10_2.10, Red Hat Enterprise Linux 8 to version 0:2.42.7-6.el8_10.

    Affected
    • Red Hat Enterprise Linux 10 lt *..0:1.0.1-1.el10_2.2
    • Red Hat Enterprise Linux 10 lt *..0:2.57.1-9.el10_2.10
    • Red Hat Enterprise Linux 8 lt *..0:2.42.7-6.el8_10
    • Red Hat Enterprise Linux 9 lt *..0:2.50.7-3.el9_8.1
    Fixed in
    • Red Hat Enterprise Linux 10 0:1.0.1-1.el10_2.2
    • Red Hat Enterprise Linux 10 0:2.57.1-9.el10_2.10
    • Red Hat Enterprise Linux 8 0:2.42.7-6.el8_10
    • Red Hat Enterprise Linux 9 0:2.50.7-3.el9_8.1

    Not sure whether and how you are affected? Ask a question about this vulnerability

    Metrics

    7.8

    Priority

    XIEM Effective CVSS: highest available CVSS rating from NVD and vendor data.

    Source: NVD, CVSS v3

    7.8

    CVSS v3

    Severity High on the scale from 0 to 10.

    Source: BSI, OSV, CVE.org, Red Hat, Msrc Update Guide, Hersteller, SUSE, Debian, Ubuntu, pwn.watch, SingCERT

    0.5 %

    EPSS score

    Low — model estimates < 1% exploitation likelihood.

    Source: FIRST EPSS, percentile 44.5

    Show all metrics
    Severity
    High
    Priority (0–325)

    The priority score is a consolidated metric that condenses several individual signals into a single, action-guiding ranking: technical severity (CVSS), exploitation likelihood (EPSS), known-exploited status (KEV) and the context of the affected asset. The aim is to answer the only truly important question in vulnerability management: what first?

    Read in glossary
    83.94 Methodology
    Exploit maturity

    An exploit is code or a technique that specifically uses a concrete vulnerability to force unintended behaviour — such as executing code or escalating privileges. It is the tool that turns a theoretical flaw into a practical attack.

    Read in glossary
    PoC (publicly reported)
    XIEM Effective CVSS

    XIEM® is the tiered managed-security operating model from NEOSEC and a registered trademark of NEOSEC GmbH. It extends classic SIEM — the central collection, normalisation and correlation of security-relevant events — with endpoint forensics, network visibility and deception technology, and consolidates them into three building tiers: Sentry, Orchestrate and Command.

    Read in glossary
    7.8 Methodology
    CVSS v3

    CVSS is the globally established, open standard for assessing the technical severity of a vulnerability on a scale from 0 to 10. It describes how easily a flaw can be exploited and what damage it can cause — but not how likely its actual exploitation is. CVSS and the complementary EPSS deliberately answer different questions.

    Read in glossary
    7.8
    EPSS score

    The EPSS score is the absolute model output for an individual vulnerability: the estimated probability of real-world exploitation within the next 30 days, expressed as a value between 0 and 1 (i.e. 0 % to 100 %). A score of 0.42 means „the model estimates a 42 % chance of real-world exploitation within 30 days“.

    Read in glossary
    0.5 %
    Low — model estimates < 1% exploitation likelihood.
    EPSS percentile

    The EPSS percentile is the relative position of a vulnerability within all EPSS-scored CVEs, expressed as a value between 0 and 1. A percentile of 0.90 means „this CVE has a higher EPSS score than 90 % of all other scored CVEs“. Unlike the EPSS score, it is not a probability — but a positioning within a ranking.

    Read in glossary
    44.5
    High — this CVE ranks above the median of all CVEs scored today (rank ≥ 36%).
    KEV status

    The KEV catalogue is a list maintained by the US authority CISA of vulnerabilities for which active exploitation in the wild has been confirmed. It answers not the question „how severe?“ but „is it already being attacked?“ — thereby sharply prioritising patching.

    Read in glossary
    —
    Published
    CWE

    CWE is a catalogue of typical weakness types in software and hardware — such as flawed input validation, unsafe memory handling or poor authentication. Where a CVE names a concrete vulnerability in a concrete product, a CWE describes the underlying class of defect.

    Read in glossary
    CWE-416

    Detection rules

    No NEOSEC detection rule is available for this vulnerability yet.

    Classification under NIS2 and CRA

    Rule-based classification from exploitation status and severity. It does not replace a case-by-case assessment.

    NIS2

    NIS2 is EU Directive (EU) 2022/2555 to raise the level of cybersecurity across the Union. It substantially broadens obligations compared with the first NIS directive: more sectors, mandatory risk management, staged reporting duties and personal accountability of senior management.

    Read in glossary
    High technical severity: assess and remediate the vulnerability in vulnerability handling under Art. 21(2)(e) NIS2 and document the decision.
    CRA

    The CRA is EU Regulation (EU) 2024/2847 setting horizontal cybersecurity requirements for „products with digital elements“ — from industrial controllers and software to connected consumer devices. For the first time manufacturers must ensure security across the entire product lifecycle, handle vulnerabilities and provide security updates.

    Read in glossary
    From 11.12.2027, Annex I Part II CRA requires manufacturers of affected products with digital elements to handle vulnerabilities without delay and provide security updates.
    ISO/IEC 27001

    ISO/IEC 27001 is the internationally leading standard for an information security management system (ISMS). It describes a risk-based, process-oriented framework to systematically plan, implement, review and improve information security.

    Read in glossary
    Control A.8.8, management of technical vulnerabilities: assess relevance to your systems, plan remediation and keep evidence.

    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.

    Source: BSI WID Portal, BSI CSAF, OSV (Open Source Vulnerabilities), cvelistv5, redhat_csaf, Microsoft Security Update Guide, GitHub Security Advisories, suse_csaf, Debian Security Advisories, Ubuntu Security Notices, NVD (NIST), pwn.watch, CSA/SingCERT

    Affected products

    The following versions are affected. Older releases of the same product line are also vulnerable unless stated otherwise.

    Affected products
    Affected versionsFixed in
    Red HatRed Hat Enterprise Linux 10
    • < 0:2.57.1-9.el10_2.10
    • < 0:1.0.1-1.el10_2.2
    • 0:2.57.1-9.el10_2.10
    • 0:1.0.1-1.el10_2.2
    Red HatRed Hat Enterprise Linux 6
    • —
    • —
    Red HatRed Hat Enterprise Linux 7
    • —
    • —
    Red HatRed Hat Enterprise Linux 8
    • < 0:2.42.7-6.el8_10
    • 0:2.42.7-6.el8_10
    Red HatRed Hat Enterprise Linux 9
    • < 0:2.50.7-3.el9_8.1
    • 0:2.50.7-3.el9_8.1
    VercelNext.js
    • < 15.5.28
    • < 16.4.1
    • 15.5.28
    • 16.4.1
    crates.iolibrsvg
    • 2.63.0-beta.0
    • 2.61.0
    • 2.62.0-beta.0
    • 2.62.90
    • 2.60.0-beta.0
    • 0.0.0-0
    • 2.57.90
    • —
    • 2.61.90
    • 2.63.2
    • 2.61.5
    • 2.62.4
    • 2.63.2
    • 2.60.3
    • 2.57.5
    • 2.60.3
    • 2.57.5
    • 2.62.4
    rustlibrsvg
    • >= 2.63.0-beta.0, < 2.63.2
    • >= 2.62.0-beta.0, < 2.62.4
    • >= 2.61.0, < 2.61.5
    • >= 2.60.0-beta.0, < 2.60.3
    • < 2.57.5
    • 2.63.2
    • 2.62.4
    • 2.61.5
    • 2.60.3
    • 2.57.5

    Vendors and products

    Affected operating systems

    Affected operating systems
    Linuxdebianlibrsvgtrixie

    Weakness classes (CWE)

    • CWE-416Use After Free

      Variant

      The product reuses or references memory after it has been freed. At some point afterward, the memory may be allocated again and saved in another pointer, while the original pointer references a location somewhere within the new allocation. Any operations using the original pointer are no longer valid because the memory "belongs" to the code that operates on the new pointer.

      Entry at MITRE CWE-416

    Public exploit references

    Publicly reported proof-of-concepts, exploit modules and detection templates for this vulnerability. NEOSEC links to the original sources only and does not provide any exploit code.

    Public exploit references
    PoC-in-GitHub (nomi-sec)cybersecurity (opens in a new tab)github.comPoC (publicly reported)reported, not verified
    PoC-in-GitHub (nomi-sec)CVE-2026-96889-nextjs-rce (opens in a new tab)github.comPoC (publicly reported)reported, not verified
    PoC-in-GitHub (nomi-sec)VectorFreed (opens in a new tab)github.comPoC (publicly reported)reported, not verified

    References & sources

    • access.redhat.comsecurity/cve/CVE-2026-96889Vulnerability database, x_refsource_REDHAT, web
    • bugzilla.redhat.comRHBZ#2539279Issue tracking, x_refsource_REDHAT, web
    • crates.iocrates/librsvgpackage
    • gitlab.gnome.orgGNOME/librsvg/-/work_items/1241web
    • rustsec.orgadvisories/RUSTSEC-2026-0305.htmlweb, advisory
    • access.redhat.comRHSA-2026:86331Vendor advisory, x_refsource_REDHAT, web
    • access.redhat.comRHSA-2026:86841Vendor advisory, x_refsource_REDHAT, web
    • access.redhat.comRHSA-2026:86842Vendor advisory, x_refsource_REDHAT, web
    • access.redhat.comRHSA-2026:86921Vendor advisory, x_refsource_REDHAT, web
    • pwn.watchpwn.watch: Next.js out-of-band release fixes two unauthenticated RCEs (SVG image optimization CVE-2026-96889, use cache)pwn-watch
    • GitHub Security AdvisoriesGHSA-673q-mjm6-r5xr: Unauthenticated RCE in `use cache` functions returning typed arrayspwn-watch
    • nextjs.orgNext.js Security Update for Upstream Vulnerabilitiespwn-watch
    • github.comGHSA-2464-fhr4-w9xw: Unauthenticated RCE in Image Optimization API when SVG files are usedpwn-watch
    • GitHub Security AdvisoriesGHSA-2464-fhr4-w9xw (GitHub Advisory Database)pwn-watch
    • GitHub Security Advisoriessharp: Vulnerability in librsvg dependency CVE-2026-96889 (GHSA-wq5f-xc86-pv6w)pwn-watch
    • NVD (NIST)CVE-2026-96889pwn-watch, advisory
    • github.comNext.js v16.4.1 releasepwn-watch
    • netlify.comNext.js & React security release (Oct 2026): what to knowpwn-watch
    • github.comGNOME/librsvg/commit/0bc935e675947e185d42005d3ad93d7cf61bcea9web
    • github.comGNOME/librsvg/commit/1606574427408baca8203ef723281509a229f9e2web

    Changes to this CVE

    Who changed this CVE and when: NVD (analysis, affected products, CVSS), the CVE publisher (CNA) and additional providers such as CISA (ADP).

    1. Record modifiedRed Hat

      Show 2 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Affected versions (publisher)added
      —
      Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/96xxx/CVE-2026-96889.json">CVE-2026-96889</a>
      Referenceadded
      —
      https://access.redhat.com/errata/RHSA-2026:86842

      Source identifier: secalert@redhat.com

    2. Record modifiedRed Hat

      Show 2 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Affected versions (publisher)added
      —
      Affected value modified. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/96xxx/CVE-2026-96889.json">CVE-2026-96889</a>
      Referenceadded
      —
      https://access.redhat.com/errata/RHSA-2026:86841

      Source identifier: secalert@redhat.com

    3. Record modifiedCISA ADP

      CISA assessment (SSVC): exploitation: proof of concept, automatable: no

      Show 2 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Referenceadded
      —
      https://gitlab.gnome.org/GNOME/librsvg/-/work_items/1241
      SSVC assessmentadded
      —
      {"id":"CVE-2026-96889","role":"CISA Coordinator","options":[{"exploitation":"poc"},{"automatable":"no"},{"technicalImpact":"total"}],"version":"2.0.3","timestamp":"2026-09-25T17:53:42.623078Z"}

      Source identifier: 134c704f-9b21-4f2e-91b3-4a467353bcc0

    4. ReceivedRed Hat

      CVSS V3.1: AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

      Weakness type: CWE-416

      Description added or changed

      Show 9 original changes
      Individual changes of this event as published by NVD
      TypeActionBeforeAfter
      Descriptionadded
      —
      A flaw was found in librsvg. When processing an SVG document containing nested XML inclusions (Xincludes) with duplicate entity declarations, a use-after-free error can occur. This vulnerability arises because the library incorrectly frees an XML entity that is still in use by the parser. An attacker could potentially exploit this to cause a denial of service or execute arbitrary code.
      CVSSadded
      —
      AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
      Weakness type (CWE)added
      —
      CWE-416
      Affected versions (publisher)added
      —
      New affected value received. <a href="https://github.com/CVEProject/cvelistV5/blob/main/cves/2026/96xxx/CVE-2026-96889.json">CVE-2026-96889</a>
      Referenceadded
      —
      https://access.redhat.com/security/cve/CVE-2026-96889
      Referenceadded
      —
      https://bugzilla.redhat.com/show_bug.cgi?id=2539279
      Referenceadded
      —
      https://crates.io/crates/librsvg
      Referenceadded
      —
      https://gitlab.gnome.org/GNOME/librsvg/-/work_items/1241
      Referenceadded
      —
      https://rustsec.org/advisories/RUSTSEC-2026-0305.html

      Source identifier: secalert@redhat.com

    Embed badge

    Show the severity and KEV status of this vulnerability on your site – with a link back here. The image is updated hourly.

    Badge preview for CVE-2026-96889
    <a href="https://intel.neosec.eu/en/cve/CVE-2026-96889"><img src="https://intel.neosec.eu/badge/cve/CVE-2026-96889.svg?lang=en" alt="CVE-2026-96889 – NEOSEC Intel" height="20"></a>