All vulnerabilities

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).
From the GitHub Advisory Database, CC BY 4.0. Shortened; the full text is there.

Affected software

SoftwareAffected versions
nukeviet/nukevietPackagist · osv:Packagist:nukeviet/nukeviet
  • From 4.5.00 before 4.6.01

About nukeviet/nukeviet

Monthly downloads (Packagist)
9Packagist, 30 Nov 2026
Total downloads (Packagist)
45Packagist, 30 Nov 2026

References