GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration
oesa-2025-1236
Vulnerability from osv_openeuler
Published
2025-03-07 11:08
Modified
2026-08-06 11:08
Summary
rust security update
Details

Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. This package includes the Rust compiler and documentation generator.

Security Fix(es):

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

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.(CVE-2023-38497)


{
  "affected": [
    {
      "ecosystem_specific": {
        "aarch64": [
          "cargo-1.76.0-1.oe2203sp4.aarch64.rpm",
          "clippy-1.76.0-1.oe2203sp4.aarch64.rpm",
          "rust-1.76.0-1.oe2203sp4.aarch64.rpm",
          "rust-analyzer-1.76.0-1.oe2203sp4.aarch64.rpm",
          "rust-debuginfo-1.76.0-1.oe2203sp4.aarch64.rpm",
          "rust-debugsource-1.76.0-1.oe2203sp4.aarch64.rpm",
          "rust-help-1.76.0-1.oe2203sp4.aarch64.rpm",
          "rust-std-static-1.76.0-1.oe2203sp4.aarch64.rpm",
          "rustfmt-1.76.0-1.oe2203sp4.aarch64.rpm"
        ],
        "noarch": [
          "rust-debugger-common-1.76.0-1.oe2203sp4.noarch.rpm",
          "rust-gdb-1.76.0-1.oe2203sp4.noarch.rpm",
          "rust-lldb-1.76.0-1.oe2203sp4.noarch.rpm",
          "rust-src-1.76.0-1.oe2203sp4.noarch.rpm"
        ],
        "src": [
          "rust-1.76.0-1.oe2203sp4.src.rpm"
        ],
        "x86_64": [
          "cargo-1.76.0-1.oe2203sp4.x86_64.rpm",
          "clippy-1.76.0-1.oe2203sp4.x86_64.rpm",
          "rust-1.76.0-1.oe2203sp4.x86_64.rpm",
          "rust-analyzer-1.76.0-1.oe2203sp4.x86_64.rpm",
          "rust-debuginfo-1.76.0-1.oe2203sp4.x86_64.rpm",
          "rust-debugsource-1.76.0-1.oe2203sp4.x86_64.rpm",
          "rust-help-1.76.0-1.oe2203sp4.x86_64.rpm",
          "rust-std-static-1.76.0-1.oe2203sp4.x86_64.rpm",
          "rustfmt-1.76.0-1.oe2203sp4.x86_64.rpm"
        ]
      },
      "package": {
        "ecosystem": "openEuler:22.03-LTS-SP4",
        "name": "rust",
        "purl": "pkg:rpm/openEuler/rust\u0026distro=openEuler-22.03-LTS-SP4"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.76.0-1.oe2203sp4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "severity": "High"
  },
  "details": "Rust is a systems programming language that runs blazingly fast, prevents segfaults, and guarantees thread safety. This package includes the Rust compiler and documentation generator.\r\n\r\nSecurity Fix(es):\n\nCargo 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\u0026apos;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\u0026apos;s [`url.\u0026lt;base\u0026gt;.insteadOf`][1] setting), as that\u0026apos;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\u0026apos;s public key is not already trusted. We recommend everyone to upgrade as soon as possible. (CVE-2022-46176)\n\nCargo downloads the Rust project\u2019s 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\u0026apos;s system to prevent other local users from accessing the Cargo directory, usually located in `~/.cargo`.(CVE-2023-38497)",
  "id": "OESA-2025-1236",
  "modified": "2026-08-06T11:08:20Z",
  "published": "2025-03-07T11:08:20Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.openeuler.org/zh/security/security-bulletins/detail/?id=openEuler-SA-2025-1236"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2022-46176"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-38497"
    }
  ],
  "schema_version": "1.7.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "rust security update",
  "upstream": [
    "CVE-2022-46176",
    "CVE-2023-38497"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…