Home / gradle / gradle-build-action / CVE-2023-30853
CVE-2023-30853: is it exploited, and which versions of gradle-build-action are affected and fixed?
CVE-2023-30853 is an information disclosure vulnerability in gradle-build-action. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:08 UTC). Affected: gradle/gradle-build-action before 2.4.2 (GitHub advisory GHSA-h3qr-39j9-4r5v). Fixed in 2.4.2 (GitHub advisory GHSA-h3qr-39j9-4r5v). Severity: High (7.6, CVSS 3.1, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:08 UTC, CVE record November 19, 2026, 07:13 UTC and NVD November 19, 2026, 07:39 UTC.
What is CVE-2023-30853?
Gradle Build Action data written to GitHub Actions Cache may expose secrets
Gradle Build Action allows users to execute a Gradle Build in their GitHub Actions workflow. A vulnerability impacts GitHub workflows using the Gradle Build Action prior to version 2.4.2 that have executed the Gradle Build Tool with the configuration cache enabled, potentially exposing secrets configured for the repository. Secrets configured for GitHub Actions are normally passed to the Gradle Build Tool via environment variables. Due to the way that the Gradle Build Tool records these environment variables, they may be persisted into an entry in the GitHub Actions cache. This data stored in the GitHub Actions cache can be read by a GitHub Actions workflow running in an untrusted context, such as that running for a Pull Request submitted by a developer via a repository fork. This vulnerability was discovered internally through code review, and we have not seen any evidence of it being exploited in the wild. However, in addition to upgrading the Gradle Build Action, affected users should delete any potentially vulnerable cache entries and may choose to rotate any potentially affected secrets. Gradle Build Action v2.4.2 and newer no longer saves this sensitive data for later use, preventing ongoing leakage of secrets via the GitHub Actions Cache. While upgrading to the latest version of the Gradle Build Action will prevent leakage of secrets going forward, additional actions may be required due to current or previous GitHub Actions Cache entries containing this information. Current cache entries will remain vulnerable until they are forcibly deleted or they expire naturally after 7 days of not being used. Potentially vulnerable entries can be easily identified in the GitHub UI by searching for a cache entry with key matching `configuration-cache-*`. The maintainers recommend that users of the Gradle Build Action inspect their list of cache entries and manually delete any that match this pattern. While maintainers have not seen any evidence of this vulnerability being exploited, they recommend cycling any repository secrets if you cannot be certain that these have not been compromised. Compromise could occur if a user runs a GitHub Actions workflow for a pull request attempting to exploit this data. Warning signs to look for in a pull request include: - Making changes to GitHub Actions workflow files in a way that may attempt to read/extract data from the Gradle User Home or `<project-root>/.gradle` directories. - Making changes to Gradle build files or other executable files that may be invoked by a GitHub Actions workflow, in a way that may attempt to read/extract information from these locations. Some workarounds to limit the impact of this vulnerability are available: - If the Gradle project does not opt-in to using the configuration cache, then it is not vulnerable. - If the Gradle project does opt-in to using the configuration-cache by default, then the `--no-configuration-cache` command-line argument can be used to disable this feature in a GitHub Actions workflow. In any case, we recommend that users carefully inspect any pull request before approving the execution of GitHub Actions workflows. It may be prudent to require approval for all PRs from external contributors.
From the CVE record by GitHub_M, last updated January 30, 2025, 17:06 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| gradle | gradle-build-action | < 2.4.2 |
As the CVE record by GitHub_M states it, last updated January 30, 2025. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| GitHub Actions | gradle/gradle-build-action | < 2.4.2 | 2.4.2 | GHSA-h3qr-39j9-4r5v |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated May 1, 2023. Summary: Data written to GitHub Actions Cache may expose secrets.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| gradle | build action | before 2.4.2 | application |
NVD analysis (status Modified), last modified June 17, 2026, 05:55 UTC.
How severe is CVE-2023-30853?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.6 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:H/I:L/A:N | GitHub_M |
| Medium 6.5 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2023-30853 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: no; technical impact: partial (CISA ADP, January 30, 2025)
- EPSS
- 0.29% probability of exploitation activity in the next 30 days, percentile 22.6 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-200 Exposure of Sensitive Information to an Unauthorized Actor
- CWE-312 Cleartext Storage of Sensitive Information
Where are the vendor advisories and references?
- https://github.com/gradle/gradle-build-action/security/advisories/GHSA-h3qr-39j9-4r5v x_refsource_CONFIRM
- https://github.com/gradle/gradle-build-action/releases/tag/v2.4.2 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 18, 2023
- Published
- April 28, 2023, 15:10 UTC
- CVE record updated
- January 30, 2025, 17:06 UTC by GitHub_M
- NVD
- Modified, last modified June 17, 2026, 05:55 UTC
- Last checked
- CVE list November 19, 2026, 07:13 UTC; NVD November 19, 2026, 07:39 UTC; KEV December 3, 2026, 13:08 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2023-30853
Is CVE-2023-30853 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:08 UTC. FIRST's EPSS gives it a 0.29% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of gradle-build-action are affected by CVE-2023-30853?
gradle/gradle-build-action before 2.4.2, per the GitHub advisory GHSA-h3qr-39j9-4r5v. The tables above give every range the sources list.
Which version fixes CVE-2023-30853?
2.4.2, per the GitHub advisory GHSA-h3qr-39j9-4r5v. Check the vendor's advisory before you rely on it.
How severe is CVE-2023-30853?
High (7.6, CVSS 3.1, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2023-30853?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.