CVE-2019-11325: Symfony/symfony Improper Input Validation Vulnerability
CRITICALCVE-2019-11325 is a CRITICAL (CVSS 9.8) improper input validation vulnerability (CWE-116: Improper Encoding or Escaping of Output) affecting Symfony/symfony libraries in the Packagist ecosystem. The issue involves improper input validation in symfony. Remediation is available by upgrading affected packages to version 4.2.12, 4.3.8.
CVE-2019-11325 at a Glance
Security Impact
CVSS: 9.8
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:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-11325
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 4.2.12
Upgrade symfony/symfony to 4.3.8
Upgrade symfony/var-exporter to 4.2.12
Upgrade symfony/var-exporter to 4.3.8
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-2019-11325, 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 4.2.12), 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-116: Improper Encoding or Escaping of Output, where the product prepares a structured message for communication with another component, but encoding or escaping of the data is either missing or done incorrectly. as a result, the intended structure of the message is not preserved. 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-2019-11325 Affected Symfony/symfony Versions
4 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/symfony
|
Packagist |
≥ 4.2.0
< 4.2.12
|
4.2.12
|
|
symfony/symfony
|
Packagist |
≥ 4.3.0
< 4.3.8
|
4.3.8
|
|
symfony/var-exporter
|
Packagist |
≥ 4.2.0
< 4.2.12
|
4.2.12
|
|
symfony/var-exporter
|
Packagist |
≥ 4.3.0
< 4.3.8
|
4.3.8
|
References
Frequently Asked Questions
What is CVE-2019-11325?
Which Symfony/symfony versions are affected?
What version fixes CVE-2019-11325?
Is symfony/symfony affected?
Is symfony/var-exporter affected?
What is the CVSS score of CVE-2019-11325?
What CWE is associated with CVE-2019-11325?
How can I check Packagist dependencies for CVE-2019-11325?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-w4rc-rx25-8m86",
"modified" : "2021-08-19T17:13:33Z",
"published" : "2020-02-12T18:44:16Z",
"aliases" : [ "CVE-2019-11325" ],
"summary" : "Improper Input Validation in Symfony",
"details" : "An issue was discovered in Symfony before 4.2.12 and 4.3.x before 4.3.8. The VarExport component incorrectly escapes strings, allowing some specially crafted ones to escalate to execution of arbitrary PHP code. This is related to symfony/var-exporter.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.3.0"
}, {
"fixed" : "4.3.8"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/var-exporter"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.12"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/var-exporter"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.3.0"
}, {
"fixed" : "4.3.8"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-11325"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2019-11325.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/var-exporter/CVE-2019-11325.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/releases/tag/v4.3.8"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/var-exporter/compare/d8bf442...57e00f3"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/cve-2019-11325-fix-escaping-of-strings-in-varexporter"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/symfony-4-3-8-released"
}, {
"type" : "WEB",
"url" : "https://symfony.com/cve-2019-11325"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-116" ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2020-02-11T20:39:28Z",
"nvd_published_at" : null
}
}