Description
web2py 3.2.2-stable (commit a7330a2bf21219fa77860b6665de927dd4f98e6d) is vulnerable to Directory Traversal in read_file()/write_file() (applications/admin/controllers/webservices.py).
Published: 2026-09-21
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Information disclosure and potential modification via directory traversal in read_file/write_file functions
Action: Upgrade ASAP
AI Analysis

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.

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

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 yet.

History

Thu, 24 Sep 2026 04:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Tue, 22 Sep 2026 17:45:00 +0000

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

Tue, 22 Sep 2026 15:30:00 +0000

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'}


Mon, 21 Sep 2026 22:00:00 +0000

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

Mon, 21 Sep 2026 20:15:00 +0000

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

cve-icon MITRE

Status: PUBLISHED

Assigner: mitre

Published:

Updated: 2026-09-22T14:52:52.043Z

Reserved: 2026-08-25T00:00:00.000Z

Link: CVE-2026-79318

cve-icon Vulnrichment

Updated: 2026-09-22T14:51:41.933Z

cve-icon NVD

Status : Deferred

Published: 2026-09-21T20:17:32.510

Modified: 2026-09-22T20:00:03.713

Link: CVE-2026-79318

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-22T17:30:18Z

Weaknesses
  • CWE-22

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