CVE-2013-4752 Symfony Host Header Injection vulnerability in the HttpFoundation component
Attackers can inject malicious scripts via manipulated Host headers in Symfony HttpFoundation, leading to XSS and potential code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- Available
What is CVE-2013-4752?
CVE-2013-4752 is a medium-severity cross-site scripting vulnerability in Fedoraproject Fedora, published on 2 Jan 2020. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official description
Symfony 2.0.X before 2.0.24, 2.1.X before 2.1.12, 2.2.X before 2.2.5, and 2.3.X before 2.3.3 have an issue in the HttpFoundation component. The Host header can be manipulated by an attacker when the framework is generating an absolute URL. A remote attacker could exploit this vulnerability to inject malicious content into the Web application page and conduct various attacks.
Weakness: CWE-79
Which versions are affected by CVE-2013-4752?
16 open source packages ship an affected version, including symfony/http-foundation and symfony/symfony. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
symfony/http-foundation Packagist | From 2.0.0 | 2.0.24 |
symfony/http-foundation Packagist | From 2.0.0 | 2.0.24 |
symfony/http-foundation Packagist | From 2.1.0 | 2.1.12 |
symfony/http-foundation Packagist | From 2.1.0 | 2.1.12 |
symfony/http-foundation Packagist | From 2.2.0 | 2.2.5 |
symfony/http-foundation Packagist | From 2.2.0 | 2.2.5 |
10 more packages
symfony/http-foundation Packagist | From 2.3.0 | 2.3.3 |
symfony/http-foundation Packagist | From 2.3.0 | 2.3.3 |
symfony/symfony Packagist | From 2.0.0 | 2.0.24 |
symfony/symfony Packagist | From 2.0.0 | 2.0.24 |
symfony/symfony Packagist | From 2.1.0 | 2.1.12 |
symfony/symfony Packagist | From 2.1.0 | 2.1.12 |
symfony/symfony Packagist | From 2.2.0 | 2.2.5 |
symfony/symfony Packagist | From 2.2.0 | 2.2.5 |
symfony/symfony Packagist | From 2.3.0 | 2.3.3 |
symfony/symfony Packagist | From 2.3.0 | 2.3.3 |
Products include Fedoraproject Fedora, Sensiolabs Symfony.
How do I fix CVE-2013-4752?
Upgrade symfony/http-foundation to a fixed version for your release line: 2.0.24, 2.1.12, 2.2.5 or 2.3.3.
Escape output for the context it lands in and set a strict Content Security Policy. Upgrading the affected component is the real fix. More about Cross-site scripting.
Is CVE-2013-4752 being exploited?
There is no known exploitation of CVE-2013-4752 in the wild and no public exploit code.
Other vulnerabilities in Fedoraproject Fedora
Sources
Also known as GHSA-22pv-7v9j-hqxp.