OS Command Injection in ruby-git - CVE-2022-25648

 

OS Command Injection in ruby-git - CVE-2022-25648

Published: November 18, 2022


Vulnerability identifier: #VU69430
CSH Severity: High
CVSS v4: 9.3 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N]
CVE-ID: CVE-2022-25648
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 calling the fetch(remote = 'origin', opts = {}) function. A remote unauthenticated attacker can pass specially crafted data to the application and execute arbitrary OS commands via git argument.

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


Affected software

ruby-git
Red Hat Satellite
Fedora
rubygem-git

How to mitigate CVE-2022-25648

Install updates from vendor's website.

ruby-git - update to 1.11.0
rubygem-git - addressed in versions 1.3.0-2.el7, 1.11.0-1.el8, 1.11.0-1.fc34, 1.11.0-1.fc35, 1.11.0-1.fc36

External References

Related Security Bulletins