NixOS / nixpkgs

Nix Packages collection & NixOS
MIT License
18.14k stars 14.17k forks source link

Vulnerability roundup 111: gradle-6.9.2: 1 advisory [7.5] #160654

Closed ckauhaus closed 2 years ago

ckauhaus commented 2 years ago

search, files

CVE details

CVE-2022-23630

Gradle is a build tool with a focus on build automation and support for multi-language development. In some cases, Gradle may skip that verification and accept a dependency that would otherwise fail the build as an untrusted external artifact. This occurs when dependency verification is disabled on one or more configurations and those configurations have common dependencies with other configurations that have dependency verification enabled. If the configuration that has dependency verification disabled is resolved first, Gradle does not verify the common dependencies for the configuration that has dependency verification enabled. Gradle 7.4 fixes that issue by validating artifacts at least once if they are present in a resolved configuration that has dependency verification active. For users who cannot update either do not use ResolutionStrategy.disableDependencyVerification() and do not use plugins that use that method to disable dependency verification for a single configuration or make sure resolution of configuration that disable that feature do not happen in builds that resolve configuration where the feature is enabled.


Scanned versions: nixos-unstable: 5aaed40d22f.

Cc @liff Cc @lorenzleutgeb

ckauhaus commented 2 years ago

See also: #155327

lorenzleutgeb commented 2 years ago

An unaffected version is packaged (see #159226), so users could switch to gradle_7. As far as I see, there is no Gradle release with major version 6 that fixes this issue, so referring to Gradle 7 seems reasonable to me...