CVE-2026-45233: HTMLy CMS Path Traversal Vulnerability (File Relocation)
HTMLy CMS versions up to and including 3.1.1 contain a file manipulation vulnerability affecting authenticated users. An attacker with login credentials can exploit an admin autosave endpoint to move files to unintended locations on the server by crafting requests with path traversal sequences. Since the endpoint fails to properly validate or restrict file paths, an authenticated attacker could relocate sensitive application or configuration files to web-accessible directories or other locations that could lead to information disclosure or system compromise.
Source data · NVD / CISA · public domain
- CVSS
- 3.1 · 8.1 HIGH · CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
- Weaknesses (CWE)
- CWE-22
- Affected products
- 0 configuration(s)
- Published / Modified
- 2026-06-25 / 2026-07-14
NVD description (verbatim)
HTMLy CMS through 3.1.1 contains a path traversal vulnerability that allows low-privileged authenticated attackers to relocate arbitrary files by supplying directory traversal sequences in the oldfile parameter at the admin autosave endpoint. Attackers can pass unsanitized traversal sequences directly to file_exists() and rename() functions in admin.php without canonicalization or directory boundary enforcement to cause unintended relocation of any file writable by the web server process to an attacker-specified draft location.
2 reference(s) · View on NVD →
SEC.co analysis · AI-assisted, reviewed against source
Technical summary
The vulnerability resides in admin.php's autosave endpoint, where the 'oldfile' parameter is passed directly to file_exists() and rename() functions without path canonicalization, validation, or directory boundary checks. An authenticated attacker can supply directory traversal sequences (e.g., '../../../') to escape intended storage boundaries and move arbitrary files writable by the web server process to attacker-controlled draft locations. The absence of realpath() normalization or base-path enforcement allows traversal of the entire filesystem scope accessible to the web process, enabling arbitrary file relocation rather than just deletion or overwrite.
Business impact
A compromised account—whether from credential stuffing, phishing, or insider threat—becomes a vector for file manipulation attacks. An attacker could relocate configuration files containing database credentials, move PHP files into web roots, or displace critical application files, leading to authentication bypass, data exfiltration, or denial of service. For organizations running HTMLy as a content platform or documentation hub, this creates a path to secondary compromise and lateral movement, particularly if the web server process runs with elevated permissions.
Affected systems
HTMLy CMS through version 3.1.1 is affected. The vulnerability requires authentication, so only installations with user accounts are directly exploitable. Exposure is highest in multi-user or open-registration deployments where account compromise is a realistic threat model.
Exploitability
Exploitation requires valid authentication credentials and low privilege level—no admin role is mandated by the description. The attack surface is the admin autosave endpoint, which is accessible over the network without special network positioning (CVSS AV:N). No user interaction is needed; the attacker directly submits a malicious request. The relatively low barrier to entry, combined with the absence of input validation, makes this a practical risk for any deployment where user account security cannot be guaranteed.
Remediation
Upgrade HTMLy CMS to a patched version released after 3.1.1. Verify against the vendor's official advisory for the exact minimum version that addresses this flaw. Until patching is possible, restrict access to the admin panel using firewall rules, WAF policies, or authentication proxies to limit who can reach the vulnerable endpoint. Review access logs and user account activity for signs of credential compromise or suspicious file operations.
Patch guidance
Consult the official HTMLy project repository or security advisories for a release version newer than 3.1.1 that includes a fix. The patch should include input validation and path canonicalization on the oldfile parameter—verify that any release notes mention path traversal or CWE-22 fixes before deploying. Test the patched version in a non-production environment to confirm autosave functionality remains intact and that file paths are properly restricted to their intended storage directories.
Detection guidance
Monitor admin.php autosave endpoint requests for URL-encoded or literal traversal sequences ('../', '..\', unicode variants) in POST or GET parameters, particularly the oldfile field. Log file operations initiated by the web server process—sudden moves or renames of files outside expected directories merit investigation. Track failed file_exists() or rename() calls that reference paths outside the CMS installation root. Correlate suspicious file operations with authenticated user sessions to identify compromised accounts.
Why prioritize this
This vulnerability scores HIGH (CVSS 8.1) due to high integrity and availability impact combined with network accessibility and low attack complexity. Although authentication is required, the low privilege threshold and lack of admin role requirement broaden the threat model. File manipulation can cascade into more severe attacks (code execution via relocated PHP, credential theft via moved config files). Organizations should prioritize this after critical remote code execution flaws but before low-impact vulnerabilities.
Risk score, explained
The CVSS 3.1 score of 8.1 (HIGH) reflects: (1) Network-accessible admin endpoint (AV:N), (2) Low attack complexity with no special conditions needed (AC:L), (3) Requirement for low-privilege authentication (PR:L), (4) No user interaction (UI:N), (5) Scope unchanged to the vulnerable component (S:U), (6) No confidentiality impact from the file move itself (C:N), (7) High integrity impact from uncontrolled file relocation (I:H), and (8) High availability impact from potential file displacement or system disruption (A:H). The score appropriately penalizes the combination of persistent access risk and broad exploitation surface.
Frequently asked questions
Does this vulnerability allow remote code execution?
Not directly. The vulnerability allows an authenticated attacker to move files. However, if a relocatable file is a PHP script and is moved into a web-accessible directory, or if a configuration file is displaced causing authentication bypass, secondary code execution becomes possible. The primary impact is file manipulation; code execution is a downstream risk dependent on file contents and server configuration.
Can an unauthenticated attacker exploit this?
No. The vulnerability requires valid login credentials. However, if credentials are compromised through phishing, credential stuffing, or reused passwords, an external attacker can leverage this flaw. Organizations should enforce strong password policies, multi-factor authentication, and monitor for account compromise.
What file types are at highest risk?
Configuration files (containing credentials, database connection strings), authentication/session files, and PHP scripts are highest-risk. Any file writable by the web server process and parseable as code or sensitive data becomes a target. The risk depends on what files the CMS stores and whether the attacker knows their current locations.
How do I know if our system was compromised via this vulnerability?
Look for unexpected file moves or renames in access logs around the admin.php endpoint, especially those with traversal sequences. Check if critical files (config, database files, authentication modules) have been relocated or are missing. Audit user account login history for unknown sessions or credential use from unusual locations. A full file integrity check comparing current state to a known-good baseline is advisable if compromise is suspected.
This analysis is provided for informational purposes and reflects the vulnerability details as published. Organizations must verify patch availability and compatibility against official vendor advisories before deployment. Testing in non-production environments is required. SEC.co makes no warranty regarding the completeness or accuracy of this analysis; consult official HTMLy project resources and your security team for definitive guidance. Exploitation of vulnerabilities without authorization is illegal. Source: NVD (public-domain), retrieved 2026-08-03. Analysis generated by SEC.co (claude-haiku-4-5).
Weaknesses (CWE)
Related vulnerabilities
- CVE-2016-20076HIGHWordPress Simple-Backup 2.7.11 Unauthenticated File Access & Deletion Vulnerability
- CVE-2016-20081HIGHHB Audio Gallery Lite Path Traversal Vulnerability – Unauthenticated File Download
- CVE-2017-20248HIGHApptha Slider Gallery Path Traversal Vulnerability
- CVE-2017-20250HIGHMac Photo Gallery 3.0 Path Traversal File Download Vulnerability
- CVE-2018-25408HIGHOpen ISES Project Path Traversal Vulnerability (High Severity)
- CVE-2024-32729HIGHPath Traversal in QuantumCloud Conversational Forms for ChatBot (CVSS 7.5)
- CVE-2024-40646HIGHVertex Path Traversal Vulnerability – Remote File Access Risk
- CVE-2025-60223HIGHWPBot Pro Arbitrary File Deletion Vulnerability – HIGH Risk Exploit