Skip to content
Heist/ feed
Back to feed
Medium

__Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fix

Type: advisorySources: OSV

Due to an incomplete fix to CVE-2022-31629 https://github.com/advisories/GHSA-c43m-486j-j32p , network and same-site attackers can set a standard insecure cookie in the victim's browser which is treated as a __Host- or __Secure- cookie by PHP applications.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2024-2756
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 05:17 UTC · Revision 1

Source evidence

__Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fix

core-osv · Original source

Published 29 Apr 2024, 03:34 UTC

Due to an incomplete fix to CVE-2022-31629 https://github.com/advisories/GHSA-c43m-486j-j32p , network and same-site attackers can set a standard insecure cookie in the victim's browser which is treated as a __Host- or __Secure- cookie by PHP applications.

osv:CVE-2024-2756
Complete source record
{
  "id": "9da626c46ec23ef68311145ee831c4bdcb5cf1f0dc51d07977fef124d4d8ae52",
  "url": "https://osv.dev/vulnerability/CVE-2024-2756",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "__Host-/__Secure- cookie bypass due to partial CVE-2022-31629 fix",
    "summary": "Due to an incomplete fix to CVE-2022-31629 https://github.com/advisories/GHSA-c43m-486j-j32p , network and same-site attackers can set a standard insecure cookie in the victim's browser which is treated as a __Host- or __Secure- cookie by PHP applications.",
    "evidence": "osv:CVE-2024-2756",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2024-2756",
      "aliases": [
        "BIT-libphp-2024-2756",
        "BIT-php-2024-2756",
        "BIT-php-min-2024-2756",
        "CVE-2024-2756",
        "GHSA-wpj3-hf5j-x4v4"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/php/php-src",
              "type": "GIT",
              "events": [
                {
                  "introduced": "381ba9f5d0edd0c9c8ec1dea7e21d513ad08b115"
                },
                {
                  "fixed": "9119509142637005d079bcc2815ee43ec1c79524"
                },
                {
                  "introduced": "70ee6c20ad97e02c2b8098aeea96fefbbc3ac5c2"
                },
                {
                  "fixed": "d94fdf582e1fe4a1d85ded00a4c8b9935486c51d"
                },
                {
                  "introduced": "d26068059e83fe40de3430a512471d194119bee0"
                },
                {
                  "fixed": "9a9c7197c4774c80f622222b3dfa874e6dc44f67"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "8.1.*"
                      },
                      {
                        "fixed": "8.1.28"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "8.2.*"
                      },
                      {
                        "fixed": "8.2.18"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  },
                  {
                    "range": [
                      {
                        "introduced": "8.3.*"
                      },
                      {
                        "fixed": "8.3.5"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandardRange"
                  }
                ]
              }
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2024-2756.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.005850033Z",
      "provider": "osv",
      "references": [
        "https://lists.debian.org/debian-lts-announce/2024/05/msg00005.html",
        "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/KJZK3X6B7FBE32FETDSMRLJXTFTHKWSY/",
        "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/ZGWIK3HMBACERGB4TSBB2JUOMPYY2VKY/",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2756.json",
        "https://github.com/php/php-src/security/advisories/GHSA-wpj3-hf5j-x4v4",
        "https://nvd.nist.gov/vuln/detail/CVE-2024-2756",
        "https://security.netapp.com/advisory/ntap-20240510-0008/"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-20"
        ],
        "cna_assigner": "php",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/2xxx/CVE-2024-2756.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2024-2756",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 518345,
  "published_at": "2024-04-29T03:34:16.912+00:00"
}