3.2low
Gradle has incorrect permission assignment for symlinked files used in copy or archiving operations
- Severity
- 3.2low CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.22% (higher than 13% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- BIT-GRADLE-2023-44387GHSA-43r3-pqhv-f7h9
Description
Gradle is a build tool with a focus on build automation and support for multi-language development. When copying or archiving symlinked files, Gradle resolves them but applies the permissions of the symlink itself instead of the permissions of the linked file to the resulting file. This leads to files having too much permissions given that symlinks usually are world readable and writeable. While it is unlikely this results in a direct vulnerability for the impacted build, it may open up attack vectors depending on where build artifacts end up being copied to or un-archived. In versions 7.6.3, 8.4 and above, Gradle will now properly use the permissions of the file pointed at by the symlink to set permissions of the copied or archived file.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| gradle gradle | >= 7.6.0, < 7.6.3, < 8.4.0, before 7.6.3, from 8.0.0 before 8.4.0 | CVE List, NVD |
| gradle (Bitnami) | before 7.6.3, from 8.0.0 before 8.4.0 | Bitnami Vulnerability Database |
All scores
| GitHub_M | 3.2low CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N |
| NVD | 6.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
Gradle is a build tool with a focus on build automation and support for multi-language development. When copying or archiving symlinked files, Gradle resolves them but applies the permissions of the symlink itself instead of the permissions of the linked file to the resulting file. This leads to files having too much permissions given that symlinks usually are world readable and writeable. While it is unlikely this results in a direct vulnerability for the impacted build, it may open up attack vectors depending on where build artifacts end up being copied to or un-archived. In versions 7.6.3, 8.4 and above, Gradle will now properly use the permissions of the file pointed at by the symlink to set permissions of the copied or archived file.
NVD (es)
Gradle es una herramienta de compilación centrada en la automatización de la compilación y soporte para el desarrollo en varios idiomas. Al copiar o archivar archivos vinculados simbólicamente, Gradle los resuelve pero aplica los permisos del enlace simbólico en lugar de los permisos del archivo vinculado al archivo resultante. Esto lleva a que los archivos tengan demasiados permisos, dado que los enlaces simbólicos suelen ser legibles y escribibles por todo el mundo. Si bien es poco probable que esto resulte en una vulnerabilidad directa para la compilación afectada, puede abrir vectores de ataque dependiendo de dónde terminen copiándose o desarchivándose los artefactos de la compilación. En las versiones 7.6.3, 8.4 y superiores, Gradle ahora usará correctamente los permisos del archivo al que apunta el enlace simbólico para establecer los permisos del archivo copiado o archivado.
References
| https://github.com/gradle/gradle/security/advisories/GHSA-43r3-pqhv-f7h9 | advisory, vendor-advisory | |
| https://github.com/gradle/gradle/commit/3b406191e24d69e7e42dc3f3b5cc50625aa930b7 | fix, patch | |
| https://github.com/gradle/gradle/releases/tag/v7.6.3 | article, release-notes | |
| https://github.com/gradle/gradle/releases/tag/v8.4.0 | article, release-notes | |
| https://security.netapp.com/advisory/ntap-20231110-0006/ | advisory, third-party-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-44387 | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-44387 changed 2026-10-08 | CVE Terms of Use |
| NVD | CVE-2023-44387 changed 2026-10-08 | Public domain |
| Bitnami Vulnerability Database | BIT-GRADLE-2023-44387 changed 2026-09-08 | Apache-2.0 |