CVE-2024-2756
__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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| php8.2-ffi | Amazon Linux | 8.2.18-1.amzn2023.0.1 |
| php8.2-gd | Amazon Linux | 8.2.18-1.amzn2023.0.1 |
| php8.2-devel | Amazon Linux | 8.2.18-1.amzn2023.0.1 |
| php8.2-common | Amazon Linux | 8.2.18-1.amzn2023.0.1 |
| php | Bitnami | 8.3.5, 8.2.18, 8.1.28 |
| php8.2-cli | Amazon Linux | 8.2.18-1.amzn2023.0.1 |
| php8.1 | Amazon Linux | 8.1.28-1.amzn2023.0.1 |
| php8.1-pdo | Amazon Linux | 8.1.28-1.amzn2023.0.1 |
| php8.2-soap | Amazon Linux | 8.2.18-1.amzn2023.0.1 |
| php8.1-embedded | Amazon Linux | 8.1.28-1.amzn2023.0.1 |
| php8.1-tidy | Amazon Linux | 8.1.28-1.amzn2023.0.1 |
| php8.1-gmp | Amazon Linux | 8.1.28-1.amzn2023.0.1 |
16 more packages have a fixed version. See every fix in Lookup.
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| PHP Group | PHP | 8.1.*, 8.2.*, 8.3.* |
| amazon:2023 | php8.2-ffi | 0 |
| amazon:2023 | php8.2-gd | 0 |
| amazon:2023 | php8.2-devel | 0 |
| amazon:2023 | php8.2-common | 0 |
| amazon:2023 | php8.2-cli | 0 |
| amazon:2023 | php8.1 | 0 |
| amazon:2023 | php8.1-pdo | 0 |
| amazon:2023 | php8.2-soap | 0 |
| PHP Group | PHP | 8.1.*, 8.3.*, 8.2.* |
| amazon:2023 | php8.1-embedded | 0 |
| amazon:2023 | php8.1-tidy | 0 |
| amazon:2023 | php8.1-gmp | 0 |
| alpine | php83 | 0, 0 |
| amazon:2023 | php8.2-mbstring | 0 |
| amazon:2023 | php8.1-dbg | 0 |
| amazon:2023 | php8.1-zip | 0 |
| amazon:2023 | php8.1-pgsql | 0 |
| amazon:2023 | php8.1-opcache | 0 |
| amazon:2023 | php8.2-opcache | 0 |
…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