← Back to CVE Explorer

CVE-2026-120644

Full vulnerability record from the local CVENow database.

Description

CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values. The path, domain and expires values are written into the Set-Cookie header without checking for semicolons or control characters. An application that sets them from request data can be made to add other cookie attributes, such as Domain or SameSite.

Severity
Not scored
CVSS score
Not available
Vulnerability status
Received
Source identifier
9b29abf9-4ab0-4765-b253-1875cd9b441e
Published
2026-11-04 00:17:25.897000
Last modified
2026-11-04 00:17:25.897000
View original CVE JSON
{
  "id": "CVE-2026-120644",
  "sourceIdentifier": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
  "published": "2026-11-04T00:17:25.897",
  "lastModified": "2026-11-04T00:17:25.897",
  "vulnStatus": "Received",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "CGI::Cookie versions before 5.00 for Perl allow cookie attribute injection via unvalidated path, domain and expires values.\n\nThe path, domain and expires values are written into the Set-Cookie header without checking for semicolons or control characters.\n\nAn application that sets them from request data can be made to add other cookie attributes, such as Domain or SameSite."
    }
  ],
  "affected": [
    {
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
      "affectedData": [
        {
          "defaultStatus": "unaffected",
          "collectionURL": "https://cpan.org/modules",
          "packageName": "CGI",
          "modules": [
            "CGI::Cookie"
          ],
          "programFiles": [
            "lib/CGI/Cookie.pm"
          ],
          "programRoutines": [
            {
              "name": "CGI::Cookie::as_string"
            },
            {
              "name": "CGI::Cookie::path"
            },
            {
              "name": "CGI::Cookie::domain"
            },
            {
              "name": "CGI::Cookie::expires"
            }
          ],
          "repo": "https://github.com/leejo/CGI.pm",
          "packageURL": "pkg:cpan/CGI",
          "versions": [
            {
              "version": "0",
              "lessThan": "5.00",
              "versionType": "custom",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {},
  "weaknesses": [
    {
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-116"
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://github.com/leejo/CGI.pm/commit/0b3527faaa9de55f79ca7d59dd3bcfb2c5540e00.patch",
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
    },
    {
      "url": "https://metacpan.org/release/LEEJO/CGI-4.72/source/lib/CGI/Cookie.pm",
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
    },
    {
      "url": "https://metacpan.org/release/LEEJO/CGI-5.00/changes",
      "source": "9b29abf9-4ab0-4765-b253-1875cd9b441e"
    }
  ]
}