Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2022-31156
gradle

Score4.4 Medium
CVSS 3.1
Exploit probability (EPSS)0.54%
within the next 30 days
CategoryAuthentication & session
Published14 July 2022
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, with administrator privileges, without any user interaction.

A successful attack has high impact: modifying data.

Special conditions are required for a successful attack, which makes exploitation harder.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

Gradle is a build tool. Dependency verification is a security feature in Gradle Build Tool that was introduced to allow validation of external dependencies either through their checksum or cryptographic signatures. In versions 6.2 through 7.4.2, there are some cases in which Gradle may skip that verification and accept a dependency that would otherwise fail the build as an untrusted external artifact. This can occur in two ways. When signature verification is disabled but the verification metadata contains entries for dependencies that only have a `gpg` element but no `checksum` element. When signature verification is enabled, the verification metadata contains entries for dependencies with a `gpg` element but there is no signature file on the remote repository. In both cases, the verification will accept the dependency, skipping signature verification and not complaining that the dependency has no checksum entry. For builds that are vulnerable, there are two risks. Gradle could download a malicious binary from a repository outside your organization due to name squatting. For those still using HTTP only and not HTTPS for downloading dependencies, the build could download a malicious library instead of the expected one. Gradle 7.5 patches this issue by making sure to run checksum verification if signature verification cannot be completed, whatever the reason. Two workarounds are available: Remove all `gpg` elements from dependency verification metadata if you disable signature validation and/or avoid adding `gpg` entries for dependencies that do not have signature files.

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

Weakness: CWE-829, CWE-347

Affected products

VendorProductVersions
gradlegradle>=6.2.0 <7.5.0

Sources

Latest in the same category

  • CVE-2026-129107 Critical 9.8
    An unauthenticated remote attacker can obtain hard-coded credentials from exported device data and leverage them to gain administrative access to the affected device.
    Authentication & session · 1 December 2026
  • CVE-2026-115838 Medium 5.3
    A flaw was found in sequoia-openpgp. Ed25519 signature verification accepts the identity public key and other low-order public keys, on both native Ed25519 and legacy EdDSA. Under such a key, a signature can verify…
    Authentication & session · 1 December 2026
  • CVE-2026-95792 High 8.1
    A potential security vulnerability identified with HPE IceWall MFA products could be exploited allow improper authentication.
    Authentication & session · 1 December 2026
  • CVE-2026-130474 Medium 5.5
    A signature validation vulnerability exists in Foxit PDF Editor/Reader due to insufficient semantic verification of incrementally updated PDF documents. An attacker may alter the displayed content of a signed document…
    Authentication & session · 1 December 2026
  • CVE-2026-119012 Medium 5.1
    Vulnerability of improper authentication in the DSoftBus module. Impact: Successful exploitation of this vulnerability will affect availability.
    Authentication & session · 1 December 2026
  • CVE-2026-139894 Medium 5.3
    A vulnerability was found in davila7 claude-code-templates up to 1.29.6. The affected element is an unknown function of the file cli-tool/src/claude-api-proxy.js of the component Claude API proxy. Performing a…
    Authentication & session · 1 December 2026