UBUNTU-CVE-2023-38497

Source
https://ubuntu.com/security/CVE-2023-38497
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-38497.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2023-38497
Related
Published
2023-08-03T12:00:00Z
Modified
2024-10-15T14:11:40Z
Severity
  • 7.3 (High) CVSS_V3 - CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

Cargo downloads the Rust project’s dependencies and compiles the project. Cargo prior to version 0.72.2, bundled with Rust prior to version 1.71.1, did not respect the umask when extracting crate archives on UNIX-like systems. If the user downloaded a crate containing files writeable by any local user, another local user could exploit this to change the source code compiled and executed by the current user. To prevent existing cached extractions from being exploitable, the Cargo binary version 0.72.2 included in Rust 1.71.1 or later will purge caches generated by older Cargo versions automatically. As a workaround, configure one's system to prevent other local users from accessing the Cargo directory, usually located in ~/.cargo.

References

Affected packages

Ubuntu:Pro:16.04:LTS / cargo

Package

Name
cargo
Purl
pkg:deb/ubuntu/cargo?arch=src?distro=esm-apps/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.47.0-1~exp1ubuntu1~16.04.1+esm1

Affected versions

0.*

0.8.0-1
0.16.0-0ubuntu1~16.04.1
0.18.0-0ubuntu0.16.04.1
0.22.0-0ubuntu0.16.04.1
0.23.0-0ubuntu0.16.04.1
0.25.0-1ubuntu1~16.04.1
0.26.0-0ubuntu2~16.04.1
0.29.0-1ubuntu1~16.04.1
0.31.0-3ubuntu1~16.04.1
0.32.0-1~exp1ubuntu1~16.04.1
0.33.0-1ubuntu1~16.04.1
0.35.0-0ubuntu1~16.04.1
0.36.0-0ubuntu1~16.04.1
0.37.0-3ubuntu1~16.04.1
0.38.0-0ubuntu1~16.04.1
0.40.0-3ubuntu1~16.04.1
0.42.0-0ubuntu1~16.04.1
0.44.1-0ubuntu1~16.04.1
0.47.0-1~exp1ubuntu1~16.04.1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.47.0-1~exp1ubuntu1~16.04.1+esm1",
            "binary_name": "cargo"
        },
        {
            "binary_version": "0.47.0-1~exp1ubuntu1~16.04.1+esm1",
            "binary_name": "cargo-dbgsym"
        },
        {
            "binary_version": "0.47.0-1~exp1ubuntu1~16.04.1+esm1",
            "binary_name": "cargo-doc"
        }
    ]
}

Ubuntu:Pro:18.04:LTS / cargo

Package

Name
cargo
Purl
pkg:deb/ubuntu/cargo?arch=src?distro=esm-apps/bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1

Affected versions

0.*

0.19.0-0ubuntu1
0.22.0-0ubuntu1
0.22.0-0ubuntu2
0.23.0-0ubuntu1
0.24.0-1ubuntu1
0.25.0-1ubuntu1
0.26.0-0ubuntu1
0.26.0-0ubuntu2
0.29.0-1ubuntu1~18.04.1
0.31.0-3ubuntu1~18.04.4
0.32.0-1~exp1ubuntu1~18.04.1
0.33.0-1ubuntu1~18.04.1
0.35.0-0ubuntu1~18.04.1
0.36.0-0ubuntu1~18.04.1
0.37.0-3ubuntu1~18.04.1
0.38.0-0ubuntu1~18.04.1
0.40.0-3ubuntu1~18.04.1
0.42.0-0ubuntu1~18.04.1
0.44.1-0ubuntu1~18.04.1
0.47.0-1~exp1ubuntu1~18.04.1
0.52.0-0ubuntu1~18.04.1
0.54.0-0ubuntu1~18.04.1
0.58.0-0ubuntu1~18.04.1
0.60.0ubuntu1-0ubuntu1~18.04.1
0.62.0ubuntu0libgit2-0ubuntu0.18.04.1
0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1",
            "binary_name": "cargo"
        },
        {
            "binary_version": "0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1",
            "binary_name": "cargo-dbgsym"
        },
        {
            "binary_version": "0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1",
            "binary_name": "cargo-doc"
        }
    ]
}

Ubuntu:20.04:LTS / cargo

Package

Name
cargo
Purl
pkg:deb/ubuntu/cargo?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.37.0-3ubuntu2
0.38.0-0ubuntu1
0.39.0-0ubuntu1
0.39.0+really0.38.0-0ubuntu1
0.39.0+really0.39.0-0ubuntu1
0.40.0-3ubuntu1
0.40.0-3ubuntu2
0.41.0-0ubuntu1
0.42.0-0ubuntu1
0.44.1-0ubuntu1~20.04.1
0.47.0-1~exp1ubuntu1~20.04.1
0.52.0-0ubuntu1~20.04.1
0.54.0-0ubuntu1~20.04.1
0.58.0-0ubuntu1~20.04.1
0.60.0ubuntu1-0ubuntu1~20.04.1
0.62.0ubuntu0libgit2-0ubuntu0.20.04.1
0.66.0+ds0ubuntu0.libgit2-0ubuntu0.20.04
0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:20.04:LTS / cargo

