Improper Preservation of Permissions Affecting cargo-audit package, versions <0.21.2-r0


Severity

Recommended
low

Based on default assessment until relevant scores are available.

Threat Intelligence

EPSS
0.23% (43rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-CHAINGUARDLATEST-CARGOAUDIT-9055110
  • published2 Mar 2025
  • disclosed20 Jan 2025

Introduced: 20 Jan 2025

CVE-2025-22620  (opens in a new tab)
CWE-281  (opens in a new tab)
CWE-687  (opens in a new tab)

How to fix?

Upgrade Chainguard cargo-audit to version 0.21.2-r0 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream cargo-audit package and not the cargo-audit package as distributed by Chainguard. See How to fix? for Chainguard relevant fixed versions and status.

gitoxide is an implementation of git written in Rust. Prior to 0.17.0, gix-worktree-state specifies 0777 permissions when checking out executable files, intending that the umask will restrict them appropriately. But one of the strategies it uses to set permissions is not subject to the umask. This causes files in a repository to be world-writable in some situations. This vulnerability is fixed in 0.17.0.