#VU64863 OS Command Injection in Rack


Published: 2022-07-02

Vulnerability identifier: #VU64863

Vulnerability risk: High

CVSSv3.1: 8.5 [CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C]

CVE-ID: CVE-2022-30123

CWE-ID: CWE-78

Exploitation vector: Network

Exploit availability: No

Vulnerable software:
Rack
Web applications / Modules and components for CMS

Vendor: Rack

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 handling input passed via Rack's Lint middleware and CommonLogger middleware. A remote unauthenticated attacker can pass specially crafted data 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.

Mitigation
Install updates from vendor's website.

Vulnerable software versions

Rack: 2.1.0 - 2.1.4, 2.2.0 - 2.2.3, 1.6 - 1.6.13, 2.0 - 2.0.9, 1.5 - 1.5.5, 1.4 - 1.4.7, 1.3 - 1.3.10, 1.2 - 1.2.8, 1.1 - 1.1.6, 1.0 - 1.0.1, 0.9 - 0.9.1


External links
http://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2022-30123.yml
http://github.com/rack/rack/commit/b426cc224908ec6ed6eb8729325392b048215d88


Q & A

Can this vulnerability be exploited remotely?

Yes. This vulnerability can be exploited by a remote non-authenticated attacker via the Internet.

Is there known malware, which exploits this vulnerability?

No. We are not aware of malware exploiting this vulnerability.


Latest bulletins with this vulnerability