CVE-2026-79318

Published Sep 21, 2026 CVSS 3.1 · 6.5 Medium EPSS < 1% KEV · Not listed
Description
web2py 3.2.2-stable (commit a7330a2bf21219fa77860b6665de927dd4f98e6d) is vulnerable to Directory Traversal in read_file()/write_file() (applications/admin/controllers/webservices.py).

Analysis

AI-generated

Technical impact

The vulnerability allows an attacker to manipulate file paths passed to the read_file() and write_file() functions in web2py's admin controllers, enabling the traversal of directory boundaries. An attacker can read arbitrary files from the server and, due to the write_file() endpoint, can place or overwrite files in sensitive locations. This can lead to exposure of confidential data and facilitate further compromise of the system if executable or configuration files are tampered with.

Affected Systems

Any deployment of web2py 3.2.2-stable built from commit a7330a2bf21219fa77860b6665de927dd4f98e6d or equivalent that retains the vulnerable read_file/write_file implementation is affected. No specific supported vendor or product list is available because the vulnerability exists in the open‑source framework itself.

Risk and Exploitability

The directory traversal weakness (CWE‑22) is directly exploitable through crafted HTTP requests to the administrative web services. The CVSS score of 6.5 indicates a moderate severity, and the EPSS score of less than 1 % suggests low current exploitation probability; however, the potential impact remains significant if exposed to an untrusted network. Since the vulnerability is not listed in the CISA KEV catalog and no official fix from a CNA is provided, administrators should proactively upgrade or apply a manual patch to mitigate the risk.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to the latest stable release of web2py, which removes the directory traversal vulnerability in read_file()/write_file()
  • If an upgrade is not possible, modify the affected functions to validate the file path against a hard‑coded base directory, rejecting any path that resolves outside that directory
  • Restrict access to the admin controllers through network controls such as firewall rules or VPN so that only trusted administrators can reach the vulnerable endpoints

Generated by OpenCVE AI on September 22, 2026 at 17:24 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Directory Traversal in web2py read_file/write_file Functions
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 6.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N'}

Type Values Removed Values Added
Title Directory Traversal in web2py read_file/write_file Functions
First Time appeared Web2py
Web2py web2py
Weaknesses CWE-22
Vendors & Products Web2py
Web2py web2py
Type Values Removed Values Added
Description web2py 3.2.2-stable (commit a7330a2bf21219fa77860b6665de927dd4f98e6d) is vulnerable to Directory Traversal in read_file()/write_file() (applications/admin/controllers/webservices.py).
References
Weaknesses
  • CWE-22

    Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 22, 2026, 2:52 PM
Reserved
Aug 25, 2026, 12:00 AM
Status
Deferred
Published
Sep 21, 2026, 8:17 PM
Modified
Sep 22, 2026, 8:00 PM