CVE-2026-94563: NukeViet CMS: Authenticated path traversal to arbitrary file write via S/MIME certificate CN in SMTP settings
NukeViet CMS is a multi Content Management System. From 4.5.00 until 4.6.01, an authenticated settings-module administrator can upload a PKCS#12 S/MIME certificate whose X.509 Subject CN contains path separators and traversal components. The smimeadd handler in admin/settings/smtp.php applies only an at-sign replacement before using the CN in .key, .crt, and .pem paths beneath data/certs. Traversal can select attacker-chosen paths outside data/certs, but writes remain constrained to already-existing writable directories and the permitted extensions. Within that constraint, attacker-controlled PEM data can overwrite certificate assets, including a DKIM private key; when the curl.cainfo PHP directive is empty, the attacker can also replace cacert.pem and undermine outbound TLS verification. This issue is fixed in version 4.6.01.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.6.01
Event History
Frequently Asked Questions
Who can exploit this issue?
An authenticated administrator with access to the settings module is required. The attacker must be able to upload a crafted PKCS#12 S/MIME certificate through the SMTP settings handler.
Are arbitrary files writable anywhere on the server?
No. Path traversal can target locations outside data/certs, but writes are limited to paths in already-existing writable directories and to the .key, .crt, and .pem extensions used by the handler.
What assets are most concerning if the issue is exploited?
An attacker can overwrite certificate-related assets, including a DKIM private key. If the PHP curl.cainfo directive is empty, they may also replace cacert.pem, undermining outbound TLS certificate verification.
What should be done if patching cannot happen immediately?
Restrict settings-module administrator access and prevent untrusted administrators from uploading S/MIME certificates through SMTP settings. Review writable directories and certificate assets with .key, .crt, or .pem extensions for unexpected changes.
Which versions are affected and what version fixes it?
Versions from 4.5.00 until 4.6.01 are affected. The issue is fixed in version 4.6.01.