CVE-2024-8927: PHP - File Inclusion
- Cve: CVE-2024-8927
- Name: PHP - File Inclusion
- Description: In PHP versions 8.1.* before 8.1.30, 8.2.* before 8.2.24, 8.3.* before 8.3.12, HTTP_REDIRECT_STATUS variable is used to check whether or not CGI binary is being run by the HTTP server. However, in certain scenarios, the content of this variable can be controlled by the request submitter via HTTP headers, which can lead to cgi.force_redirect option not being correctly applied. In certain configurations this may lead to arbitrary file inclusion in PHP.
- Impact: Attackers can include arbitrary files, potentially leading to remote code execution or information disclosure.
- Remediation: Update to PHP 8.1.30, 8.2.24, 8.3.12 or later versions.
- Vulnerability type: file_inclusion
- Vulnerability impact: file_system_read, remote_code_execution
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.01054
- Epss percentile: 0.65247
- Assignee: [email protected]
- Published at: 2024-10-08T04:15:10Z
- Age in days: 777
- Modified at: 2026-06-17T08:23:34Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-8927
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| NVD-CWE-Other | — |
| CWE-1220 | Insufficient Granularity of Access Control |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/php/php-src/security/advisories/GHSA-94p6-54jq-9mwp | nvd | 2024-10-08 |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| php:php | >= 8.3.0, < 8.3.12; >= 8.2.0, < 8.2.24; >= 8.1.0, < 8.1.30 | no | nvd | /v1/products/php/php |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| php/php-src | fix, security_advisory | yes | /v1/repositories/php/php-src |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2024-10-08
- Remote: yes
- Exposed hosts: 6200906
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports