Advisory

GHSA-g3rh-rrhp-jhh9

Also known as: CVE-2024-50343

Summary

Symfony has an incorrect response from Validator when input ends with \n

Details

Description

It is possible to trick a Validator configured with a regular expression using the $ metacharacters, with an input ending with \n.

Resolution

Symfony now uses the D regex modifier to match the entire input.

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

Credits

We would like to thank Offscript for reporting the issue and Alexandre Daubois for providing the fix.

Severity

Low Basis: The source's own band: LOW

Dates

Published
2024-11-06 15:21 UTC
Modified
2025-11-03 23:16 UTC

Affected packages and fixes

symfony/symfony

Packagist · All systems

Affected

  • introduced 0, fixed 5.4.43 (ecosystem)

Fixed versions

5.4.43

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.4.11 (ecosystem)

Fixed versions

6.4.11

Fix

The export has no generic command for this ecosystem.

symfony/symfony

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.1.4 (ecosystem)

Fixed versions

7.1.4

Fix

The export has no generic command for this ecosystem.

symfony/validator

Packagist · All systems

Affected

  • introduced 0, fixed 5.4.43 (ecosystem)

Fixed versions

5.4.43

Fix

The export has no generic command for this ecosystem.

symfony/validator

Packagist · All systems

Affected

  • introduced 6.0.0, fixed 6.4.11 (ecosystem)

Fixed versions

6.4.11

Fix

The export has no generic command for this ecosystem.

symfony/validator

Packagist · All systems

Affected

  • introduced 7.0.0, fixed 7.1.4 (ecosystem)

Fixed versions

7.1.4

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences