QID 355226

Date Published: 2023-05-29

QID 355226: Amazon Linux Security Advisory for rust : ALAS2023-2023-109

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 [][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. (
( CVE-2022-46176)



Note: The preceding description block is extracted directly from the security advisory. Using automation, we have attempted to clean and format it as much as possible without introducing additional issues.

Successful exploitation of this vulnerability could lead to a securitybreach or could affect integrity, availability, and confidentiality.

  • CVSS V3 rated as Medium - 5.9 severity.
  • CVSS V2 rated as Medium - 5.4 severity.
  • Solution
    Please refer to Amazon advisory: ALAS2023-2023-109 for affected packages and patching details, or update with your package manager.
    Vendor References

    CVEs related to QID 355226

    Software Advisories
    Advisory ID Software Component Link
    ALAS2023-2023-109 amazon linux 2023 URL Logo alas.aws.amazon.com/AL2023/ALAS-2023-109.html