CVE-2024-50345: Symfony/http foundation Symfony Vulnerable To Open Redirect Vulnerability
LOWCVE-2024-50345 is a LOW (CVSS 3.1) symfony vulnerable to open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Symfony/http foundation libraries in the Packagist ecosystem. The issue involves symfony vulnerable to open redirect via browser-sanitized urls. Remediation is available by upgrading affected packages to version 5.4.46, 6.4.14, 7.1.7.
CVE-2024-50345 at a Glance
Security Impact
CVSS: 3.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N).
How to Fix CVE-2024-50345
To remediate this vulnerability, upgrade all affected Symfony/http foundation dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade symfony/http-foundation to 5.4.46
Upgrade symfony/http-foundation to 6.4.14
Upgrade symfony/http-foundation to 7.1.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/http-foundation
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-50345, inspect your project dependencies for Symfony/http foundation:
inspect dependencies for symfony/http-foundation
Analyze the terminal output to locate any version of Symfony/http foundation in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.4.46), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Symfony/http foundation, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-50345 Affected Symfony/http foundation Versions
3 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/http-foundation
|
Packagist |
< 5.4.46
|
5.4.46
|
|
symfony/http-foundation
|
Packagist |
≥ 6.0.0
< 6.4.14
|
6.4.14
|
|
symfony/http-foundation
|
Packagist |
≥ 7.0.0
< 7.1.7
|
7.1.7
|
References
Frequently Asked Questions
What is CVE-2024-50345?
Which Symfony/http foundation versions are affected?
What version fixes CVE-2024-50345?
Is symfony/http-foundation affected?
What is the CVSS score of CVE-2024-50345?
What CWE is associated with CVE-2024-50345?
How can I check Packagist dependencies for CVE-2024-50345?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-mrqx-rp3w-jpjp",
"modified" : "2025-11-03T22:49:53Z",
"published" : "2024-11-06T15:22:09Z",
"aliases" : [ "CVE-2024-50345" ],
"summary" : "Symfony vulnerable to open redirect via browser-sanitized URLs",
"details" : "### Description\n\nThe `Request` class, does not parse URI with special characters the same way browsers do. As a result, an attacker can trick a validator relying on the `Request` class to redirect users to another domain.\n\n### Resolution\n\nThe `Request::create` methods now assert the URI does not contain invalid characters as defined by https://url.spec.whatwg.org/\n\nThe patch for this issue is available [here](https://github.com/symfony/symfony/commit/5a9b08e5740af795854b1b639b7d45b9cbfe8819) for branch 5.4.\n\n### Credits\n\nWe would like to thank Sam Mush - IPASSLab && ZGC Lab for reporting the issue and Nicolas Grekas for providing the fix.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N"
}, {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-foundation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "5.4.46"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-foundation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "6.0.0"
}, {
"fixed" : "6.4.14"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-foundation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "7.0.0"
}, {
"fixed" : "7.1.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/security/advisories/GHSA-mrqx-rp3w-jpjp"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-50345"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/5a9b08e5740af795854b1b639b7d45b9cbfe8819"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2024-50345.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2024-50345.yaml"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/symfony"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2025/05/msg00051.html"
}, {
"type" : "WEB",
"url" : "https://symfony.com/cve-2024-50345"
}, {
"type" : "WEB",
"url" : "https://url.spec.whatwg.org"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "LOW",
"github_reviewed" : true,
"github_reviewed_at" : "2024-11-06T15:22:09Z",
"nvd_published_at" : "2024-11-06T21:15:06Z"
}
}