// For flags

CVE-2024-25998

PHOENIX CONTACT: Command injection in the OCPP Service

Severity Score

7.3
*CVSS v3.1

Exploit Likelihood

*EPSS

Affected Versions

*CPE

Public Exploits

0
*Multiple Sources

Exploited in Wild

-
*KEV

Decision

Attend
*SSVC
Descriptions

An unauthenticated remote attacker can perform a command injection in the OCPP Service with limited privileges due to improper input validation.

Un atacante remoto no autenticado puede realizar una inyección de comando en el servicio OCPP con privilegios limitados debido a una validación de entrada incorrecta.

This vulnerability allows network-adjacent attackers to execute arbitrary code on affected installations of Phoenix Contact CHARX SEC-3100 devices. Authentication is not required to exploit this vulnerability.
The specific flaw exists within the handling of the location parameter of the UpdateFirmwareRequest command. The issue results from the lack of proper validation of a user-supplied string before using it to execute a system call. An attacker can leverage this vulnerability to execute code in the context of the charx-oa user.

*Credits: Chris Anastasio , Fabius Watson
CVSS Scores
Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low
Attack Vector
Adjacent
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High
* Common Vulnerability Scoring System
SSVC
  • Decision:Attend
Exploitation
None
Automatable
Yes
Tech. Impact
Total
* Organization's Worst-case Scenario
Timeline
  • 2024-02-14 CVE Reserved
  • 2024-03-12 CVE Published
  • 2024-06-24 EPSS Updated
  • 2024-08-01 CVE Updated
  • ---------- Exploited in Wild
  • ---------- KEV Due Date
  • ---------- First Exploit
CWE
  • CWE-20: Improper Input Validation
CAPEC
Affected Vendors, Products, and Versions
Vendor Product Version Other Status
Vendor Product Version Other Status <-- --> Vendor Product Version Other Status
PHOENIX CONTACT
Search vendor "PHOENIX CONTACT"
CHARX SEC-3000
Search vendor "PHOENIX CONTACT" for product "CHARX SEC-3000"
<= 1.5.0
Search vendor "PHOENIX CONTACT" for product "CHARX SEC-3000" and version " <= 1.5.0"
en
Affected
PHOENIX CONTACT
Search vendor "PHOENIX CONTACT"
CHARX SEC-3050
Search vendor "PHOENIX CONTACT" for product "CHARX SEC-3050"
<= 1.5.0
Search vendor "PHOENIX CONTACT" for product "CHARX SEC-3050" and version " <= 1.5.0"
en
Affected
PHOENIX CONTACT
Search vendor "PHOENIX CONTACT"
CHARX SEC-3100
Search vendor "PHOENIX CONTACT" for product "CHARX SEC-3100"
<= 1.5.0
Search vendor "PHOENIX CONTACT" for product "CHARX SEC-3100" and version " <= 1.5.0"
en
Affected
PHOENIX CONTACT
Search vendor "PHOENIX CONTACT"
CHARX SEC-3150
Search vendor "PHOENIX CONTACT" for product "CHARX SEC-3150"
<= 1.5.0
Search vendor "PHOENIX CONTACT" for product "CHARX SEC-3150" and version " <= 1.5.0"
en
Affected