NukeViet: Path Traversal to Arbitrary File Deletion in Edit Comment Function (CVE-2026-54065)
NukeViet versions prior to 4.6.00 contain a path traversal vulnerability in the Edit Comment admin function that allows an authenticated administrator to delete arbitrary files within the application root. By injecting a crafted 'attach' parameter with a specific padding and traversal sequence, an attacker can cause deletion of critical files such as 'config.php', leading to application outage. The vulnerability arises from insufficient validation of the 'attach' parameter before file deletion. A fix has been implemented that validates the file path to ensure it remains within the intended upload directory.
AI Analysis
Technical Summary
The vulnerability in NukeViet's 'modules/comment/admin/edit.php' allows an authenticated administrator to perform path traversal via the 'attach' parameter in the Edit Comment function. The parameter is processed by stripping a fixed-length prefix but does not properly validate the resulting path, enabling storage of traversal sequences like '../../config.php' in the database. When the comment is deleted, the application calls 'nv_deletefile()' on the constructed path, which resolves the real path and only checks that it is within the application root directory (NV_ROOTDIR), not restricting deletion to the uploads directory. This allows deletion of arbitrary files within the root, including critical files such as 'config.php', causing application failure. The issue is fixed by adding 'nv_is_file()' validation to ensure the file path is within the designated upload directory before processing.
Potential Impact
An authenticated administrator can delete any file within the application root directory readable by the web server process. This includes critical configuration files like 'config.php', whose deletion causes immediate application outage and triggers the install wizard, disrupting service availability. The integrity and availability of the application are severely impacted, though confidentiality is not affected.
Mitigation Recommendations
A fix is available that adds validation of the 'attach' parameter using 'nv_is_file()' to ensure the file path resolves within the intended upload directory, rejecting any path traversal attempts. Users should upgrade to NukeViet version 4.6.00 or later where this validation is implemented. Until patched, administrators should avoid editing comments with attachments or intercepting/modifying the 'attach' parameter to prevent exploitation.
NukeViet: Path Traversal to Arbitrary File Deletion in Edit Comment Function (CVE-2026-54065)
Description
NukeViet versions prior to 4.6.00 contain a path traversal vulnerability in the Edit Comment admin function that allows an authenticated administrator to delete arbitrary files within the application root. By injecting a crafted 'attach' parameter with a specific padding and traversal sequence, an attacker can cause deletion of critical files such as 'config.php', leading to application outage. The vulnerability arises from insufficient validation of the 'attach' parameter before file deletion. A fix has been implemented that validates the file path to ensure it remains within the intended upload directory.
CVSS v3.1
Score 8.7high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The vulnerability in NukeViet's 'modules/comment/admin/edit.php' allows an authenticated administrator to perform path traversal via the 'attach' parameter in the Edit Comment function. The parameter is processed by stripping a fixed-length prefix but does not properly validate the resulting path, enabling storage of traversal sequences like '../../config.php' in the database. When the comment is deleted, the application calls 'nv_deletefile()' on the constructed path, which resolves the real path and only checks that it is within the application root directory (NV_ROOTDIR), not restricting deletion to the uploads directory. This allows deletion of arbitrary files within the root, including critical files such as 'config.php', causing application failure. The issue is fixed by adding 'nv_is_file()' validation to ensure the file path is within the designated upload directory before processing.
Potential Impact
An authenticated administrator can delete any file within the application root directory readable by the web server process. This includes critical configuration files like 'config.php', whose deletion causes immediate application outage and triggers the install wizard, disrupting service availability. The integrity and availability of the application are severely impacted, though confidentiality is not affected.
Mitigation Recommendations
A fix is available that adds validation of the 'attach' parameter using 'nv_is_file()' to ensure the file path resolves within the intended upload directory, rejecting any path traversal attempts. Users should upgrade to NukeViet version 4.6.00 or later where this validation is implemented. Until patched, administrators should avoid editing comments with attachments or intercepting/modifying the 'attach' parameter to prevent exploitation.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-c9xg-64p9-f2jj
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-54065"]
- Ecosystems
- ["Packagist"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a55ffb668715ace432fac20
Added to database: 07/14/2026, 09:21:58 UTC
Last enriched: 07/14/2026, 09:58:35 UTC
Last updated: 07/31/2026, 12:27:30 UTC
Views: 10
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.