Summary
NukeViet CMS allows an SVG file with a script hidden in an internal DTD entity to bypass sanitization and be stored unchanged. The issue is fixed in versions 4.5.12 and 4.6.02.
What happened
Before versions 4.5.12 and 4.6.02, an attacker with access to an SVG upload flow can hide a script element in an internal DTD entity. The checking function loads the document without expanding entities, leaving an entity reference, and the sanitization routine inspects only element nodes. Browsers do expand the entity when the stored file is served as image/svg+xml. In addition, the SVG path returned before the image verification step and preserved the original bytes, so the hidden content reached disk unchanged. The associated weaknesses are CWE-79, CWE-434 and CWE-436.
Why it matters
According to the description, the upload is unauthenticated only when a module's comment feature is open to the All or Guest group and the allowattachcomm option is enabled. Module administrators can also use the file manager. The result is same-origin script execution within an administrator's session. The CVSS 3.1 score is 9.3 (critical severity, assigned by CNA:GitHub_M), with vector CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:H/A:N. CISA's KEV catalog does not list known exploitation, and the source does not state active exploitation.
Affected products and versions
NukeViet (nukeviet): versions < 4.5.12 and versions >= 4.6.00, < 4.6.02.
| Product | Versions | Fixed in |
|---|---|---|
| nukeviet nukeviet | < 4.5.12 | — |
| nukeviet nukeviet | >= 4.6.00, < 4.6.02 | — |
Action recommended by the source
The vendor states the issue is fixed in versions 4.5.12 and 4.6.02. The source does not mention other mitigations.
Sources and references
- https://github.com/nukeviet/nukeviet/security/advisories/GHSA-cp55-wmv6-wxpp — CVE Program
- https://github.com/nukeviet/nukeviet/commit/912823e2581afc23dc39dabdb7d94c718efc78f6 — CVE Program
- https://github.com/nukeviet/nukeviet/commit/b4abcddd3a3a628e251d88571f3968822fab4406 — CVE Program
- https://github.com/nukeviet/nukeviet/blob/4.5.13/CHANGELOG.txt — CVE Program
- https://github.com/nukeviet/nukeviet/releases/tag/4.6.02 — CVE Program
- https://nukeviet.vn/vi/news/Tin-tuc/thong-bao-phat-hanh-nukeviet-4-6-02-858.html — CVE Program
Weaknesses (CWE): CWE-79, CWE-434, CWE-436
Relevant change history
Published
Advisory published.