Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

github логотип

GHSA-cpvr-w4j5-2mpg

Опубликовано: 22 окт. 2026
Источник: github
Github: Прошло ревью
CVSS3: 7.8

Описание

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

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.

Пакеты

Наименование

librsvg

rust
Затронутые версииВерсия исправления

< 2.57.5

2.57.5

Наименование

librsvg

rust
Затронутые версииВерсия исправления

>= 2.60.0-beta.0, < 2.60.3

2.60.3

Наименование

librsvg

rust
Затронутые версииВерсия исправления

>= 2.61.0, < 2.61.5

2.61.5

Наименование

librsvg

rust
Затронутые версииВерсия исправления

>= 2.62.0-beta.0, < 2.62.4

2.62.4

Наименование

librsvg

rust
Затронутые версииВерсия исправления

>= 2.63.0-beta.0, < 2.63.2

2.63.2

EPSS

Процентиль: 44%
0.00529
Низкий

7.8 High

CVSS3

Дефекты

CWE-416

Связанные уязвимости

CVSS3: 7.8
ubuntu
около 1 месяца назад

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.

CVSS3: 7.8
redhat
около 1 месяца назад

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.

CVSS3: 7.8
nvd
около 1 месяца назад

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.

CVSS3: 7.8
msrc
29 дней назад

Librsvg: use-after-free when xml includes have duplicated entities

CVSS3: 7.8
debian
около 1 месяца назад

A flaw was found in librsvg. When processing an SVG document containin ...

EPSS

Процентиль: 44%
0.00529
Низкий

7.8 High

CVSS3

Дефекты

CWE-416