Packagist
CVE-2026-94563
NukeViet CMS: Authenticated path traversal to arbitrary file write via S/MIME certificate CN in SMTP settings
- Severity
- Medium 5.5
- Published
- 30 Nov 2026
- Last changed
- 30 Nov 2026
- Added to UpHeron
- 30 Nov 2026
- Fixed in
- 4.6.01
- Exploit chance
- 0.4% in the next 30 daysHigher than 29% of CVEs. EPSS by FIRST, 30 Nov 2026
- Weakness
- Path traversal (CWE-22)CWE-73
- Attack
- Over the network · Needs an administrator account · No user action needed
- Attacker can
- Change data · Slow it down
- CVSS vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:L- Also known as
- GHSA-j79f-jrwm-2f2h
- Sources
- OSV.dev and GitHub
Description
When an authenticated non-super administrator (settings-module admin) adds an S/MIME signing certificate via the smimeadd handler (admin/settings/smtp.php:220-296), the on-disk output filename is derived entirely from the certificate's X.509 Subject CN with only str_replace('@','__') applied. Because an X.509 CN may legally contain / and .., an attacker who crafts a self-signed cert with a traversal CN writes attacker-controlled PEM data to an attacker-chosen path (constrained to .key/.crt/.pem extensions, within already-existing writable directories).
This is a distinct, unpatched sink — the write-side analogue of a previously fixed delete-side path-traversal class — in a file the prior fix never touched.
admin/settings/smtp.php smimeadd handler:
- openssl_pkcs12_read + openssl_x509_parse extract the Subject CN (:268).
- The ONLY transform is $email_name = str_replace('@','__', trim(CN)) (:269).
Affected software
| Software | Affected versions |
|---|---|
nukeviet/nukevietPackagist · osv:Packagist:nukeviet/nukeviet |
|
About nukeviet/nukeviet
- Monthly downloads (Packagist)
- 9Packagist, 30 Nov 2026
- Total downloads (Packagist)
- 45Packagist, 30 Nov 2026
Vulnerabilities in nukeviet/nukeviet
- In our list
- 11
- Published in the last 12 months
- 11
- Critical, last 12 months
- 2
- High, last 12 months
- 6
- Known exploited
- 0
- CVE-2026-94599NukeViet CMS: Reflected XSS in news module search via double URL decoding of the q parameterMedium 6.1 30 Nov 2026
- CVE-2026-94598NukeViet CMS: Stored XSS via internal marker injection in iframe srcdoc sanitizationHigh 8.2 30 Nov 2026
- CVE-2026-94597NukeViet CMS: Remote Code Execution via image-upload bypass chain (PHP short-tag detection bypass + double-extension filename)High 7.5 30 Nov 2026
- CVE-2026-94567NukeViet CMS: Stored XSS via internal DTD entities in SVG uploadsCritical 9.3 30 Nov 2026
- CVE-2026-94564NukeViet CMS: Unauthenticated Stored XSS in the Contact Module via HTML Sanitizer BypassHigh 8.2 30 Nov 2026
- CVE-2026-94565NukeViet CMS: Unauthenticated Stored XSS in the Contact ModuleCritical 9.3 30 Nov 2026
References
- CVE.org https://www.cve.org/CVERecord?id=CVE-2026-94563
- GitHub Advisory Database https://github.com/advisories/GHSA-j79f-jrwm-2f2h