Package

Name
cargo
Purl
pkg:deb/ubuntu/cargo?arch=src?distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1

Affected versions

0.*

0.37.0-3ubuntu2
0.38.0-0ubuntu1
0.39.0-0ubuntu1
0.39.0+really0.38.0-0ubuntu1
0.39.0+really0.39.0-0ubuntu1
0.40.0-3ubuntu1
0.40.0-3ubuntu2
0.41.0-0ubuntu1
0.42.0-0ubuntu1
0.44.1-0ubuntu1~20.04.1
0.47.0-1~exp1ubuntu1~20.04.1
0.52.0-0ubuntu1~20.04.1
0.54.0-0ubuntu1~20.04.1
0.58.0-0ubuntu1~20.04.1
0.60.0ubuntu1-0ubuntu1~20.04.1
0.62.0ubuntu0libgit2-0ubuntu0.20.04.1
0.66.0+ds0ubuntu0.libgit2-0ubuntu0.20.04
0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1",
            "binary_name": "cargo"
        },
        {
            "binary_version": "0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1",
            "binary_name": "cargo-dbgsym"
        },
        {
            "binary_version": "0.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2+esm1",
            "binary_name": "cargo-doc"
        }
    ]
}

Ubuntu:22.04:LTS / cargo

Package

Name
cargo
Purl
pkg:deb/ubuntu/cargo?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.52.0-0ubuntu1
0.53.0-0ubuntu2
0.54.0-0ubuntu1
0.54.0-0ubuntu2
0.57.0+ubuntu-0ubuntu1
0.58.0-0ubuntu1
0.60.0ubuntu1-0ubuntu1~22.04.1
0.62.0ubuntu0libgit2-0ubuntu0.22.04.1
0.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04
0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:22.04:LTS / rust-cargo

Package

Name
rust-cargo
Purl
pkg:deb/ubuntu/rust-cargo?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.43.1-4
0.57.0-1

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:Pro:22.04:LTS / cargo

Package

Name
cargo
Purl
pkg:deb/ubuntu/cargo?arch=src?distro=esm-apps/jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1

Affected versions

0.*

0.52.0-0ubuntu1
0.53.0-0ubuntu2
0.54.0-0ubuntu1
0.54.0-0ubuntu2
0.57.0+ubuntu-0ubuntu1
0.58.0-0ubuntu1
0.60.0ubuntu1-0ubuntu1~22.04.1
0.62.0ubuntu0libgit2-0ubuntu0.22.04.1
0.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04
0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1",
            "binary_name": "cargo"
        },
        {
            "binary_version": "0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1",
            "binary_name": "cargo-dbgsym"
        },
        {
            "binary_version": "0.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2+esm1",
            "binary_name": "cargo-doc"
        }
    ]
}

Ubuntu:Pro:22.04:LTS / rust-cargo

Package

Name
rust-cargo
Purl
pkg:deb/ubuntu/rust-cargo?arch=src?distro=esm-apps/jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.57.0-1ubuntu0.1~esm1

Affected versions

0.*

0.43.1-4
0.57.0-1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro: https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.57.0-1ubuntu0.1~esm1",
            "binary_name": "librust-cargo+openssl-dev"
        },
        {
            "binary_version": "0.57.0-1ubuntu0.1~esm1",
            "binary_name": "librust-cargo-dev"
        }
    ]
}

Ubuntu:24.10 / rust-cargo

Package

Name
rust-cargo
Purl
pkg:deb/ubuntu/rust-cargo?arch=src?distro=oracular

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.76.0-3

Affected versions

0.*

0.70.1-2
0.70.1-3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.76.0-3",
            "binary_name": "librust-cargo-dev"
        }
    ]
}

Ubuntu:24.04:LTS / rust-cargo

Package

Name
rust-cargo
Purl
pkg:deb/ubuntu/rust-cargo?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.66.0-5
0.66.0-6
0.70.1-1
0.70.1-2

Ecosystem specific

{
    "ubuntu_priority": "medium"
}

Ubuntu:24.04:LTS / rustc

Package

Name
rustc
Purl
pkg:deb/ubuntu/rustc?arch=src?distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.71.1+dfsg0ubuntu2-0ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "cargo"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "cargo-dbgsym"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "cargo-doc"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "libstd-rust-1.71"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "libstd-rust-1.71-dbgsym"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "libstd-rust-dev"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rust-all"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rust-clippy"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rust-clippy-dbgsym"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rust-doc"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rust-gdb"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rust-lldb"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rust-src"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rustc"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rustc-dbgsym"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rustfmt"
        },
        {
            "binary_version": "1.71.1+dfsg0ubuntu2-0ubuntu1",
            "binary_name": "rustfmt-dbgsym"
        }
    ]
}