ADVISORIES

Ubuntu Security Notice

USN-6275-1

cargo, rust-cargo vulnerability

Details

Addison Crump discovered that Cargo incorrectly set file permissions on UNIX-like systems when extracting crate archives. If the crate would contain files writable by any user, a local attacker could possibly use this issue to execute code as another user.

Affected packages

EcosystemPackageAffected versions
Ubuntu:Pro:16.04:LTScargo
All versions before 0.47.0-1~exp1ubuntu1~16.04.1+esm1 (fixed in 0.47.0-1~exp1ubuntu1~16.04.1+esm1)
Ubuntu:Pro:18.04:LTScargo
All versions before 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1 (fixed in 0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1)
Ubuntu:Pro:20.04:LTScargo
All versions before 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1 (fixed in 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1)
Ubuntu:Pro:22.04:LTScargo
All versions before 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1 (fixed in 0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1)
Ubuntu:Pro:22.04:LTSrust-cargo
All versions before 0.57.0-1ubuntu0.1~esm1 (fixed in 0.57.0-1ubuntu0.1~esm1)

References