Skip to main content

NukeViet CMS EUVDEUVD-2026-131726

| CVE-2026-54065 HIGH
Path Traversal (CWE-22)
2026-07-13 https://github.com/nukeviet/nukeviet GHSA-c9xg-64p9-f2jj
8.7
CVSS 3.1 · Vendor: https://github.com/nukeviet/nukeviet
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as admin
  2. Delivery
    Open comment Edit form
  3. Exploit
    Inject padded '../../config.php' attach payload
  4. Execution
    Save traversal path to database
  5. Persist
    Delete comment to invoke nv_deletefile()
  6. Impact
    Arbitrary file deleted, site outage

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Requires an authenticated NukeViet administrator account with access to the Comment Management (Admin → Comment) module; per the CVSS vector this is PR:H (authenticated). The concrete prerequisite is the ability to submit the comment Edit POST request with a controlled 'attach' parameter, and then to delete that same comment to trigger nv_deletefile(). The payload must be padded so its length matches the stripped upload-URL prefix (e.g. 26 characters for '/nukeviet/uploads/comment/'), which varies with the site's base URL and module name. Limiting factors: administrative privilege is mandatory (no anonymous exploitation), no user interaction by a victim is needed, and the target file must be readable/deletable by the web-server process and located within NV_ROOTDIR. Affects only NukeViet versions before 4.6.00.

Impact

This is a genuine but access-gated risk. The advisory CVSS 3.1 vector (AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:H, 8.7) reflects easy, reliable exploitation once you hold administrator credentials - PR:H is the decisive limiter, so this is not an anonymous internet-facing crisis but a post-authentication integrity/availability problem. No EPSS score, KEV listing, or SSVC decision data was supplied; absence of KEV plus the admin prerequisite argues against widespread opportunistic exploitation. The main real-world scenarios are a rogue/compromised admin account, credential theft, or chaining from another privilege-escalation bug. I differ modestly from the advisory on scope: escaping the uploads sandbox into the app root is arguably a scope change, but all impact stays within the single web application's security authority, so S:U is also defensible (which would lower the numeric score). Overall priority: medium - patch promptly, but the admin requirement means it is not a drop-everything emergency for well-controlled admin access.

Exploit ScenarioDerived

A user who has obtained NukeViet administrator access (via phishing, credential reuse, or a chained privilege escalation) opens the comment Edit form, intercepts the POST, and sets attach to 26 padding characters plus '../../config.php'. After saving and then deleting that comment, config.php is removed from the application root, taking the site offline and exposing the reinstall wizard. The GHSA advisory documents a complete step-by-step reproduction.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.8% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jul 13, 2026

Arbitrary file deletion in NukeViet CMS (versions before 4.6.00) allows an authenticated administrator to permanently delete any file within the web application root via a path-traversal payload in the comment Edit function. By padding the POST 'attach' parameter with exactly 26 filler characters followed by '../../<target>', an attacker survives the naive substr() prefix-stripping and stores a traversal path in the database; deleting the comment then removes the referenced file (e.g. config.php), forcing the site into the install wizard and causing a full outage. No public exploit identified at time of analysis, though the GitHub Security Advisory (GHSA-c9xg-64p9-f2jj) includes a full working reproduction.

RemediationAI

Upgrade to NukeViet 4.6.00 or later, which adds nv_is_file() validation (realpath plus regex) to confirm the attach value resolves inside the intended uploads directory before it is stored; this is the primary and complete fix (Vendor-released patch: 4.6.00). See https://github.com/nukeviet/nukeviet/security/advisories/GHSA-c9xg-64p9-f2jj. If you cannot upgrade immediately, restrict the comment administration function to trusted admins only and audit/limit the number of accounts holding comment-management privileges, since exploitation requires an authenticated admin; additionally, tighten filesystem permissions so the web-server process cannot delete critical files such as config.php (e.g. make config.php read-only to the web user), which prevents the destructive outcome at the cost of blocking legitimate in-app config rewrites. Monitor for unexpected comment edits/deletions and for the appearance of the install wizard, which indicates config.php loss.

Affected VersionsENISA

NukeViet < 4.5.09

Affected Packages

composer nukeviet/nukeviet fix: 4.6.00
euvd nukeviet fix: 4.5.09

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 2 packages in composer, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

