Upstream information

CVE-2022-31156 at MITRE

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.

SUSE information

Overall state of this security issue: Resolved

This issue is currently rated as having moderate severity.

CVSS v3 Scores
  National Vulnerability Database SUSE
Base Score 6.6 6.6
Vector CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:H/A:H
Attack Vector Network Network
Attack Complexity High High
Privileges Required High High
User Interaction None None
Scope Unchanged Unchanged
Confidentiality Impact High High
Integrity Impact High High
Availability Impact High High
CVSSv3 Version 3.1 3.1
SUSE Bugzilla entry: 1201530 [RESOLVED / INVALID]

No SUSE Security Announcements cross referenced.


Status of this issue by product and package

Please note that this evaluation state might be work in progress, incomplete or outdated. Also information for service packs in the LTSS phase is only included for issues meeting the LTSS criteria. If in doubt, feel free to contact us for clarification. The updates are grouped by state of their lifecycle. SUSE product lifecycles are documented on the lifecycle page.

Product(s) Source package State
Products under general support and receiving all security fixes.
SUSE Linux Enterprise Desktop 15 SP5 gradle Not affected
SUSE Linux Enterprise Desktop 15 SP6 gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP5 gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP6 gradle Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP5 gradle Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP6 gradle Not affected
SUSE Linux Enterprise Server 15 SP5 gradle Not affected
SUSE Linux Enterprise Server 15 SP6 gradle Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP5 gradle Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP6 gradle Not affected
SUSE Manager Proxy 4.3 gradle Not affected
SUSE Manager Retail Branch Server 4.3 gradle Not affected
SUSE Manager Server 4.3 gradle Not affected
openSUSE Leap 15.5 gradle Not affected
openSUSE Leap 15.6 gradle Not affected
Products under Long Term Service Pack support and receiving important and critical security fixes.
SUSE Linux Enterprise Desktop 15 SP4 gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2 gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-ESPOS gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP2-LTSS gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3 gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-ESPOS gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP3-LTSS gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4 gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS gradle Not affected
SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS gradle Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP2 gradle Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP3 gradle Not affected
SUSE Linux Enterprise Module for Development Tools 15 SP4 gradle Not affected
SUSE Linux Enterprise Server 15 SP2 gradle Not affected
SUSE Linux Enterprise Server 15 SP2-LTSS gradle Not affected
SUSE Linux Enterprise Server 15 SP3 gradle Not affected
SUSE Linux Enterprise Server 15 SP3-LTSS gradle Not affected
SUSE Linux Enterprise Server 15 SP4 gradle Not affected
SUSE Linux Enterprise Server 15 SP4-LTSS gradle Not affected
SUSE Linux Enterprise Server Business Critical Linux 15 SP2 gradle Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP2 gradle Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP3 gradle Not affected
SUSE Linux Enterprise Server for SAP Applications 15 SP4 gradle Not affected
Products past their end of life and not receiving proactive updates anymore.
SUSE Enterprise Storage 7 gradle Not affected
SUSE Enterprise Storage 7.1 gradle Not affected
SUSE Linux Enterprise Desktop 15 SP2 gradle Not affected
SUSE Linux Enterprise Desktop 15 SP3 gradle Not affected
SUSE Linux Enterprise Real Time 15 SP2 gradle Not affected
SUSE Linux Enterprise Real Time 15 SP3 gradle Not affected
SUSE Linux Enterprise Real Time 15 SP4 gradle Not affected
SUSE Linux Enterprise Server 15 SP2-BCL gradle Not affected
SUSE Linux Enterprise Server 15 SP3-BCL gradle Not affected
SUSE Manager Proxy 4.1 gradle Not affected
SUSE Manager Proxy 4.2 gradle Not affected
SUSE Manager Retail Branch Server 4.1 gradle Not affected
SUSE Manager Retail Branch Server 4.2 gradle Not affected
SUSE Manager Server 4.1 gradle Not affected
SUSE Manager Server 4.2 gradle Not affected
openSUSE Leap 15.3 gradle Not affected
openSUSE Leap 15.4 gradle Not affected


SUSE Timeline for this CVE

CVE page created: Fri Jul 15 02:00:21 2022
CVE page last modified: Fri Sep 13 13:19:37 2024