Security readout for executives and security teams
Plain-English summary
Gradle’s dependency verification could silently trust an external dependency when expected signature verification cannot happen and no checksum is present. Affected builds may accept a malicious or wrong artifact instead of failing. The issue matters most where builds pull dependencies from public or untrusted repositories, especially with name-squatting risk or HTTP-only dependency downloads.
Executive priority
Treat as a moderate build-chain integrity risk. Prioritize projects that produce production software, consume public dependencies, or still use HTTP repositories. Remediation is straightforward if teams can upgrade Gradle or clean verification metadata.
Technical view
In Gradle 6.2 through 7.4.2, verification metadata containing gpg entries without checksum entries could cause verification to be skipped. If signature validation was disabled, or enabled but the remote repository lacked a signature file, Gradle accepted the artifact. Gradle 7.5 changes behavior to run checksum verification when signature verification cannot complete.
Likely exposure
Exposure is limited to projects using Gradle 6.2 through 7.4.2 with dependency verification metadata that has gpg entries without checksums, especially where signature files are absent or signature validation is disabled.
Exploitation context
The sources do not report active exploitation, and this CVE is not marked KEV. Practical abuse requires a vulnerable build configuration plus an opportunity to supply or substitute a dependency, such as name squatting or insecure HTTP dependency retrieval.
Researcher notes
This is CWE-829 behavior in dependency trust handling, not a runtime application flaw. The vulnerable condition depends on verification metadata shape and repository signature availability. Evidence supports patched behavior in Gradle 7.5 and two metadata workarounds; no exploit activity is cited.
Mitigation direction
- Upgrade affected builds to Gradle 7.5 or later.
- Remove gpg elements when signature validation is disabled.
- Avoid gpg entries for dependencies that do not publish signature files.
- Prefer HTTPS repositories for dependency retrieval.
- Check current Gradle advisory for any later guidance.
Validation and detection
- Inventory build environments for Gradle versions 6.2 through 7.4.2.
- Review dependency verification metadata for gpg entries without checksum entries.
- Identify dependencies whose remote repositories do not publish signature files.
- Check whether signature validation is disabled in affected builds.
- Confirm builds use HTTPS repositories where external dependencies are downloaded.
Public sources used
Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.
Conservative CVE-to-ATT&CK context
These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.
ATT&CK lookup starting points
Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.
CWE-829: Exact CWE lookup
Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.
Open ATT&CK lookupCVE-2022-31156 mapping review
Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.
Open ATT&CK lookup- Severity
- Medium
- CVSS
- 6.6 (3.1)
- Known Exploited
- No
- Published
Vector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
CNA and ADP enrichment extracted from CVE v5
These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.
CVSS vector scores
1 official scoreWe collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.
CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H0.75.9Primary CVE scoreVulnerability scoring details
Base CVSS 3.1 score
6.6MediumVector: CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Source materials
- CVE List V5 sourceCVE List V5
- https://github.com/gradle/gradle/security/advisories/GHSA-j6wc-xfg8-jx2jCVE reference · x_refsource_CONFIRM
- https://docs.gradle.org/7.5/release-notes.htmlCVE reference · x_refsource_MISC
Products and packages named in the record
CWE details
CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.
Inclusion of Functionality from Untrusted Control Sphere
Inclusion of Functionality from Untrusted Control Sphere represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.
