OS Command Injection in csmock - CVE-2024-2243

 

OS Command Injection in csmock - CVE-2024-2243

Published: March 21, 2024


Vulnerability identifier: #VU87687
CSH Severity: Medium
CVSS v4: 7.5 [CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-2243
CWE-ID: CWE-78
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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

The vulnerability exists due to improper input validation when processing arguments passed via the "--snyk-code-test-opts" CLI argument. A remote attacker can trick the victim to pass specially crafted options to the application and execute arbitrary OS commands on the target system.

Successful exploitation of this vulnerability may result in complete compromise of vulnerable system.


Affected software

csmock
Fedora
csmock

How to mitigate CVE-2024-2243

Install updates from vendor's website.

csmock - update to 3.5.3
csmock - addressed in versions 3.5.3-1.el7, 3.5.3-1.el8, 3.5.3-1.el9, 3.5.3-1.fc38, 3.5.3-1.fc39, 3.5.3-1.fc40

External References

Related Security Bulletins