NukeViet is an open-source PHP/MySQL CMS. The flaw (CWE-22, Improper Limitation of a Pathname to a Restricted Directory) lives in modules/comment/admin/edit.php. Attachment URLs are stored by stripping the known upload-URL prefix with substr(input, strlen(NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/')) - a fixed-length cut (e.g. 26 chars for '/nukeviet/uploads/comment/') rather than validation of the resolved path. Because the strip is purely positional, an attacker prepends dummy characters equal to that prefix length so their real traversal sequence lands intact in the database. The sink is nv_deletefile() in del.php, which resolves the path with realpath() but only checks containment within NV_ROOTDIR - the whole installation - instead of restricting to the uploads directory, so any web-server-writable file under the app root can be deleted. The fix adds nv_is_file() validation (realpath + regex) confirming the target resolves inside the intended upload directory before processing.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (https://github.com/nukeviet/nukeviet) PRIMARY 8.7 HIGH
AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:H
vuln.today AI 6.5 MEDIUM

Admin login required so PR:H; network-reachable, deterministic payload gives AV:N/AC:L; deletion harms integrity and availability but not confidentiality, and impact stays within the app's authority so S:U.

3.1 AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:H/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/nukeviet/nukeviet).

CVSS VectorVendor: https://github.com/nukeviet/nukeviet

Attack Vector
Network
Attack Complexity
Low
Privileges Required
High
User Interaction
None
Scope
Changed
Confidentiality
None
Integrity
High
Availability
High

DescriptionCVE.org

Summary

Path Traversal to Arbitrary File Deletion in the Edit Comment admin function. An authenticated administrator can delete arbitrary files within the application root (e.g., config.php) by injecting a crafted attach parameter, rendering the application inoperable.

Affected Component

modules/comment/admin/edit.php

Root Cause

In the vulnerable version, the attach parameter received via HTTP POST was not validated before being processed:

php
// Vulnerable code (before fix)
$attach = $nv_Request->get_string('attach', 'post', '', true);
if (!empty($attach)) {
    $attach = substr($attach, strlen(NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/'));
}

substr() strips the first N characters (equal to the length of the upload URL prefix, e.g. 26 chars for /nukeviet/uploads/comment/). By padding the payload with exactly 26 arbitrary characters followed by a path traversal sequence, an attacker can store ../../<target> directly into the database.

When the comment is subsequently deleted, del.php reads attach from the database and calls:

php
nv_deletefile(NV_UPLOADS_REAL_DIR . '/' . $module_upload . '/' . $row['attach']);

nv_deletefile() resolves the path via realpath() and only verifies the result is within NV_ROOTDIR - it does not restrict deletion to the uploads directory - allowing deletion of any file in the installation root.

Steps to Reproduce

  1. Log in as an administrator and navigate to Admin → Comment Management.
  2. Select any comment and open the Edit form.
  3. Intercept the POST request and set the attach parameter to:
aaaaaaaaaaaaaaaaaaaaaaaaaa../../config.php

*(26 padding characters + traversal path)*

  1. Submit the request. The value ../../config.php is now stored in the database.
  2. Delete the comment. config.php is deleted from the application root.
  3. The application immediately redirects to the install wizard, confirming the file has been removed.

Impact

  • Any file readable by the web server process within NV_ROOTDIR can be permanently deleted.
  • Deleting config.php causes a full application outage and exposes the install wizard.

Severity

CVSS v3.1 Base Score: 8.7 (High)

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:N/I:H/A:H
MetricValue
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredHigh (Admin required)
User InteractionNone
ScopeChanged
ConfidentialityNone
IntegrityHigh
AvailabilityHigh

Fix

Added nv_is_file() validation before processing the attach value. This function uses realpath() and a regex check to ensure the file resolves to a path within the intended upload directory, rejecting any traversal attempts.

php
// Fixed code
$attach = $nv_Request->get_string('attach', 'post', '');
if (!empty($attach) and nv_is_file($attach, NV_UPLOADS_DIR . '/' . $module_upload)) {
    $attach = substr($attach, strlen(NV_BASE_SITEURL . NV_UPLOADS_DIR . '/' . $module_upload . '/'));
} else {
    $attach = '';
}

Executive ViewAI

Why It Matters

NukeViet CMS versions prior to 4.6.00 contain an arbitrary file deletion vulnerability allowing authenticated administrators to permanently remove critical application files, including configuration data essential to site operation. A single malicious or compromised administrator action triggers complete site unavailability and forces systems into maintenance mode. Organizations running affected versions face significant operational disruption and insider-threat risk that should be addressed immediately.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: restrict administrative access to trusted personnel only; implement file integrity monitoring to detect unauthorized file deletions; maintain frequent validated backups of all application and configuration files; consider disabling the comment functionality if operationally unnecessary; monitor and log all CMS administrator activities for suspicious file operations.

Threat Intelligence Overview

EPSS Score
0.8%
Top 42% exploitable
Prevalence
Low
niche open-source CMS, mainly Vietnamese/regional deployment footprint
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.8%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

Priority Score

45
Low Medium High Critical
KEV: 0
EPSS: +1
CVSS: +44
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy