Description
uWSGI before 2.0.17 mishandles a DOCUMENT_ROOT check during use of the --php-docroot option, allowing directory traversal.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | uwsgi | 2.0.15-10.4 | — |
| Debian 13 | uwsgi | 2.0.15-10.4 | — |
| Debian 12 | uwsgi | 2.0.15-10.4 | — |
| Debian 9 | uwsgi | 2.0.14+20161117-3+deb9u2 | DSA-4142-1 |
| Debian 8 | uwsgi | 2.0.7-1+deb8u2 | DSA-4142-1 |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | uwsgi | 2.0.15-10.2ubuntu2.1 | — |
| Ubuntu 16.04 LTS | uwsgi | 2.0.12-5ubuntu3.2 | — |
| Ubuntu 14.04 LTS | uwsgi | 1.9.17.1-5ubuntu0.1 | — |
Alpine
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine v3.7 | uwsgi | 2.0.17-r0 | — |
| Alpine v3.6 | uwsgi | 2.0.17-r0 | — |
| Alpine v3.5 | uwsgi | 2.0.17-r0 | — |
| Alpine v3.4 | uwsgi | 2.0.17-r0 | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
Exploit-DB 1
- uWSGI < 2.0.17 - Directory Traversal EDB-44223 · webapps · Mar 2, 2018 · verified
GitHub 2 repositories
-
qinzhu111/uWSGI-CVE-2018-7490-POC ★ 1 · Jun 14, 2024
-
CyberCTF/vulhub-uwsgi-cve-2018-7490 ★ 0 · Oct 8, 2026
Vulhub uwsgi/CVE-2018-7490: uWSGI PHP Plugin Path Traversal (CVE-2018-7490), run with Isoloom
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Automated scanner template
A ready-made Nuclei template detects this vulnerability automatically. Vulnerabilities with public scanner templates are typically probed across the internet soon after the template appears — exposed systems should be patched first.
- uWSGI PHP Plugin Local File Inclusion http/cves/2018/CVE-2018-7490.yaml
Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | uwsgi | < 2.0.17 | 2.0.17 | GHSA-h2vm-c85r-5vh5 |
Advisories 1
- DSA-4142-1 uwsgi - security update Debian Security (DSA / DLA) · Mar 9, 2026
References
- 44223 exploit
- DSA-4142 vendor-advisory
- https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.17.html