CVE-2023-35946

File overwrite via unchecked dependency coordinates

Published Jun 30, 2023 · Updated Feb 13, 2025

Path traversal in Gradle Build Tool 7.6.1 and earlier and 8.0 through 8.1.1 allows attackers to overwrite writable files. DefaultPathKeyFileStore joined dependency-coordinate path segments into cache paths without rejecting traversal elements, so crafted coordinates escaped the intended cache directory. Exploitation requires control of a configured dependency repository or the build configuration, and writes are limited to locations permitted to the Gradle process.

CVSS severity6.9
Medium
EPSS probability0.29%
Next 30 days · Sep 16, 2026
Known exploitationUnconfirmed
Based on sourced intelligence
Hinoki checkNot available
Coverage for this vulnerability

See if you're affected

Explore vulnerability checks for your environment with Hinoki.

Book a demo

Summary

What happened

Path traversal in Gradle Build Tool 7.6.1 and earlier and 8.0 through 8.1.1 allows attackers to overwrite writable files. DefaultPathKeyFileStore joined dependency-coordinate path segments into cache paths without rejecting traversal elements, so crafted coordinates escaped the intended cache directory. Exploitation requires control of a configured dependency repository or the build configuration, and writes are limited to locations permitted to the Gradle process.

The record

CVE
CVE-2023-35946
Published
Jun 30, 2023
Updated
Feb 13, 2025
Vendor
Gradle, Inc.
Product
Gradle Build Tool
Classifications
CWE-829, CWE-22, T1195.001
Attack vector
local
Privileges
unauthenticated

Timeline

How it unfolded

  1. Jun 30, 2023CVE publishedPublication date reported by the CVE source.
  2. Feb 13, 2025Record updatedLatest update available in the CVE record.

Exploitability

Present is not the same as exploitable

Compare your product and version with the public record. A matching version still requires validation against your environment.

Is a vulnerable build present?

Compare these published version ranges with your installed build and any vendor patches.

  1. Affected versionversion=< 7.6.2
  2. Affected versionversion=>= 8.0, < 8.2

What conditions does exploitation require?

Attack vectorlocal
Required privilegesunauthenticated

What is affected?

Gradle, Inc. · Gradle Build Toolversion=< 7.6.2; version=>= 8.0, < 8.2

Published CVSS scores

5.5NVDCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N
6.9GitHubCVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:C/C:L/I:H/A:L

CVSS describes severity. EPSS estimates exploitation probability.

Attacks

What attackers are doing with it

Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.

Daily unique IPsNo honeypot observations are available for this CVE in the selected window.

No observations available

Sep 10, 2026Sep 16, 2026
Latest reporting daySep 16, 2026
Latest daily unique IPsUnavailable
Prior 30-day averageUnavailable
SourceShadowserver honeypots (KEV)
Vectorlocal
Privilegesunauthenticated
Known exploitationUnconfirmed
Public exploitUnconfirmed

Weakness, pattern, technique

CWE-829Inclusion of Functionality from Untrusted Control Sphere
CWE-22Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
T1195.001Compromise Software Dependencies

Public exploit references

No public exploit references are available in this record.

Labels summarize the accepted research assessment. They do not indicate a test against your environment.

Technologies

Your stack

See the directory against your own environment.

Your stack

Check the software in your environment

Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.

Book a demo