CVE-2026-134790 (GCVE-0-2026-134790)

Vulnerability from cvelistv5 – Published: 2026-11-25 10:00 – Updated: 2026-11-25 10:00
VLAI
Title
Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652
Summary
The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first "/". But browsers also end the host at "\", "?" and "#". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test. Applications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again. HttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains.
CWE
  • CWE-601 - URL Redirection to Untrusted Site
Impacted products
Vendor Product Version
Symfony symfony/security-http Affected: 0 , < 5.4.57 (semver)
Affected: 6.0.0 , < 6.4.51 (semver)
Affected: 7.0.0 , < 7.4.24 (semver)
Affected: 8.0.0 , < 8.1.12 (semver)
Create a notification for this product.
Symfony symfony/symfony Affected: 0 , < 5.4.57 (semver)
Affected: 6.0.0 , < 6.4.51 (semver)
Affected: 7.0.0 , < 7.4.24 (semver)
Affected: 8.0.0 , < 8.1.12 (semver)
Create a notification for this product.
Date Public
2026-11-25 09:36
Show details on NVD website

{
  "containers": {
    "cna": {
      "affected": [
        {
          "collectionURL": "https://packagist.org",
          "defaultStatus": "unaffected",
          "packageName": "symfony/security-http",
          "product": "symfony/security-http",
          "repo": "https://github.com/symfony/symfony",
          "vendor": "Symfony",
          "versions": [
            {
              "lessThan": "5.4.57",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "6.4.51",
              "status": "affected",
              "version": "6.0.0",
              "versionType": "semver"
            },
            {
              "lessThan": "7.4.24",
              "status": "affected",
              "version": "7.0.0",
              "versionType": "semver"
            },
            {
              "lessThan": "8.1.12",
              "status": "affected",
              "version": "8.0.0",
              "versionType": "semver"
            }
          ]
        },
        {
          "collectionURL": "https://packagist.org",
          "defaultStatus": "unaffected",
          "packageName": "symfony/symfony",
          "product": "symfony/symfony",
          "repo": "https://github.com/symfony/symfony",
          "vendor": "Symfony",
          "versions": [
            {
              "lessThan": "5.4.57",
              "status": "affected",
              "version": "0",
              "versionType": "semver"
            },
            {
              "lessThan": "6.4.51",
              "status": "affected",
              "version": "6.0.0",
              "versionType": "semver"
            },
            {
              "lessThan": "7.4.24",
              "status": "affected",
              "version": "7.0.0",
              "versionType": "semver"
            },
            {
              "lessThan": "8.1.12",
              "status": "affected",
              "version": "8.0.0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "type": "reporter",
          "value": "Amimul Ihsan"
        },
        {
          "lang": "en",
          "type": "remediation developer",
          "value": "Nicolas Grekas"
        }
      ],
      "datePublic": "2026-11-25T09:36:46.000Z",
      "descriptions": [
        {
          "lang": "en",
          "supportingMedia": [
            {
              "base64": false,
              "type": "text/markdown",
              "value": "The fix for CVE-2017-16652 restricts the redirects of `HttpUtils::createRedirectResponse()` to the host of the request. When `framework.session.cookie_domain` is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first \"/\". But browsers also end the host at \"\\\", \"?\" and \"#\". So with the cookie domain `.example.com`, a target like `https://evil.test?.example.com` passed the check, and the browser went to evil.test.\n\nApplications are exposed when `framework.session.cookie_domain` is set. The default success and failure handlers of `form_login` redirect to the `_target_path` or `_failure_path` of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.\n\n`HttpUtils` now ends the host of a target where browsers do, before checking it against the allowed domains."
            }
          ],
          "value": "The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first \"/\". But browsers also end the host at \"\\\", \"?\" and \"#\". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test.\n\nApplications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.\n\nHttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains."
        }
      ],
      "metrics": [
        {
          "cvssV4_0": {
            "baseScore": 5.3,
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N",
            "version": "4.0"
          },
          "format": "CVSS",
          "scenarios": [
            {
              "lang": "en",
              "value": "GENERAL"
            }
          ]
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "cweId": "CWE-601",
              "description": "CWE-601 URL Redirection to Untrusted Site",
              "lang": "en",
              "type": "CWE"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2026-11-25T10:00:21.839Z",
        "orgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "shortName": "Symfony"
      },
      "references": [
        {
          "name": "CVE-2026-134790",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://symfony.com/cve-2026-134790"
        },
        {
          "name": "GHSA-xf2q-gfhq-mv2q",
          "tags": [
            "vendor-advisory"
          ],
          "url": "https://github.com/symfony/symfony/security/advisories/GHSA-xf2q-gfhq-mv2q"
        },
        {
          "tags": [
            "patch"
          ],
          "url": "https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844"
        }
      ],
      "source": {
        "advisory": "GHSA-xf2q-gfhq-mv2q",
        "discovery": "UNKNOWN"
      },
      "title": "Login Redirects Can Still Reach Another Host When the Session Cookie Domain Is Set: Incomplete Fix for CVE-2017-16652",
      "x_generator": {
        "engine": "symfony/ghsa-to-cve"
      }
    }
  },
  "cveMetadata": {
    "assignerOrgId": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
    "assignerShortName": "Symfony",
    "cveId": "CVE-2026-134790",
    "datePublished": "2026-11-25T10:00:21.839Z",
    "dateReserved": "2026-11-22T17:09:05.968Z",
    "dateUpdated": "2026-11-25T10:00:21.839Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.2",
  "vulnerability-lookup:meta": {
    "nvd": {
      "cve": {
        "affected": [
          {
            "affectedData": [
              {
                "collectionURL": "https://packagist.org",
                "defaultStatus": "unaffected",
                "packageName": "symfony/security-http",
                "product": "symfony/security-http",
                "repo": "https://github.com/symfony/symfony",
                "vendor": "Symfony",
                "versions": [
                  {
                    "lessThan": "5.4.57",
                    "status": "affected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.4.51",
                    "status": "affected",
                    "version": "6.0.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "7.4.24",
                    "status": "affected",
                    "version": "7.0.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "8.1.12",
                    "status": "affected",
                    "version": "8.0.0",
                    "versionType": "semver"
                  }
                ]
              },
              {
                "collectionURL": "https://packagist.org",
                "defaultStatus": "unaffected",
                "packageName": "symfony/symfony",
                "product": "symfony/symfony",
                "repo": "https://github.com/symfony/symfony",
                "vendor": "Symfony",
                "versions": [
                  {
                    "lessThan": "5.4.57",
                    "status": "affected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "6.4.51",
                    "status": "affected",
                    "version": "6.0.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "7.4.24",
                    "status": "affected",
                    "version": "7.0.0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "8.1.12",
                    "status": "affected",
                    "version": "8.0.0",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6"
          }
        ],
        "cveTags": [],
        "descriptions": [
          {
            "lang": "en",
            "value": "The fix for CVE-2017-16652 restricts the redirects of HttpUtils::createRedirectResponse() to the host of the request. When framework.session.cookie_domain is set, it also allows the subdomains of that domain. To check a target, it read the host of the URL up to the first \"/\". But browsers also end the host at \"\\\", \"?\" and \"#\". So with the cookie domain .example.com, a target like https://evil.test?.example.com passed the check, and the browser went to evil.test.\n\nApplications are exposed when framework.session.cookie_domain is set. The default success and failure handlers of form_login redirect to the _target_path or _failure_path of the request. A login link can then send the user to another site right after a successful login, for example to ask for the password again.\n\nHttpUtils now ends the host of a target where browsers do, before checking it against the allowed domains."
          }
        ],
        "id": "CVE-2026-134790",
        "lastModified": "2026-11-25T10:17:14.400",
        "metrics": {
          "cvssMetricV40": [
            {
              "cvssData": {
                "Automatable": "NOT_DEFINED",
                "Recovery": "NOT_DEFINED",
                "Safety": "NOT_DEFINED",
                "attackComplexity": "LOW",
                "attackRequirements": "NONE",
                "attackVector": "NETWORK",
                "availabilityRequirement": "NOT_DEFINED",
                "baseScore": 5.3,
                "baseSeverity": "MEDIUM",
                "confidentialityRequirement": "NOT_DEFINED",
                "exploitMaturity": "NOT_DEFINED",
                "integrityRequirement": "NOT_DEFINED",
                "modifiedAttackComplexity": "NOT_DEFINED",
                "modifiedAttackRequirements": "NOT_DEFINED",
                "modifiedAttackVector": "NOT_DEFINED",
                "modifiedPrivilegesRequired": "NOT_DEFINED",
                "modifiedSubAvailabilityImpact": "NOT_DEFINED",
                "modifiedSubConfidentialityImpact": "NOT_DEFINED",
                "modifiedSubIntegrityImpact": "NOT_DEFINED",
                "modifiedUserInteraction": "NOT_DEFINED",
                "modifiedVulnAvailabilityImpact": "NOT_DEFINED",
                "modifiedVulnConfidentialityImpact": "NOT_DEFINED",
                "modifiedVulnIntegrityImpact": "NOT_DEFINED",
                "privilegesRequired": "NONE",
                "providerUrgency": "NOT_DEFINED",
                "subAvailabilityImpact": "NONE",
                "subConfidentialityImpact": "LOW",
                "subIntegrityImpact": "LOW",
                "userInteraction": "PASSIVE",
                "valueDensity": "NOT_DEFINED",
                "vectorString": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:N/SC:L/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
                "version": "4.0",
                "vulnAvailabilityImpact": "NONE",
                "vulnConfidentialityImpact": "NONE",
                "vulnIntegrityImpact": "NONE",
                "vulnerabilityResponseEffort": "NOT_DEFINED"
              },
              "source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
              "type": "Secondary"
            }
          ]
        },
        "published": "2026-11-25T10:17:14.400",
        "references": [
          {
            "source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "url": "https://github.com/symfony/symfony/commit/b311687afd165a4f62dcd2dff4632be7eb1db844"
          },
          {
            "source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "url": "https://github.com/symfony/symfony/security/advisories/GHSA-xf2q-gfhq-mv2q"
          },
          {
            "source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "url": "https://symfony.com/cve-2026-134790"
          }
        ],
        "sourceIdentifier": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
        "vulnStatus": "Received",
        "weaknesses": [
          {
            "description": [
              {
                "lang": "en",
                "value": "CWE-601"
              }
            ],
            "source": "b5aa5c7f-767d-4597-9c64-3ac08b8711c6",
            "type": "Secondary"
          }
        ]
      }
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…