p PatchFirst

PatchFirst · Свежие уязвимости

Уязвимости rustc

За последние 30 дней в rustc опубликовано уязвимостей: 0; в каталоге KEV: 0.

Фильтры уязвимостей
Сбросить фильтры

Уязвимостей: 23

  1. CVE-2026-5223

    Средний · CVSS 6.5EPSS 0,29%Нет опубликованного исправления

    Crates in third party registries can override the cached source of other crates

    Cargo incorrectly handled symlinks inside of crate tarballs downloaded from third-party registries, allowing a malicious crate to override the source code of another crate from the same registry. The severity of the vulnerability is **medium** for users of third-party registries. Users of crates.io are **not affected**, as crates.io forbids uploading crates containing any symlink.

  2. CVE-2026-5222

    Низкий · CVSS 2.3EPSS 0,48%Нет опубликованного исправления

    Cargo can be coerced to share credentials between registries

    Cargo between 1.68 and 1.96 incorrectly normalized the URLs of third-party registries using the sparse index protocol. If a hosting provider allowed multiple registries to be hosted with arbitrary names within the same domain, an attacker able to publish crates in a registry could obtain the credentials of others users of the same registry. The severity of the vulnerability is **low**, due to the extremely niche requirements needed to achieve the attack.

  3. CVE-2026-33056

    Средний · CVSS 5.1EPSS 0,39%Нет опубликованного исправления

    tar-rs: unpack_in can chmod arbitrary directories by following symlinks

    tar-rs is a tar archive reading/writing library for Rust. In versions 0.4.44 and below, when unpacking a tar archive, the tar crate's unpack_dir function uses fs::metadata() to check whether a path that already exists is a directory. Because fs::metadata() follows symbolic links, a crafted tarball containing a symlink entry followed by a directory entry with the same name causes the crate to treat the symlink target as a valid existing directory — and subsequently apply chmod to it. This allows an attacker to modify the permissions of arbitrary directories outside the extraction root. This issue has been fixed in version 0.4.45.

  4. CVE-2026-33055

    Средний · CVSS 5.1EPSS 0,41%Нет опубликованного исправления

    tar-rs incorrectly ignores PAX size headers if header size is nonzero

    tar-rs is a tar archive reading/writing library for Rust. Versions 0.4.44 and below have conditional logic that skips the PAX size header in cases where the base header size is nonzero. As part of CVE-2025-62518, the astral-tokio-tar project was changed to correctly honor PAX size headers in the case where it was different from the base header. This is almost the inverse of the astral-tokio-tar issue. Any discrepancy in how tar parsers honor file size can be used to create archives that appear differently when unpacked by different archivers. In this case, the tar-rs (Rust tar) crate is an outlier in checking for the header size - other tar p

  5. CVE-2022-21658

    Высокий · CVSS 7.3EPSS 1,38%Есть исправление

    Race condition in std::fs::remove_dir_all in rustlang

    Rust is a multi-paradigm, general-purpose programming language designed for performance and safety, especially safe concurrency. The Rust Security Response WG was notified that the `std::fs::remove_dir_all` standard library function is vulnerable a race condition enabling symlink following (CWE-363). An attacker could use this security issue to trick a privileged program into deleting files and directories the attacker couldn't otherwise access or delete. Rust 1.0.0 through Rust 1.58.0 is affected by this vulnerability with 1.58.1 containing a patch. Note that the following build targets don't have usable APIs to properly mitigate the attack,

    • Обновитесь до 1.57.0+dfsg1-1
    Опубликовано Обновлено
  6. CVE-2021-42574

    Высокий · CVSS 8.3EPSS 12,88%Есть исправление

    CVE-2021-42574

    An issue was discovered in the Bidirectional Algorithm in the Unicode Specification through 14.0. It permits the visual reordering of characters via control sequences, which can be used to craft source code that renders different logic than the logical ordering of tokens ingested by compilers and interpreters. Adversaries can leverage this to encode source code for compilers accepting Unicode such that targeted vulnerabilities are introduced invisibly to human reviewers. NOTE: the Unicode Consortium offers the following alternative approach to presenting this concern. An issue is noted in the nature of international text that can affect appli

    • Обновитесь до 1.57.0+dfsg1-1
    Опубликовано Обновлено
  7. CVE-2021-29922

    Критический · CVSS 9.1EPSS 2,62%Есть исправление

    CVE-2021-29922

    library/std/src/net/parser.rs in Rust before 1.53.0 does not properly consider extraneous zero characters at the beginning of an IP address string, which (in some situations) allows attackers to bypass access control that is based on IP addresses, because of unexpected octal interpretation.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  8. CVE-2017-20004

    Средний · CVSS 5.9EPSS 0,8%Есть исправление

    CVE-2017-20004

    In the standard library in Rust before 1.19.0, there is a synchronization problem in the MutexGuard object. MutexGuards can be used across threads with any types, allowing for memory safety issues through race conditions.

    • Обновитесь до 1.19.0+dfsg3-2
    Опубликовано Обновлено
  9. CVE-2020-36323

    Высокий · CVSS 8.2EPSS 2,02%Есть исправление

    CVE-2020-36323

    In the standard library in Rust before 1.52.0, there is an optimization for joining strings that can cause uninitialized bytes to be exposed (or the program to crash) if the borrowed string changes after its length is checked.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  10. CVE-2018-25008

    Средний · CVSS 5.9EPSS 1,05%Есть исправление

    CVE-2018-25008

    In the standard library in Rust before 1.29.0, there is weak synchronization in the Arc::get_mut method. This synchronization issue can be lead to memory safety issues through race conditions.

    • Обновитесь до 1.29.0+dfsg1-1
    Опубликовано Обновлено
  11. CVE-2021-31162

    Критический · CVSS 9.8EPSS 2,89%Есть исправление

    CVE-2021-31162

    In the standard library in Rust before 1.52.0, a double free can occur in the Vec::from_iter function if freeing the element panics.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  12. CVE-2015-20001

    Высокий · CVSS 7.5EPSS 1,32%Есть исправление

    CVE-2015-20001

    In the standard library in Rust before 1.2.0, BinaryHeap is not panic-safe. The binary heap is left in an inconsistent state when the comparison of generic elements inside sift_up or sift_down_range panics. This bug leads to a drop of zeroed memory as an arbitrary type, which can result in a memory safety violation.

    • Обновитесь до 1.2.0+dfsg1-1
    Опубликовано Обновлено
  13. CVE-2020-36317

    Высокий · CVSS 7.5EPSS 1,5%Есть исправление

    CVE-2020-36317

    In the standard library in Rust before 1.49.0, String::retain() function has a panic safety problem. It allows creation of a non-UTF-8 Rust string when the provided closure panics. This bug could result in a memory safety violation when other string APIs assume that UTF-8 encoding is used on the same string.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  14. CVE-2020-36318

    Критический · CVSS 9.8EPSS 1,68%Есть исправление

    CVE-2020-36318

    In the standard library in Rust before 1.49.0, VecDeque::make_contiguous has a bug that pops the same element more than once under certain condition. This bug could result in a use-after-free or double free.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  15. CVE-2021-28879

    Критический · CVSS 9.8EPSS 2,41%Есть исправление

    CVE-2021-28879

    In the standard library in Rust before 1.52.0, the Zip implementation can report an incorrect size due to an integer overflow. This bug can lead to a buffer overflow when a consumed Zip iterator is used again.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  16. CVE-2021-28878

    Высокий · CVSS 7.5EPSS 2%Есть исправление

    CVE-2021-28878

    In the standard library in Rust before 1.52.0, the Zip implementation calls __iterator_get_unchecked() more than once for the same index (under certain conditions) when next_back() and next() are used together. This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  17. CVE-2021-28877

    Высокий · CVSS 7.5EPSS 1,39%Есть исправление

    CVE-2021-28877

    In the standard library in Rust before 1.51.0, the Zip implementation calls __iterator_get_unchecked() for the same index more than once when nested. This bug can lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  18. CVE-2021-28876

    Средний · CVSS 5.3EPSS 1,57%Есть исправление

    CVE-2021-28876

    In the standard library in Rust before 1.52.0, the Zip implementation has a panic safety issue. It calls __iterator_get_unchecked() more than once for the same index when the underlying iterator panics (in certain conditions). This bug could lead to a memory safety violation due to an unmet safety requirement for the TrustedRandomAccess trait.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  19. CVE-2021-28875

    Высокий · CVSS 7.5EPSS 2,12%Есть исправление

    CVE-2021-28875

    In the standard library in Rust before 1.50.0, read_to_end() does not validate the return value from Read in an unsafe context. This bug could lead to a buffer overflow.

    • Обновитесь до 1.53.0+dfsg1-1
    Опубликовано Обновлено
  20. CVE-2019-1010299

    Средний · CVSS 5.3EPSS 1,52%Есть исправление

    CVE-2019-1010299

    The Rust Programming Language Standard Library 1.18.0 and later is affected by: CWE-200: Information Exposure. The impact is: Contents of uninitialized memory could be printed to string or to log file. The component is: Debug trait implementation for std::collections::vec_deque::Iter. The attack vector is: The program needs to invoke debug printing for iterator over an empty VecDeque. The fixed version is: 1.30.0, nightly versions after commit b85e4cc8fadaabd41da5b9645c08c68b8f89908d.

    • Обновитесь до 1.30.0+dfsg1-1

Проверьте свой сервер

Сопоставьте установленный стек и версии со свежими базами уязвимостей.

Проверьте свой сервер →