{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-50343","id":"CVE-2024-50343","title":"Incorrect response from Validator when input ends with `\\n` in symfony/validator","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 work","descriptionLong":"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.","published":"2024-11-06T21:00:55.266Z","updated":"2026-10-28T02:31:01.351852562Z","reserved":"2024-10-22T17:54:40.955Z","status":"Deferred","rejected":false,"assigner":"GitHub_M","metric":{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub_M"},"metrics":[{"version":"4.0","score":null,"vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N","rating":"low","source":"GitHub"},{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub_M"},{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"github.com"},{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"OSV"},{"version":"3.1","score":3.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"GitHub"}],"rating":"low","products":["symfony"],"affectedProducts":[{"vendor":"symfony","product":"symfony","defaultStatus":null,"versions":[{"version":"< 5.4.43","status":"affected"},{"version":">= 6.0.0, < 6.4.11","status":"affected"},{"version":">= 7.0.0, < 7.1.4","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Packagist","name":"symfony/symfony","purl":"pkg:composer/symfony/symfony","ranges":["<5.4.43",">=6.0.0 <6.4.11",">=7.0.0 <7.1.4"],"fixed":["5.4.43","6.4.11","7.1.4"],"advisory":"GHSA-g3rh-rrhp-jhh9"},{"ecosystem":"Packagist","name":"symfony/validator","purl":"pkg:composer/symfony/validator","ranges":["<5.4.43",">=6.0.0 <6.4.11",">=7.0.0 <7.1.4"],"fixed":["5.4.43","6.4.11","7.1.4"],"advisory":"GHSA-g3rh-rrhp-jhh9"}],"cwes":["CWE-20"],"aliases":["GHSA-g3rh-rrhp-jhh9"],"references":[{"url":"https://github.com/symfony/symfony/security/advisories/GHSA-g3rh-rrhp-jhh9","tags":["x_refsource_CONFIRM","advisory","web"]},{"url":"https://github.com/symfony/symfony/commit/7d1032bbead9a4229b32fa6ebca32681c80cb76f","tags":["x_refsource_MISC","fix","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/50xxx/CVE-2024-50343.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50343","tags":["advisory"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50343.yaml","tags":["web"]},{"url":"https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/validator/CVE-2024-50343.yaml","tags":["web"]},{"url":"https://github.com/symfony/symfony","tags":["package"]},{"url":"https://symfony.com/cve-2024-50343","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00455,"epssPercentile":0.40262,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-50343","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-50343","ok":true,"note":"Deferred"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-50343","ok":true,"note":"2 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-g3rh-rrhp-jhh9","ok":true,"note":"GHSA-g3rh-rrhp-jhh9"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-50343","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}