VDB

CVE-2024-2756

CVE-2024-2756 PUBLISHED CVSS 6.5 MEDIUM

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

Reported by php · Published April 29, 2024

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php8.2-ffiAmazon Linux8.2.18-1.amzn2023.0.1
php8.2-gdAmazon Linux8.2.18-1.amzn2023.0.1
php8.2-develAmazon Linux8.2.18-1.amzn2023.0.1
php8.2-commonAmazon Linux8.2.18-1.amzn2023.0.1
phpBitnami8.3.5, 8.2.18, 8.1.28
php8.2-cliAmazon Linux8.2.18-1.amzn2023.0.1
php8.1Amazon Linux8.1.28-1.amzn2023.0.1
php8.1-pdoAmazon Linux8.1.28-1.amzn2023.0.1
php8.2-soapAmazon Linux8.2.18-1.amzn2023.0.1
php8.1-embeddedAmazon Linux8.1.28-1.amzn2023.0.1
php8.1-tidyAmazon Linux8.1.28-1.amzn2023.0.1
php8.1-gmpAmazon Linux8.1.28-1.amzn2023.0.1

16 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
6.5
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Affected products

VendorProductVersions
PHP GroupPHP8.1.*, 8.2.*, 8.3.*
amazon:2023php8.2-ffi0
amazon:2023php8.2-gd0
amazon:2023php8.2-devel0
amazon:2023php8.2-common0
amazon:2023php8.2-cli0
amazon:2023php8.10
amazon:2023php8.1-pdo0
amazon:2023php8.2-soap0
PHP GroupPHP8.1.*, 8.3.*, 8.2.*
amazon:2023php8.1-embedded0
amazon:2023php8.1-tidy0
amazon:2023php8.1-gmp0
alpinephp830, 0
amazon:2023php8.2-mbstring0
amazon:2023php8.1-dbg0
amazon:2023php8.1-zip0
amazon:2023php8.1-pgsql0
amazon:2023php8.1-opcache0
amazon:2023php8.2-opcache0

…and 43 more

Timeline

  • Apr 11, 2024 CVE Published
  • Apr 29, 2024 EPSS Score (30 in total, the first dated here)
  • Oct 4, 2024 Coalition ESS Score (19 in total, the first dated here)
  • Oct 23, 2026 Distribution Patch (7 in total, the first dated here)
  • Oct 23, 2026 Security Advisory (10 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2024-2756
vulnetix vdb fixes CVE-2024-2756

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2024-2756/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›