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

exploitDog

github логотип

GHSA-c2p3-7m5p-cv8x

Опубликовано: 27 мая 2026
Источник: github
Github: Прошло ревью
CVSS4: 2.7

Описание

Symfony hardened the parser when handling untrusted input

Description

Symfony\Component\Yaml\Parser is the entry point for parsing YAML strings into PHP values via Yaml::parse(). When the parser is exposed to attacker-controlled input, deeply nested mappings or sequences cause both the block-level (Parser::parseBlock()) and inline (Inline::parseSequence() / Inline::parseMapping()) parsers to recurse without a depth limit. A crafted document exhausts the PHP stack and crashes the worker.

Resolution

The Parser now tracks recursion depth in a shared ParserState object across both block-level and inline parsing, with a default limit of 128. The limit is configurable via a new $maxNestingLevel argument on Parser::__construct(), Yaml::parse() and Yaml::parseFile().

The patch for this issue is available here for branch 5.4.

Credits

Symfony would like to thank Pietro Tirenna (Shielder) for reporting the issue and Nicolas Grekas for fixing it.

Пакеты

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

symfony/yaml

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

< 5.4.52

5.4.52

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

symfony/symfony

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

< 5.4.52

5.4.52

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

symfony/symfony

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

>= 6.0.0, < 6.4.40

6.4.40

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

symfony/symfony

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

>= 7.0.0, < 7.4.12

7.4.12

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

symfony/symfony

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

>= 8.0.0, < 8.0.12

8.0.12

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

symfony/yaml

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

>= 6.0.0, < 6.4.40

6.4.40

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

symfony/yaml

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

>= 7.0.0, < 7.4.12

7.4.12

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

symfony/yaml

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

>= 8.0.0, < 8.0.12

8.0.12

EPSS

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

2.7 Low

CVSS4

Дефекты

CWE-1333
CWE-674
CWE-776

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

CVSS3: 7.5
ubuntu
16 дней назад

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.52, 6.4.40, 7.4.12, and 8.0.12, when the parser is exposed to attacker-controlled input, deeply nested mappings or sequences cause both the block-level (Parser::parseBlock()) and inline (Inline::parseSequence() / Inline::parseMapping()) parsers to recurse without a depth limit. A crafted document exhausts the PHP stack and crashes the worker. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

CVSS3: 7.5
nvd
16 дней назад

Symfony is a PHP framework for web and console applications and a set of reusable PHP components. Prior to 5.4.52, 6.4.40, 7.4.12, and 8.0.12, when the parser is exposed to attacker-controlled input, deeply nested mappings or sequences cause both the block-level (Parser::parseBlock()) and inline (Inline::parseSequence() / Inline::parseMapping()) parsers to recurse without a depth limit. A crafted document exhausts the PHP stack and crashes the worker. This issue is fixed in versions 5.4.52, 6.4.40, 7.4.12, and 8.0.12.

CVSS3: 7.5
debian
16 дней назад

Symfony is a PHP framework for web and console applications and a set ...

EPSS

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

2.7 Low

CVSS4

Дефекты

CWE-1333
CWE-674
CWE-776