CVE catalog

CVE-2022-46176

cargo: CVE-2022-46176

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.68% · Oct 25, 2026

Cargo is a Rust package manager. The Rust Security Response WG was notified that Cargo did not perform SSH host key verification when cloning indexes and dependencies via SSH. An attacker could exploit this to perform man-in-the-middle (MITM) attacks. This vulnerability has been assigned CVE-2022-46176. All Rust versions containing Cargo before 1.66.1 are vulnerable. Note that even if you don't explicitly use SSH for alternate registry indexes or crate dependencies, you might be affected by this vulnerability if you have configured git to replace HTTPS connections to GitHub with SSH (through git's [`url.<base>.insteadOf`][1] setting), as that'd cause you to clone the crates.io index through SSH. Rust 1.66.1 will ensure Cargo checks the SSH host key and abort the connection if the server's public key is not already trusted. We recommend everyone to upgrade as soon as possible.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debiancargobookworm0.66.0+ds1-1fixed
Debianrust-cargosid0.99.0-1fixed
Debianrust-cargoforky0.99.0-1fixed
Debianrust-cargotrixie0.86.0-2fixed
Debianrust-cargobookworm0.66.0-1fixed
Suserust1.66linux enterprise module for development tools 15 sp41.66.0-150400.9.9.1fixed
Opensuserust1.66leap 15.41.66.0-150400.9.9.1fixed
Opensuserust1.66tumbleweed1.66.0-2.1fixed
Opensuserust1.65tumbleweed1.65.0-4.1fixed
Suserust1.65linux enterprise module for development tools 15 sp41.65.0-150300.7.9.1fixed
Suserust1.65linux enterprise high performance computing 15 sp3-espos1.65.0-150300.7.9.1fixed
Suserust1.65linux enterprise high performance computing 15 sp3-ltss1.65.0-150300.7.9.1fixed
Suserust1.65linux enterprise real time 15 sp31.65.0-150300.7.9.1fixed
Suserust1.65linux enterprise server 15 sp3-ltss1.65.0-150300.7.9.1fixed
Suserust1.65linux enterprise server for sap applications 15 sp31.65.0-150300.7.9.1fixed
Suserust1.65enterprise storage 7.11.65.0-150300.7.9.1fixed
Opensuserust1.65leap 15.41.65.0-150300.7.9.1fixed
Ubuntucargopro0.19.0-0ubuntu1vulnerable
Ubuntucargopro0.22.0-0ubuntu1vulnerable
Ubuntucargopro0.22.0-0ubuntu2vulnerable
Ubuntucargopro0.23.0-0ubuntu1vulnerable
Ubuntucargopro0.24.0-1ubuntu1vulnerable
Ubuntucargopro0.25.0-1ubuntu1vulnerable
Ubuntucargopro0.26.0-0ubuntu1vulnerable
Ubuntucargopro0.26.0-0ubuntu2vulnerable
Ubuntucargopro0.29.0-1ubuntu1~18.04.1vulnerable
Ubuntucargopro0.31.0-3ubuntu1~18.04.4vulnerable
Ubuntucargopro0.32.0-1~exp1ubuntu1~18.04.1vulnerable
Ubuntucargopro0.33.0-1ubuntu1~18.04.1vulnerable
Ubuntucargopro0.35.0-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.36.0-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.37.0-3ubuntu1~18.04.1vulnerable
Ubuntucargopro0.38.0-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.40.0-3ubuntu1~18.04.1vulnerable
Ubuntucargopro0.42.0-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.44.1-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.47.0-1~exp1ubuntu1~18.04.1vulnerable
Ubuntucargopro0.52.0-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.54.0-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.58.0-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.60.0ubuntu1-0ubuntu1~18.04.1vulnerable
Ubuntucargopro0.62.0ubuntu0libgit2-0ubuntu0.18.04.1vulnerable
Ubuntucargopro0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04vulnerable
Ubuntucargopro0.66.0+ds0ubuntu0.libgit2-0ubuntu0.18.04.1~esm1vulnerable
Ubuntucargo20.040.37.0-3ubuntu2vulnerable
Ubuntucargo20.040.38.0-0ubuntu1vulnerable
Ubuntucargo20.040.39.0-0ubuntu1vulnerable
Ubuntucargo20.040.39.0+really0.38.0-0ubuntu1vulnerable
Ubuntucargo20.040.39.0+really0.39.0-0ubuntu1vulnerable
Ubuntucargo20.040.40.0-3ubuntu1vulnerable
Ubuntucargo20.040.40.0-3ubuntu2vulnerable
Ubuntucargo20.040.41.0-0ubuntu1vulnerable
Ubuntucargo20.040.42.0-0ubuntu1vulnerable
Ubuntucargo20.040.44.1-0ubuntu1~20.04.1vulnerable
Ubuntucargo20.040.47.0-1~exp1ubuntu1~20.04.1vulnerable
Ubuntucargo20.040.52.0-0ubuntu1~20.04.1vulnerable
Ubuntucargo20.040.54.0-0ubuntu1~20.04.1vulnerable
Ubuntucargo20.040.58.0-0ubuntu1~20.04.1vulnerable
Ubuntucargo20.040.60.0ubuntu1-0ubuntu1~20.04.1vulnerable
Ubuntucargo20.040.62.0ubuntu0libgit2-0ubuntu0.20.04.1vulnerable
Ubuntucargo20.040.66.0+ds0ubuntu0.libgit2-0ubuntu0.20.04vulnerable
Ubuntucargo20.040.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2fixed
Ubuntucargo22.040.52.0-0ubuntu1vulnerable
Ubuntucargo22.040.53.0-0ubuntu2vulnerable
Ubuntucargo22.040.54.0-0ubuntu1vulnerable
Ubuntucargo22.040.54.0-0ubuntu2vulnerable
Ubuntucargo22.040.57.0+ubuntu-0ubuntu1vulnerable
Ubuntucargo22.040.58.0-0ubuntu1vulnerable
Ubuntucargo22.040.60.0ubuntu1-0ubuntu1~22.04.1vulnerable
Ubuntucargo22.040.62.0ubuntu0libgit2-0ubuntu0.22.04.1vulnerable
Ubuntucargo22.040.66.0+ds0ubuntu0.libgit2-0ubuntu0.22.04vulnerable
Ubuntucargo22.040.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2fixed
Ubunturust-cargopro0.43.1-4vulnerable
Ubunturust-cargopro0.57.0-1vulnerable
Ubunturust-cargopro0.57.0-1ubuntu0.1~esm1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debiancargosourcebookworm0.66.0+ds1-1not yet assignedNot reportedNot reported
Debianrust-cargosourcesid0.66.0-1not yet assignedNot reportedNot reported
Debianrust-cargosourceforky0.66.0-1not yet assignedNot reportedNot reported
Debianrust-cargosourcetrixie0.66.0-1not yet assignedNot reportedNot reported
Debianrust-cargosourcebookworm0.66.0-1not yet assignedNot reportedNot reported
Suserust1.66rpmlinux enterprise module for development tools 15 sp41.66.0-150400.9.9.1Not reportedSUSE-SU-2023:0132-1Not reported
Opensuserust1.66rpmleap 15.41.66.0-150400.9.9.1Not reportedSUSE-SU-2023:0132-1Not reported
Opensuserust1.66rpmtumbleweed1.66.0-2.1Not reportedOPENSUSE-SU-2024:12608-1Not reported
Opensuserust1.65rpmtumbleweed1.65.0-4.1Not reportedOPENSUSE-SU-2024:12607-1Not reported
Suserust1.65rpmlinux enterprise module for development tools 15 sp41.65.0-150300.7.9.1Not reportedSUSE-SU-2023:0133-1Not reported
Suserust1.65rpmlinux enterprise high performance computing 15 sp3-espos1.65.0-150300.7.9.1Not reportedSUSE-SU-2023:0133-1Not reported
Suserust1.65rpmlinux enterprise high performance computing 15 sp3-ltss1.65.0-150300.7.9.1Not reportedSUSE-SU-2023:0133-1Not reported
Suserust1.65rpmlinux enterprise real time 15 sp31.65.0-150300.7.9.1Not reportedSUSE-SU-2023:0133-1Not reported
Suserust1.65rpmlinux enterprise server 15 sp3-ltss1.65.0-150300.7.9.1Not reportedSUSE-SU-2023:0133-1Not reported
Suserust1.65rpmlinux enterprise server for sap applications 15 sp31.65.0-150300.7.9.1Not reportedSUSE-SU-2023:0133-1Not reported
Suserust1.65rpmenterprise storage 7.11.65.0-150300.7.9.1Not reportedSUSE-SU-2023:0133-1Not reported
Opensuserust1.65rpmleap 15.41.65.0-150300.7.9.1Not reportedSUSE-SU-2023:0133-1Not reported
Ubuntucargodeb20.040.67.1+ds0ubuntu0.libgit2-0ubuntu0.20.04.2Not reportedUBUNTU-CVE-2022-46176Not reported
Ubuntucargodeb22.040.67.1+ds0ubuntu0.libgit2-0ubuntu0.22.04.2Not reportedUBUNTU-CVE-2022-46176Not reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [cargo]Fixed
    Details (2)
    • 0.66.0+ds1-1 · amd64 · bookworm

      Fixed · Fixed: 0.66.0+ds1-1

      dsa · cargo · debian · bookworm

    • 0.66.0+ds1-1 · arm64 · bookworm

      Fixed · Fixed: 0.66.0+ds1-1

      dsa · cargo · debian · bookworm

  • [cargo-doc]Fixed

    Source package: [cargo]

    Details (2)
    • 0.66.0+ds1-1 · all · bookworm

      Fixed · Fixed: 0.66.0+ds1-1

      dsa · cargo · debian · bookworm

    • 0.66.0+ds1-1 · all · bookworm

      Fixed · Fixed: 0.66.0+ds1-1

      dsa · cargo · debian · bookworm

  • Source package: [rust-cargo]

    Details (2)
    • 0.66.0-1 · amd64 · bookworm

      Fixed · Fixed: 0.66.0-1

      dsa · rust-cargo · debian · bookworm

    • 0.66.0-1 · arm64 · bookworm

      Fixed · Fixed: 0.66.0-1

      dsa · rust-cargo · debian · bookworm

Observed:

References