Skip to main content

CVE-2024-50345 — Vulnerability in symfony/http-foundation

LOW

Symfony vulnerable to open redirect via browser-sanitized URLs

Published November 6, 2024Updated November 3, 2025Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.77%). Schedule for your next planned update.

Does your project use an affected symfony/http-foundation version?

Paste your composer.lock to check it for CVE-2024-50345 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my composer.lock

Summary

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

Advisory Timeline

  • First published November 6, 2024 (751 days ago).
  • Last revised November 3, 2025 — 362 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Composer
Update symfony/http-foundation to 5.4.46 or later
composer require "symfony/http-foundation:^5.4.46"
Composer
Update symfony/http-foundation to 7.1.7 or later
composer require "symfony/http-foundation:^7.1.7"
Composer
Update symfony/http-foundation to 6.4.14 or later
composer require "symfony/http-foundation:^6.4.14"

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (3)

Affects 1 ecosystem: Packagist (1).

PackageFixed In
symfony/http-foundation Packagist · Affected: 2.0.4, 2.0.5, 2.0.6, 2.0.7 (+569 more)5.4.46
symfony/http-foundation Packagist · Affected: v7.0.0, v7.0.10, v7.0.3, v7.0.4 (+10 more)7.1.7
symfony/http-foundation Packagist · Affected: v6.0.0, v6.0.1, v6.0.10, v6.0.11 (+72 more)6.4.14

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 3.1 score means for each attack dimension.

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
Required
Scope
Unchanged
Confidentiality
Low
Integrity
None
Availability
None

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:N

Frequently Asked Questions

What is CVE-2024-50345?
Symfony vulnerable to open redirect via browser-sanitized URLs. This vulnerability has been assigned a severity rating of LOW (CVSS score: 3.1/10).
How do I check if my project is affected by CVE-2024-50345?
CVE-2024-50345 affects symfony/http-foundation. It has a 0.8% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-50345 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
3.1

Exploitation is difficult, or the impact is minor.

EPSS Score (30-day exploit probability)
0.77%
EPSS percentile: 52.1

This is an above-median EPSS score — 52.1% of tracked vulnerabilities score at or below it, putting its exploitation likelihood in the upper half of the tracked corpus.

Also Known As

GHSA-mrqx-rp3w-jpjp

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my composer.lock