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

exploitDog

github логотип

GHSA-vfmq-68hx-4jfw

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

Описание

lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files

Impact

Using either of the two parsers in the default configuration (with resolve_entities=True) allows untrusted XML input to read local files.

Patches

lxml 6.1.0 changes the default to resolve_entities='internal', thus disallowing local file access by default.

Workarounds

Setting the resolve_entities option explicitly to resolve_entities='internal' or resolve_entities=False disables the local file access.

Resources

Original report: https://bugs.launchpad.net/lxml/+bug/2146291

The default option was changed to resolve_entities='internal' for the normal XML and HTML parsers in lxml 5.0. The default was not changed for iterparse() and ETCompatXMLParser() at the time. lxml 6.1 makes the safe option the default for all parsers.

Пакеты

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

lxml

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

< 6.1.0

6.1.0

EPSS

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

7.5 High

CVSS3

Дефекты

CWE-611

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

CVSS3: 7.5
ubuntu
3 месяца назад

lxml is a library for processing XML and HTML in the Python language. Prior to 6.1.0, using either of the two parsers in the default configuration (with resolve_entities=True) allows untrusted XML input to read local files. Setting the resolve_entities option explicitly to resolve_entities='internal' or resolve_entities=False disables the local file access. This vulnerability is fixed in 6.1.0.

CVSS3: 5.9
redhat
3 месяца назад

lxml is a library for processing XML and HTML in the Python language. Prior to 6.1.0, using either of the two parsers in the default configuration (with resolve_entities=True) allows untrusted XML input to read local files. Setting the resolve_entities option explicitly to resolve_entities='internal' or resolve_entities=False disables the local file access. This vulnerability is fixed in 6.1.0.

CVSS3: 7.5
nvd
3 месяца назад

lxml is a library for processing XML and HTML in the Python language. Prior to 6.1.0, using either of the two parsers in the default configuration (with resolve_entities=True) allows untrusted XML input to read local files. Setting the resolve_entities option explicitly to resolve_entities='internal' or resolve_entities=False disables the local file access. This vulnerability is fixed in 6.1.0.

msrc
3 месяца назад

lxml: Default configuration of iterparse() and ETCompatXMLParser() allows XXE to local files

CVSS3: 7.5
debian
3 месяца назад

lxml is a library for processing XML and HTML in the Python language. ...

EPSS

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

7.5 High

CVSS3

Дефекты

CWE-611