cbcvebase.
CVE-2023-50164
published 2023-12-07

CVE-2023-50164: An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be…

PriorityP191critical9.8CVSS 3.1
AVNACLPRNUINSUCHIHAH
ITWEXPLOITVulnCheck KEVInitial access
Exploited in the wild
EPSS
80.82%
99.6th percentile
An attacker can manipulate file upload params to enable paths traversal and under some circumstances this can lead to uploading a malicious file which can be used to perform Remote Code Execution. Users are recommended to upgrade to versions Struts 2.5.33 or Struts 6.3.0.2 or greater to fix this issue.

Affected

4 ranges
VendorProductVersion rangeFixed in
apachestruts>= 2.0.0 < 2.5.332.5.33
apachestruts>= 6.0.0 < 6.3.0.26.3.0.2
apache_software_foundationapache_struts2.0.0 – 2.5.32
apache_software_foundationapache_struts6.0.0 – 6.3.0.1

Detection & IOCsextracted from sources · hover to see the quote

path/upload.action
  • Detect path traversal characters in the filename field of multipart upload requests targeting Apache Struts; the bug bypasses getCanonicalName() allowing traversal payloads to persist in the final filename via getOriginalName().
  • Alert on HTTP requests where a file upload parameter appears twice with differing case (parameter pollution), as the lowercased duplicate can override the internal file name variable to enable exploitation.
  • Watch for oversized upload requests that trigger the 'struts.messages.upload.error.parameter.too.long' error, which may be used to leave temporary files on disk for persistence.
  • ·Exploitation requires the target application to use Apache Struts file upload functionality; not all Struts deployments expose this feature, making exploitation context-dependent.
  • ·Exploiting this vulnerability at scale is significantly more difficult than CVE-2017-5638 due to the lack of straightforward scanning and exploitation capabilities.
  • ·Struts is often a deep-embedded dependency not present in default locations, limiting the effectiveness of traditional vulnerability scanners in detecting affected instances.

CVSS provenance

nvdv3.19.8CRITICALCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
vulncheck9.8CRITICAL
vendor_cisco9.8CRITICAL
vendor_oracle9.8CRITICAL
vendor_redhat9.8CRITICAL
CVEs like this are exactly what “Exploited This Week” covers.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.