Zero-day vulnerability in acme.sh

OS Command Injection
CVE-2023-38198

The vulnerability was exploited through the Chinese intermediary HiCA who claims to be compromised.

Vulnerability details

Advisory: SB2023062017 - Remote code execution in acme.sh

Vulnerable component: acme.sh

CVE-ID: CVE-2023-38198

CVSSv3 score: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:H/RL:O/RC:C

CWE-ID: CWE-78 - Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

Description:

The vulnerability allows a remote attacker to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation when parsing certificates. A remote attacker can pass specially crafted data to the application and execute arbitrary OS commands on the target system.

Note, exploitation of this vulnerability has been observed in the wild by compromised HiCA servers.