OS command injection in Gradle



Published: 2021-07-21 | Updated: 2023-05-15
Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2021-32751
CWE-ID CWE-78
Exploitation vector Local
Public exploit N/A
Vulnerable software
Subscribe
gradle
Other software / Other software solutions

Vendor

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) OS Command Injection

EUVDB-ID: #VU76159

Risk: Low

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

CVE-ID: CVE-2021-32751

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

Exploit availability: No

Description

The vulnerability allows a local user to execute arbitrary shell commands on the target system.

The vulnerability exists due to improper input validation. A local user who can modify environment variables is able to execute arbitrary OS commands when executing the "gradlew build" command or start scripts.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

gradle: before 7.2.0

External links

http://github.com/gradle/gradle/security/advisories/GHSA-6j2p-252f-7mw8
http://mywiki.wooledge.org/BashFAQ/048
http://medium.com/dot-debug/the-perils-of-bash-eval-cc5f9e309cae


Q & A

Can this vulnerability be exploited remotely?

No. This vulnerability can be exploited locally. The attacker should have authentication credentials and successfully authenticate on the system.

Is there known malware, which exploits this vulnerability?

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



###SIDEBAR###