CVE-2018-7490 uWSGI Directory Traversal vulnerability
Attackers can traverse directories to read arbitrary files when the --php-docroot option is enabled in uWSGI.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2018-7490?
CVE-2018-7490 is a high-severity path traversal vulnerability in Debian Debian Linux, published on 26 Feb 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
uWSGI before 2.0.17 mishandles a DOCUMENT_ROOT check during use of the --php-docroot option, allowing directory traversal.
Weakness: CWE-22
Which versions are affected by CVE-2018-7490?
3 open source packages ship an affected version, including uwsgi and uWSGI. It affects 2 products.
| Package | Affected | Fixed in |
|---|---|---|
uwsgi PyPI | All versions | 2.0.17 |
uwsgi PyPI | All versions | 2.0.17 |
uWSGI PyPI | All versions | 2.0.17 |
Products include Debian Debian Linux, Unbit Uwsgi.
How do I fix CVE-2018-7490?
Upgrade uwsgi to 2.0.17 or later.
Upgrade, and resolve every user-supplied path against an allowed base folder before opening it. More about Path traversal.
Is CVE-2018-7490 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2018-7490 exists.
Public exploit code: 1 Exploit-DB entry, 1 Nuclei template and 2 proofs of concept on GitHub.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2018-7490, DEBIAN-CVE-2018-7490, DSA-4142-1, GHSA-h2vm-c85r-5vh5, PYSEC-2018-78, UBUNTU-CVE-2018-7490.