CVE-2013-4752: Symfony/symfony Symfony Host Header Injection Vulnerability Vulnerability
MODERATECVE-2013-4752 is a MODERATE (CVSS 6.1) symfony host header injection vulnerability vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Symfony/symfony libraries in the Packagist ecosystem. The issue involves symfony host header injection vulnerability in the httpfoundation component. Remediation is available by upgrading affected packages to version 2.0.24, 2.1.12, 2.2.5, 2.3.3.
CVE-2013-4752 at a Glance
Security Impact
CVSS: 6.1
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2013-4752
To remediate this vulnerability, upgrade all affected Symfony/symfony 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/symfony to 2.0.24
Upgrade symfony/symfony to 2.1.12
Upgrade symfony/symfony to 2.2.5
Upgrade symfony/symfony to 2.3.3
Upgrade symfony/http-foundation to 2.0.24
Upgrade symfony/http-foundation to 2.1.12
Upgrade symfony/http-foundation to 2.2.5
Upgrade symfony/http-foundation to 2.3.3
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/symfony
How to Check if You Are Affected
To determine whether your application is affected by CVE-2013-4752, inspect your project dependencies for Symfony/symfony:
inspect dependencies for symfony/symfony
Analyze the terminal output to locate any version of Symfony/symfony in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.24), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Symfony/symfony, 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-2013-4752 Affected Symfony/symfony Versions
8 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/symfony
|
Packagist |
≥ 2.0.0
< 2.0.24
|
2.0.24
|
|
symfony/symfony
|
Packagist |
≥ 2.1.0
< 2.1.12
|
2.1.12
|
|
symfony/symfony
|
Packagist |
≥ 2.2.0
< 2.2.5
|
2.2.5
|
|
symfony/symfony
|
Packagist |
≥ 2.3.0
< 2.3.3
|
2.3.3
|
|
symfony/http-foundation
|
Packagist |
≥ 2.0.0
< 2.0.24
|
2.0.24
|
|
symfony/http-foundation
|
Packagist |
≥ 2.1.0
< 2.1.12
|
2.1.12
|
|
symfony/http-foundation
|
Packagist |
≥ 2.2.0
< 2.2.5
|
2.2.5
|
|
symfony/http-foundation
|
Packagist |
≥ 2.3.0
< 2.3.3
|
2.3.3
|
References
Frequently Asked Questions
What is CVE-2013-4752?
Which Symfony/symfony versions are affected?
What version fixes CVE-2013-4752?
Is symfony/symfony affected?
Is symfony/http-foundation affected?
What is the CVSS score of CVE-2013-4752?
What CWE is associated with CVE-2013-4752?
How can I check Packagist dependencies for CVE-2013-4752?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-22pv-7v9j-hqxp",
"modified" : "2024-02-08T19:46:34Z",
"published" : "2022-05-05T00:29:17Z",
"aliases" : [ "CVE-2013-4752" ],
"summary" : "Symfony Host Header Injection vulnerability in the HttpFoundation component",
"details" : "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.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.24"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.3"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-foundation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.0.24"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-foundation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.1.0"
}, {
"fixed" : "2.1.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-foundation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.2.0"
}, {
"fixed" : "2.2.5"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/http-foundation"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.3.0"
}, {
"fixed" : "2.3.3"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2013-4752"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20130901060826/http://www.securityfocus.com/bid/61715"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/symfony"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2013-4752.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2013-4752.yaml"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86374"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86373"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86372"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86371"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86370"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86369"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86368"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86367"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86366"
}, {
"type" : "WEB",
"url" : "https://exchange.xforce.ibmcloud.com/vulnerabilities/86365"
}, {
"type" : "WEB",
"url" : "https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-4752"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-August/114450.html"
}, {
"type" : "WEB",
"url" : "http://lists.fedoraproject.org/pipermail/package-announce/2013-August/114461.html"
}, {
"type" : "WEB",
"url" : "http://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-79" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2023-08-17T22:51:04Z",
"nvd_published_at" : "2020-01-02T17:15:00Z"
}
}