← Vulnerability feed

Vulnerability record · CVE-2018-7490 · published 26 February 2018

CVE-2018-7490: uWSGI --php-docroot check bypass allows directory traversal

Unbit · Uwsgi

uWSGI before 2.0.17 mishandles a DOCUMENT_ROOT check when the --php-docroot option is used, permitting directory traversal. The flaw is a path traversal (CWE-22) that exposes files outside the intended PHP document root. It matters because the affected option is used to serve PHP content, and the record gives no indication that exploitation requires credentials.

7.5 CVSS 3.0 High EPSS 69% · top 0.7% CWE-22 · Path traversal
7.5CVSS 3.0 base score, v2 5.0
69%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
6References
17 Jun 2026Last modified by NVD

Description

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

CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 19 September 2026. Confidence: medium.

high priorityHigh CVSS (7.5) with no authentication required, public exploit code, and very high EPSS, though not listed in KEV.

What it is

uWSGI before 2.0.17 mishandles a DOCUMENT_ROOT check when the --php-docroot option is used, permitting directory traversal. The flaw is a path traversal (CWE-22) that exposes files outside the intended PHP document root. It matters because the affected option is used to serve PHP content, and the record gives no indication that exploitation requires credentials.

Impact

An attacker can read files outside the configured PHP document root, gaining access to data the server intended to keep out of reach. The CVSS vector rates confidentiality impact as high with no integrity or availability impact.

Attack surface

Reachable over the network via HTTP requests to a uWSGI instance running with the --php-docroot option; the CVSS vector shows no privileges required and no user interaction. The description does not state whether the affected option is enabled by default, so exposure depends on that configuration.

Exploitation

CISA KEV does not list this CVE, but EPSS is high at roughly 0.69 (99th percentile), and a public Exploit-DB entry (44223) exists, indicating exploit code is available. The record does not confirm observed in-the-wild exploitation.

What to do

  • Upgrade uWSGI to 2.0.17 or later, which the vendor changelog identifies as the fix.
  • Apply the Debian security update DSA-4142 if running the distribution package.
  • If upgrading is not immediately possible, disable or avoid the --php-docroot option and restrict filesystem permissions for the uWSGI process.
  • Limit network access to uWSGI/PHP endpoints to trusted clients until patched.

Detection

  • Inspect HTTP request logs for traversal sequences such as ../ or encoded variants targeting PHP-handled paths.
  • Monitor for requests returning files outside the configured document root, especially configuration or credential files.
  • Alert on uWSGI processes running with --php-docroot and correlate with unusual file-read patterns.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2018-7490 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

10.0CVE-2025-32433Erlang/OTP SSH server missing authentication allows remote code executionErlang/OTP SSH servers before OTP-27.3.3, OTP-26.2.5.11 and OTP-25.3.2.20 mishandle SSH protocol messages, letting an unauthenticated attacker execut…KEVEPSS 99%analysed10.0CVE-2025-24201Apple WebKit out-of-bounds write allows sandbox escapeCVE-2025-24201 is an out-of-bounds write in Apple's WebKit that was addressed with improved checks. Maliciously crafted web content may break out of …KEVEPSS 3.8%analysed10.0CVE-2021-44228Apache Log4j2 JNDI lookup remote code executionApache Log4j2 versions 2.0-beta9 through 2.15.0 (excluding 2.12.2, 2.12.3, and 2.3.1) do not protect against attacker-controlled LDAP and other JNDI …KEVEPSS 100%analysed9.8CVE-2026-24061GNU Inetutils telnetd argument injection allows remote auth bypasstelnetd in GNU Inetutils through 2.7 fails to sanitize the USER environment variable, so a value such as "-f root" is passed as an argument to login …KEVEPSS 99%analysed9.8CVE-2025-39682Linux kernel TLS zero-length record handling flaw on rx_listThe Linux kernel TLS receive path mishandles zero-length records that arrive from the rx_list, breaking the assumption that a record type change cann…KEVEPSS 2.9%analysed9.8CVE-2025-24813Apache Tomcat Default Servlet path equivalence enables RCE and file disclosureApache Tomcat mishandles path equivalence for names containing an internal dot, letting a remote unauthenticated attacker write files through the Def…KEVEPSS 100%analysed9.8CVE-2024-9680Mozilla Firefox and Thunderbird use-after-free in Animation timelinesA use-after-free flaw in Animation timelines allows an attacker to execute code in the content process of Firefox and Thunderbird. Mozilla reports ex…KEVEPSS 23%analysed9.8CVE-2023-46604Apache ActiveMQ OpenWire deserialization remote code executionThe Java OpenWire protocol marshaller in Apache ActiveMQ deserializes untrusted data, letting an attacker manipulate serialized class types so the br…KEVEPSS 100%analysed

Source: NIST National Vulnerability Database (record CVE-2018-7490), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.