CVE-2013-4752: Symfony/symfony Symfony Host Header Injection Vulnerability Vulnerability

MODERATE
Advisory Identifier: GHSA-22pv-7v9j-hqxp
CVSS 6.1
CWE-79
Published
Advisory Summary

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

CVE Identifier CVE-2013-4752
GHSA Identifier GHSA-22pv-7v9j-hqxp
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Symfony/symfony
Package Ecosystem Packagist
Published Date
Last Updated

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

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

symfony/symfony fixed: 2.0.24
Upgrade symfony/symfony to 2.0.24
symfony/symfony fixed: 2.1.12
Upgrade symfony/symfony to 2.1.12
symfony/symfony fixed: 2.2.5
Upgrade symfony/symfony to 2.2.5
symfony/symfony fixed: 2.3.3
Upgrade symfony/symfony to 2.3.3
symfony/http-foundation fixed: 2.0.24
Upgrade symfony/http-foundation to 2.0.24
symfony/http-foundation fixed: 2.1.12
Upgrade symfony/http-foundation to 2.1.12
symfony/http-foundation fixed: 2.2.5
Upgrade symfony/http-foundation to 2.2.5
symfony/http-foundation fixed: 2.3.3
Upgrade symfony/http-foundation to 2.3.3
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/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

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.

CVE-2013-4752 Affected Symfony/symfony Versions

8 component(s)
Fixed Versions:
2.0.242.1.122.2.52.3.3
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

NVD — CVE-2013-4752 NVD
https://nvd.nist.gov/vuln/detail/CVE-2013-4752
Symfony/symfony Security Information SECURITY
https://web.archive.org/web/20130901060826/http://www.securityfocus.com/bid/61715
Symfony/symfony Release RELEASE
https://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released
Symfony/symfony Source Repository REPOSITORY
https://github.com/symfony/symfony
Symfony/symfony Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2013-4752.yaml
Symfony/symfony Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/http-foundation/CVE-2013-4752.yaml
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86374
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86373
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86372
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86371
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86370
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86369
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86368
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86367
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86366
exchange.xforce.ibmcloud.com/vulnerabilities/863... WEB
https://exchange.xforce.ibmcloud.com/vulnerabilities/86365
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2013-4752
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2013-August/114450.html
lists.fedoraproject.org/pipermail/package-a... WEB
http://lists.fedoraproject.org/pipermail/package-announce/2013-August/114461.html
Symfony/symfony Release RELEASE
http://symfony.com/blog/security-releases-symfony-2-0-24-2-1-12-2-2-5-and-2-3-3-released

Frequently Asked Questions

What is CVE-2013-4752?
CVE-2013-4752 is a security vulnerability in Symfony/symfony involving Symfony Host Header Injection vulnerability in the HttpFoundation component under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Symfony/symfony versions are affected?
Affected versions include releases prior to 2.0.24, 2.1.12, 2.2.5, 2.3.3 across affected packages: symfony/symfony, symfony/http-foundation.
What version fixes CVE-2013-4752?
Upgrading to 2.0.24, 2.1.12, 2.2.5, 2.3.3 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/symfony affected?
Yes, symfony/symfony is affected in releases prior to 2.0.24, 2.1.12, 2.2.5, 2.3.3. Upgrade your dependency to 2.0.24, 2.1.12, 2.2.5, 2.3.3 or later.
Is symfony/http-foundation affected?
Yes, symfony/http-foundation is affected in releases prior to 2.0.24, 2.1.12, 2.2.5, 2.3.3. Upgrade your dependency to 2.0.24, 2.1.12, 2.2.5, 2.3.3 or later.
What is the CVSS score of CVE-2013-4752?
CVE-2013-4752 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2013-4752?
CVE-2013-4752 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (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.).
How can I check Packagist dependencies for CVE-2013-4752?
Run the dependency tree command: 'inspect dependencies for symfony/symfony'. 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-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"
  }
}