Privilege escalation in gradle



Risk Low
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2025-27148
CWE-ID CWE-378
Exploitation vector Local
Public exploit N/A
Vulnerable software
gradle
Other software / Other software solutions

Vendor Gradle

Security Bulletin

This security bulletin contains one low risk vulnerability.

1) Creation of Temporary File With Insecure Permissions

EUVDB-ID: #VU106023

Risk: Low

CVSSv4.0: 5.9 [CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Clear]

CVE-ID: CVE-2025-27148

CWE-ID: CWE-378 - Creation of Temporary File With Insecure Permissions

Exploit availability: No

Description

The vulnerability allows a local user to escalate privileges on the system.

The vulnerability exists due to the system temporary directory can be created with open permissions. A local user can gain elevated privileges on the target system.

Mitigation

Install updates from vendor's website.

Vulnerable software versions

gradle: 8.12.0

CPE2.3 External links

https://en.wikipedia.org/wiki/Fstab#Options_common_to_all_filesystems
https://en.wikipedia.org/wiki/Sticky_bit
https://github.com/gradle/gradle/pull/32025
https://github.com/gradle/gradle/security/advisories/GHSA-465q-w4mf-4f4r
https://github.com/gradle/gradle/security/advisories/GHSA-89qm-pxvm-p336
https://github.com/gradle/native-platform/blob/574dfe8d9fb546c990436468d617ab81c140871d/native-platform/src/main/java/net/rubygrapefruit/platform/internal/NativeLibraryLocator.java#L68-L78
https://github.com/gradle/native-platform/pull/353
https://github.com/gradle/native-platform/security/advisories/GHSA-2xxp-vw2f-p3x8


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###