Cyber Resilience

CVE-2023-31689

CriticalPublic PoC

Published: 22 May 2023

Published
22 May 2023
Modified
28 January 2025
KEV Added
Patch
CVSS Score v3.1 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS Score 0.0123 79.6th percentile
Risk Priority 20 60% EPSS · 20% KEV · 20% CVSS

Summary

CVE-2023-31689 is a critical-severity Unrestricted Upload of File with Dangerous Type (CWE-434) vulnerability in Wcms Wcms. Its CVSS base score is 9.8 (Critical).

Operationally, ranked in the top 20.4% of CVEs by exploit likelihood; it is not currently listed in the CISA KEV catalog; a public proof-of-concept is referenced.

Deeper analysis

CVE-2023-31689 is an unrestricted file upload vulnerability in Wcms version 0.3.2. The flaw resides in the web application backend component at /wcms/wex/html.php, where the finish and textAreaCode parameters accept crafted input that permits writing arbitrary strings to attacker-chosen filenames, uploading any file type, and placing executable code that can be invoked to trigger command execution. The issue is tracked under CWE-434 and carries a CVSS 3.1 score of 9.8.

Unauthenticated remote attackers can exploit the vulnerability over the network by sending a single malicious request to the affected endpoint. Successful exploitation grants the ability to upload and execute arbitrary scripts, resulting in full compromise of the confidentiality, integrity, and availability of the server.

Public references consist of GitHub issue reports that document the flaw but contain no statements from the maintainer regarding patches or mitigation steps. The associated EPSS score rose from low values to a peak of 0.0585 before receding to the current 0.0123.

EU & UK References

Vulnerability details

In Wcms 0.3.2, an attacker can send a crafted request from a vulnerable web application backend server /wcms/wex/html.php via the finish parameter and the textAreaCode parameter. It can write arbitrary strings into custom file names and upload any files, and…

more

write malicious code to execute scripts to trigger command execution.

CWE(s)

Related Threats

No named actor attribution yet. ATT&CK technique mapping in progress for this CVE.

Affected Assets

wcms
wcms
0.3.2

Mitigating Controls

Likely Mitigating Controls AI

Per-CVE control mapping for this CVE has not run yet; the list below is derived from the weakness types (CWEs) cited in the NVD entry.

addresses: CWE-434

Requiring identifiable owners for portable devices reduces the attack surface for unrestricted uploads of dangerous file types via anonymous media.

addresses: CWE-434

Dangerous file uploads can be detonated in the chamber to determine malice before any production write or execution occurs.

addresses: CWE-434

Prevents unrestricted writing of arbitrary or malicious firmware by keeping hardware write-protect enabled except under tightly controlled manual procedures.

addresses: CWE-434

Scans files from external sources on download/open/execute, blocking unrestricted uploads of dangerous file types.

References