Gradle has incorrect permission assignment for symlinked files used in copy or archiving operations

Summary

CVECVE-2023-44387
StatePUBLISHED
AssignerGitHub_M
Source PriorityCVE Program / NVD first with legacy fallback
Published2023-10-05 18:15:12 UTC
Updated2026-10-08 22:17:25 UTC
DescriptionGradle 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.

Risk And Classification

Primary CVSS: v3.1 6.5 MEDIUM from [email protected]

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Problem Types: CWE-732 | CWE-732 CWE-732: Incorrect Permission Assignment for Critical Resource


VersionSourceTypeScoreSeverityVector
3.1[email protected]Primary6.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
3.1[email protected]Secondary3.2LOWCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N
3.1CNADECLARED3.2LOWCVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:C/C:L/I:N/A:N

CVSS v3.1 Breakdown

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Changed
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Application Gradle Gradle All All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Gradle Gradle affected >= 7.6.0, < 7.6.3 Not specified
CNA Gradle Gradle affected < 8.4.0 Not specified

References

ReferenceSourceLinkTags
Release 8.4 · gradle/gradle · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Release Notes
Incorrect permission assignment for symlinked files used in copy or archiving operations · Advisory · gradle/gradle · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Vendor Advisory
October 2023 Gradle Vulnerabilities in NetApp Products | NetApp Product Security af854a3a-2127-422b-91ae-364da2661108 security.netapp.com Third Party Advisory
Merge pull request #26584 Backport of fixes to 7.6.3 · gradle/gradle@3b40619 · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Patch
Release 7.6.3 · gradle/gradle · GitHub af854a3a-2127-422b-91ae-364da2661108 github.com Release Notes
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report