NukeViet CMS: PHP Object Injection to RCE in extension store via unverified HTTP responseGHSA-9xfw-vx6g-wpmm
HIGHFix: nukeviet/nukeviet@099ec8cGHSA-9xfw-vx6g-wpmm is a high-severity (CVSS 7.5) CWE-295 vulnerability in nukeviet/nukeviet. A fix is available for nukeviet/nukeviet — see the affected versions and patch details below.
Exploitation Status
No confirmed exploitation observed yet
- A successful exploit gives an attacker total control of the affected component, not partial access.
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for GHSA-9xfw-vx6g-wpmm.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
Where this sits among everything scored
Real-World Exposure
nukeviet/nukevietReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Impact
PHP Object Injection leading to Remote Code Execution (RCE).
The extension/store management handlers deserialize an HTTP response body with an unrestricted unserialize() (no allowed_classes restriction), while the bundled HTTP client disables TLS certificate verification by default. Because the certificate of the remote endpoint is not validated, a network / man-in-the-middle (MITM) attacker positioned on the path to the store endpoint (e.g. via DNS spoofing, a hostile/shared network, or a compromised resolver/upstream) can substitute the response body with an attacker-chosen PHP serialized payload.
On deserialization, the payload instantiates an in-tree POP gadget (GuzzleHttp\Cookie\FileCookieJar), whose destructor writes attacker-controlled content to an attacker-chosen path. This allows writing a .php file under the web root and achieving arbitrary code execution as the web-server user (full site and database
compromise, persistence, lateral movement).
Who is impacted: NukeViet 4.x installations. Exploitation requires two preconditions: (1) an attacker able to intercept/alter the server's outbound traffic to the store endpoint, and (2) a privileged administrator (GODADMIN) performing a routine store action (opening the store list, install, update, or detail). The attacker does not need an account on the target.
Patches
Yes. The issue is fixed by two complementary hardening measures:
- Safe deserialization: all
unserialize()calls on internal/remote data now disallow object instantiation via['allowed_classes' => false](exposed as theNV_UNSERIALIZE_SAFEconstant). The affected payloads are arrays/scalars only, so the change is behaviour-preserving. - TLS verification: certificate verification is enabled by default in the HTTP client,
and the URL-check helper now verifies peer/host across its cURL,
get_headersandstream_sockettransports using the shipped CA bundle.
Users should upgrade to the patched release (NukeViet 4.6.xx or later — replace with the exact fixed version/tag).
Workarounds
Users who cannot upgrade immediately can reduce exposure by:
- Enabling TLS certificate verification on the HTTP client (set
sslverify => truefor store/API requests and ensure a valid CA bundle is configured). - Avoiding extension store actions (list/install/update/detail) from administrator sessions while on untrusted or shared networks.
- Restricting/monitoring outbound DNS and network paths from the server to prevent response substitution.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | nukeviet/nukeviet | all versions | 4.6.00composer require nukeviet/nukeviet:^4.6.00 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for nukeviet/nukeviet, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update nukeviet/nukeviet to 4.6.00 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-9xfw-vx6g-wpmm is resolved across your whole dependency graph.
Workarounds
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade.
Frequently Asked Questions
Is GHSA-9xfw-vx6g-wpmm in your dependencies?
Find it across Packagist, including transitive dependencies.