CVE-2024-50345: Symfony/http foundation Symfony Vulnerable To Open Redirect Vulnerability

LOW
Advisory Identifier: GHSA-mrqx-rp3w-jpjp
CVSS 3.1
CWE-601
Published
Advisory Summary

CVE-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

CVE Identifier CVE-2024-50345
GHSA Identifier GHSA-mrqx-rp3w-jpjp
Severity LOW
CVSS v3.1 Base Score 3.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Symfony/http foundation
Package Ecosystem Packagist
Published Date
Last Updated

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).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality Low (C:L)
Integrity None (I:N)
Availability None (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.

symfony/http-foundation fixed: 5.4.46
Upgrade symfony/http-foundation to 5.4.46
symfony/http-foundation fixed: 6.4.14
Upgrade symfony/http-foundation to 6.4.14
symfony/http-foundation fixed: 7.1.7
Upgrade symfony/http-foundation to 7.1.7
Verify Direct and Transitive Dependencies

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

### Description The `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. ### Resolution The `Request::create` methods now assert the URI does not contain invalid characters as defined by https://url.spec.whatwg.org/ The patch for this issue is available [here](https://github.com/symfony/symfony/commit/5a9b08e5740af795854b1b639b7d45b9cbfe8819) for branch 5.4. ### Credits We would like to thank Sam Mush - IPASSLab && ZGC Lab for reporting the issue and Nicolas Grekas for providing the fix.

CVE-2024-50345 Affected Symfony/http foundation Versions

3 component(s)
Fixed Versions:
5.4.466.4.147.1.7
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?
CVE-2024-50345 is a security vulnerability in Symfony/http foundation involving Symfony vulnerable to open redirect via browser-sanitized URLs under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Symfony/http foundation versions are affected?
Affected versions include releases prior to 5.4.46, 6.4.14, 7.1.7 across affected packages: symfony/http-foundation.
What version fixes CVE-2024-50345?
Upgrading to 5.4.46, 6.4.14, 7.1.7 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/http-foundation affected?
Yes, symfony/http-foundation is affected in releases prior to 5.4.46, 6.4.14, 7.1.7. Upgrade your dependency to 5.4.46, 6.4.14, 7.1.7 or later.
What is the CVSS score of CVE-2024-50345?
CVE-2024-50345 has a CVSS v3.1 base score of 3.1 (LOW) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N.
What CWE is associated with CVE-2024-50345?
CVE-2024-50345 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Packagist dependencies for CVE-2024-50345?
Run the dependency tree command: 'inspect dependencies for symfony/http-foundation'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "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"
  }
}