CVE-2018-19790: Symfony/security http Symfony Open Redirect Vulnerability
MODERATECVE-2018-19790 is a MODERATE (CVSS 6.1) symfony open redirect vulnerability (CWE-601: URL Redirection to Untrusted Site ('Open Redirect')) affecting Symfony/security http libraries in the Packagist ecosystem. The issue involves symfony open redirect. Remediation is available by upgrading affected packages to version 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1, 3.4.19.
CVE-2018-19790 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.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).
How to Fix CVE-2018-19790
To remediate this vulnerability, upgrade all affected Symfony/security http 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/security-http to 2.7.50
Upgrade symfony/security-http to 2.8.49
Upgrade symfony/security-http to 3.4.20
Upgrade symfony/security-http to 4.0.15
Upgrade symfony/security-http to 4.1.9
Upgrade symfony/security-http to 4.2.1
Upgrade symfony/security to 2.7.50
Upgrade symfony/security to 2.8.49
Upgrade symfony/security to 3.4.19
Upgrade symfony/security to 4.0.15
Upgrade symfony/security to 4.1.9
Upgrade symfony/security to 4.2.1
Upgrade symfony/symfony to 2.7.50
Upgrade symfony/symfony to 2.8.49
Upgrade symfony/symfony to 3.4.20
Upgrade symfony/symfony to 4.0.15
Upgrade symfony/symfony to 4.1.9
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for symfony/security-http
How to Check if You Are Affected
To determine whether your application is affected by CVE-2018-19790, inspect your project dependencies for Symfony/security http:
inspect dependencies for symfony/security-http
Analyze the terminal output to locate any version of Symfony/security http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.7.50), 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-601: URL Redirection to Untrusted Site ('Open Redirect'), where the web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect. In Symfony/security http, 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-2018-19790 Affected Symfony/security http Versions
17 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
symfony/security-http
|
Packagist |
≥ 2.7.38
< 2.7.50
|
2.7.50
|
|
symfony/security-http
|
Packagist |
≥ 2.8.0
< 2.8.49
|
2.8.49
|
|
symfony/security-http
|
Packagist |
≥ 3.0.0
< 3.4.20
|
3.4.20
|
|
symfony/security-http
|
Packagist |
≥ 4.0.0
< 4.0.15
|
4.0.15
|
|
symfony/security-http
|
Packagist |
≥ 4.1.0
< 4.1.9
|
4.1.9
|
|
symfony/security-http
|
Packagist |
≥ 4.2.0
< 4.2.1
|
4.2.1
|
|
symfony/security
|
Packagist |
≥ 2.7.38
< 2.7.50
|
2.7.50
|
|
symfony/security
|
Packagist |
≥ 2.8.0
< 2.8.49
|
2.8.49
|
|
symfony/security
|
Packagist |
≥ 3.0.0
< 3.4.19
|
3.4.19
|
|
symfony/security
|
Packagist |
≥ 4.0.0
< 4.0.15
|
4.0.15
|
|
symfony/security
|
Packagist |
≥ 4.1.0
< 4.1.9
|
4.1.9
|
|
symfony/security
|
Packagist |
≥ 4.2.0
< 4.2.1
|
4.2.1
|
|
symfony/symfony
|
Packagist |
≥ 2.7.38
< 2.7.50
|
2.7.50
|
|
symfony/symfony
|
Packagist |
≥ 2.8.0
< 2.8.49
|
2.8.49
|
|
symfony/symfony
|
Packagist |
≥ 3.0.0
< 3.4.20
|
3.4.20
|
|
symfony/symfony
|
Packagist |
≥ 4.0.0
< 4.0.15
|
4.0.15
|
|
symfony/symfony
|
Packagist |
≥ 4.1.0
< 4.1.9
|
4.1.9
|
References
Frequently Asked Questions
What is CVE-2018-19790?
Which Symfony/security http versions are affected?
What version fixes CVE-2018-19790?
Is symfony/security-http affected?
Is symfony/security affected?
What is the CVSS score of CVE-2018-19790?
What CWE is associated with CVE-2018-19790?
How can I check Packagist dependencies for CVE-2018-19790?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-89r2-5g34-2g47",
"modified" : "2024-04-25T22:12:40Z",
"published" : "2022-05-14T01:04:20Z",
"aliases" : [ "CVE-2018-19790" ],
"summary" : "Symfony Open Redirect",
"details" : "An open redirect was discovered in Symfony 2.7.x before 2.7.50, 2.8.x before 2.8.49, 3.x before 3.4.20, 4.0.x before 4.0.15, 4.1.x before 4.1.9 and 4.2.x before 4.2.1. By using backslashes in the `_failure_path` input field of login forms, an attacker can work around the redirection target restrictions and effectively redirect the user to any domain after login.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.38"
}, {
"fixed" : "2.7.50"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.49"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.4.20"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.1.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security-http"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.38"
}, {
"fixed" : "2.7.50"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.49"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.4.19"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.1.9"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/security"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.2.0"
}, {
"fixed" : "4.2.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.7.38"
}, {
"fixed" : "2.7.50"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.8.0"
}, {
"fixed" : "2.8.49"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "3.0.0"
}, {
"fixed" : "3.4.20"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.0.0"
}, {
"fixed" : "4.0.15"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "symfony/symfony"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "4.1.0"
}, {
"fixed" : "4.1.9"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2018-19790"
}, {
"type" : "WEB",
"url" : "https://github.com/symfony/symfony/commit/99a0cec0a6be39ce5ef38386e57339603b33ee5b"
}, {
"type" : "WEB",
"url" : "https://www.debian.org/security/2019/dsa-4441"
}, {
"type" : "WEB",
"url" : "https://web.archive.org/web/20200227095826/http://www.securityfocus.com/bid/106249"
}, {
"type" : "WEB",
"url" : "https://symfony.com/cve-2018-19790"
}, {
"type" : "WEB",
"url" : "https://symfony.com/blog/cve-2018-19790-open-redirect-vulnerability-when-using-security-http"
}, {
"type" : "WEB",
"url" : "https://seclists.org/bugtraq/2019/May/21"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE"
}, {
"type" : "WEB",
"url" : "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7"
}, {
"type" : "WEB",
"url" : "https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/symfony/symfony"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2018-19790.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2018-19790.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2018-19790.yaml"
}, {
"type" : "WEB",
"url" : "http://www.securityfocus.com/bid/106249"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-601" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-04-25T22:12:40Z",
"nvd_published_at" : "2018-12-18T22:29:00Z"
}
}