Skip to content
OpenAdvisories
Low · 3.1 CVE-2024-50343 EUVD-2024-3249GHSA-g3rh-rrhp-jhh9

Incorrect response from Validator when input ends with `\n` in symfony/validator

Published Nov 6, 2024 · Updated Nov 3, 2025 · Assigned by GitHub_M

Description

symfony/validator is a module for the Symphony PHP framework which provides tools to validate values. It is possible to trick a `Validator` configured with a regular expression using the `$` metacharacters, with an input ending with `\n`. Symfony as of versions 5.4.43, 6.4.11, and 7.1.4 now uses the `D` regex modifier to match the entire input. Users are advised to upgrade. There are no known workarounds for this vulnerability.

Affected products

VendorProductAffectedFixed
symfony symfony < 5.4.43, >= 6.0.0, < 6.4.11, >= 7.0.0, < 7.1.4 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 symfony 6.4.11+dfsg-1 —
Debian 13 symfony 6.4.11+dfsg-1 —
Debian 12 symfony 5.4.23+dfsg-1+deb12u3 DSA-5809-1
Debian 11 symfony 4.4.19+dfsg-2+deb11u7 DLA-4200-1
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS symfony No fix yet —
Ubuntu 25.10 symfony No fix yet —
Ubuntu 16.04 LTS symfony No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 24.04 LTS symfony 6.4.5+dfsg-3ubuntu3+esm1 USN-7272-1
Ubuntu Pro 22.04 LTS symfony 5.4.4+dfsg-1ubuntu8+esm1 USN-7272-1
Ubuntu Pro 20.04 LTS symfony 4.3.8+dfsg-1ubuntu1+esm2 USN-7272-1
Ubuntu Pro 18.04 LTS symfony No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Packagist symfony/symfony < 5.4.43 5.4.43 GHSA-g3rh-rrhp-jhh9
Packagist symfony/symfony >= 6.0.0, < 6.4.11 6.4.11 GHSA-g3rh-rrhp-jhh9
Packagist symfony/symfony >= 7.0.0, < 7.1.4 7.1.4 GHSA-g3rh-rrhp-jhh9
Packagist symfony/validator < 5.4.43 5.4.43 GHSA-g3rh-rrhp-jhh9
Packagist symfony/validator >= 6.0.0, < 6.4.11 6.4.11 GHSA-g3rh-rrhp-jhh9
Packagist symfony/validator >= 7.0.0, < 7.1.4 7.1.4 GHSA-g3rh-rrhp-jhh9

Advisories 3

References