CVE-2018-19790: Symfony/security http Symfony Open Redirect Vulnerability

MODERATE
Advisory Identifier: GHSA-89r2-5g34-2g47
CVSS 6.1
CWE-601
Published
Advisory Summary

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

CVE Identifier CVE-2018-19790
GHSA Identifier GHSA-89r2-5g34-2g47
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-601: URL Redirection to Untrusted Site ('Open Redirect')
Affected Product Symfony/security http
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.0/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-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.

symfony/security-http fixed: 2.7.50
Upgrade symfony/security-http to 2.7.50
symfony/security-http fixed: 2.8.49
Upgrade symfony/security-http to 2.8.49
symfony/security-http fixed: 3.4.20
Upgrade symfony/security-http to 3.4.20
symfony/security-http fixed: 4.0.15
Upgrade symfony/security-http to 4.0.15
symfony/security-http fixed: 4.1.9
Upgrade symfony/security-http to 4.1.9
symfony/security-http fixed: 4.2.1
Upgrade symfony/security-http to 4.2.1
symfony/security fixed: 2.7.50
Upgrade symfony/security to 2.7.50
symfony/security fixed: 2.8.49
Upgrade symfony/security to 2.8.49
symfony/security fixed: 3.4.19
Upgrade symfony/security to 3.4.19
symfony/security fixed: 4.0.15
Upgrade symfony/security to 4.0.15
symfony/security fixed: 4.1.9
Upgrade symfony/security to 4.1.9
symfony/security fixed: 4.2.1
Upgrade symfony/security to 4.2.1
symfony/symfony fixed: 2.7.50
Upgrade symfony/symfony to 2.7.50
symfony/symfony fixed: 2.8.49
Upgrade symfony/symfony to 2.8.49
symfony/symfony fixed: 3.4.20
Upgrade symfony/symfony to 3.4.20
symfony/symfony fixed: 4.0.15
Upgrade symfony/symfony to 4.0.15
symfony/symfony fixed: 4.1.9
Upgrade symfony/symfony to 4.1.9
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/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

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.

CVE-2018-19790 Affected Symfony/security http Versions

17 component(s)
Fixed Versions:
2.7.502.8.493.4.204.0.154.1.94.2.13.4.19
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

NVD — CVE-2018-19790 NVD
https://nvd.nist.gov/vuln/detail/CVE-2018-19790
Security Fix Commit FIX COMMIT
https://github.com/symfony/symfony/commit/99a0cec0a6be39ce5ef38386e57339603b33ee5b
Symfony/security http Security Information SECURITY
https://www.debian.org/security/2019/dsa-4441
Symfony/security http Security Information SECURITY
https://web.archive.org/web/20200227095826/http://www.securityfocus.com/bid/106249
symfony.com/cve-2018-19790 WEB
https://symfony.com/cve-2018-19790
Symfony/security http Security Information SECURITY
https://symfony.com/blog/cve-2018-19790-open-redirect-vulnerability-when-using-security-http
seclists.org/bugtraq/2019/may/21 WEB
https://seclists.org/bugtraq/2019/May/21
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/OA4WVFN5FYPIXAPLWZI6N425JHHDSWAZ
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/JZMRJ7VTHCY5AZK24G4QGX36RLUDTDKE
lists.fedoraproject.org/archives/list/packa... WEB
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4TD3E7FZIXLVFG3SMFJPDEKPZ26TJOW7
lists.debian.org/debian-lts-announce... WEB
https://lists.debian.org/debian-lts-announce/2019/03/msg00009.html
Symfony/security http Source Repository REPOSITORY
https://github.com/symfony/symfony
Symfony/security http Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/symfony/CVE-2018-19790.yaml
Symfony/security http Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security/CVE-2018-19790.yaml
Symfony/security http Source Repository REPOSITORY
https://github.com/FriendsOfPHP/security-advisories/blob/master/symfony/security-http/CVE-2018-19790.yaml
Symfony/security http Security Information SECURITY
http://www.securityfocus.com/bid/106249

Frequently Asked Questions

What is CVE-2018-19790?
CVE-2018-19790 is a security vulnerability in Symfony/security http involving Symfony Open Redirect under CWE-601: URL Redirection to Untrusted Site ('Open Redirect').
Which Symfony/security http versions are affected?
Affected versions include releases prior to 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1, 3.4.19 across affected packages: symfony/security-http, symfony/security, symfony/symfony.
What version fixes CVE-2018-19790?
Upgrading to 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1, 3.4.19 (or the latest patched release for your respective branch) resolves the vulnerability.
Is symfony/security-http affected?
Yes, symfony/security-http is affected in releases prior to 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1. Upgrade your dependency to 2.7.50, 2.8.49, 3.4.20, 4.0.15, 4.1.9, 4.2.1 or later.
Is symfony/security affected?
Yes, symfony/security is affected in releases prior to 2.7.50, 2.8.49, 3.4.19, 4.0.15, 4.1.9, 4.2.1. Upgrade your dependency to 2.7.50, 2.8.49, 3.4.19, 4.0.15, 4.1.9, 4.2.1 or later.
What is the CVSS score of CVE-2018-19790?
CVE-2018-19790 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2018-19790?
CVE-2018-19790 is classified under CWE-601: URL Redirection to Untrusted Site ('Open Redirect') (The web application accepts a user-controlled input that specifies a link to an external site, and uses that link in a redirect.).
How can I check Packagist dependencies for CVE-2018-19790?
Run the dependency tree command: 'inspect dependencies for symfony/security-http'. 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-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"
  }
}