cve.bz

CVE-2023-50164 apache struts

9.8 criticalEPSS 81%Fix available

Critical (9.8) in apache struts. EPSS 81% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.struts:struts2-core 2.5.33, 6.3.0.2.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
81% (unchanged from 81% a week ago; 81% 30 days ago) estimated probability of exploitation activity in the next 30 days; 100th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: yes · Technical impact: total, assessed 2024-12-16. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-552 Files or Directories Accessible to External Parties
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2023-50164 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2023-50164?via=ask-ai-copy and https://cve.bz/cve/CVE-2023-50164?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2023-50164 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Apache Software Foundation Apache Strutsfrom 2.0.0 through 2.5.32
Apache Software Foundation Apache Strutsfrom 6.0.0 through 6.3.0.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-2j39-qcjm-428wMavenorg.apache.struts:struts2-core>=2.0.0 <2.5.332.5.33
GHSA-2j39-qcjm-428wMavenorg.apache.struts:struts2-core>=6.0.0 <6.3.0.26.3.0.2

Red Hat

Red Hat rates this Critical.

ProductPackageStateAdvisory
A-MQ Clients 2org.apache.struts-struts-coreNot affected
Migration Toolkit for Applications 6org.apache.struts-struts-coreNot affected
Migration Toolkit for Runtimesorg.apache.struts-struts-coreNot affected
OpenShift Serverlessorg.apache.struts-struts-coreNot affected
Red Hat AMQ Broker 7org.apache.struts-struts-coreNot affected
Red Hat build of Apache Camel for Spring Boot 3org.apache.struts-struts-coreNot affected
Red Hat build of Debezium 2org.apache.struts-struts-coreNot affected
Red Hat Build of Keycloakorg.apache.struts-struts-coreNot affected
Red Hat build of OptaPlanner 8org.apache.struts-struts-coreNot affected
Red Hat build of Quarkusstruts-coreNot affected
Red Hat Data Grid 8org.apache.struts-struts-coreNot affected
Red Hat Decision Manager 7org.apache.struts-struts-coreNot affected
Red Hat Fuse 7org.apache.struts-struts-coreNot affected
Red Hat Integration Camel K 1org.apache.struts-struts-coreNot affected
Red Hat Integration Camel Quarkus 2org.apache.struts-struts-coreNot affected
Red Hat JBoss Data Grid 7org.apache.struts-struts-coreNot affected
Red Hat JBoss Enterprise Application Platform 6org.apache.struts-struts-coreNot affected
Red Hat JBoss Enterprise Application Platform 6org.keycloak-keycloak-parentNot affected
Red Hat JBoss Enterprise Application Platform 7struts-coreNot affected
Red Hat JBoss Enterprise Application Platform 8struts-coreNot affected
9 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2023-50164.

Detection rules

Ways to detect this CVE, not exploit code: the nuclei template that checks a system for it, and the Suricata and Snort rules that name it. A rule set may ship a rule turned off, so check yours by its sid.

  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Struts2 uploadFileName Directory Traversal Attempt (CVE-2023-50164) M1 sid 2049667
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Struts2 uploadFileName Directory Traversal Attempt (CVE-2023-50164) M2 sid 2049668
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Struts2 Possible uploadFileName Directory Traversal Attempt (CVE-2023-50164) - uploadFileName Parameter M1 sid 2049669
  • Emerging Threats Open ET WEB_SPECIFIC_APPS Apache Struts2 Possible uploadFileName Directory Traversal Attempt (CVE-2023-50164) - uploadFileName Parameter M2 sid 2049670

Attack patterns (CAPEC)

  • CAPEC-150 Collect Data from Common Resource Locations Severity: Medium
  • CAPEC-639 Probe System Files Severity: Medium

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON