Skip to content
OpenAdvisories
High · 7.5 Scanner template Public exploit CVE-2018-7490 EUVD-2018-0145GHSA-h2vm-c85r-5vh5PYSEC-2018-78

uWSGI Directory Traversal vulnerability

Published Feb 26, 2018 · Updated Aug 5, 2024 · Assigned by mitre

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.

ReleasePackageFixed inAdvisory
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
ReleasePackageFixed inAdvisory
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 —
ReleasePackageFixed inAdvisory
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.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

GitHub 2 repositories

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.

Source: projectdiscovery/nuclei-templates (MIT) — updated daily. Only links are listed.

Affected packages

EcosystemPackageAffectedFixedRecord
PyPI uwsgi < 2.0.17 2.0.17 GHSA-h2vm-c85r-5vh5

Advisories 1

References