Rust 漏洞与安全更新

90 条

12月5日周六昨天

  • 高危07:09漏洞公告RustGitHub Advisory Database

    GotaTun: Oversized UDP datagram can stop default Windows Device reception

    受影响: rust:gotatun <= 0.9.2 → 0.10.0 An unauthenticated sender able to deliver a UDP datagram larger than 4096 bytes to a Windows Device using the built-in transport without windows-gro can stop inbound processing for all peers on that Device. Source inspection indicates that the outage lasts until the application rebuilds the connection. A native Windows loopback test reproduced the receive error. Details In GotaTun 0.9.2, Connection::set_up in gotatun/src/device/mod.rs passes the default 4096-byte PacketBufPool to BufferedUdpRec…

  • 高危06:13漏洞公告RustGitHub Advisory Database

    Fulgur is vulnerable to denial of service via unbounded CSS counters() expansion

    受影响: rust:fulgur >= 0.15.0, < 0.27.0 → 0.27.0 fulgur converts untrusted HTML/CSS into PDF, commonly on a server that processes input supplied by many tenants. In versions from 0.15.0 up to (but not including) the patched release, resolving the CSS counters(name, sep) function in generated content was bounded neither in the size of a single expansion nor in the aggregate work across an element tree. A CSS counter chain grows by one entry per counter-reset, and per CSS Lists 3 §4.4 a reset is scoped to the originating element, its descendant…

12月4日周五

  • 中危08:53漏洞公告RustGitHub Advisory Database

    bcrypt: Non-ASCII hash input can cause verification panic

    受影响: rust:bcrypt >= 0.19.0, < 0.19.2 → 0.19.2 bcrypt::verify(password, hash) and HashParts::from_str(hash) panic in str::slice_error_fail when given a 60-byte &str containing a multi-byte UTF-8 character at certain byte positions. Impact Any Rust code that calls bcrypt::verify (or HashParts::from_str) with an attacker-controlled hash string will panic. The bcrypt crate is #![forbid(unsafe_code)], so this is limited to a denial-of-service and cannot lead to memory corruption. Realistic attack contexts include: - Rust authentication services…

12月2日周三

11月30日周一

  • arcodash 0.2: open-source SQL dashboards with scheduled data checks, with PostgreSQL support

    arcodash is a new open-source (AGPL-3.0) project for SQL dashboards and data checks. You write SQL against a data source, build dashboards, and attach checks for freshness, null rate and row counts that run on the same scheduler as the queries they protect. When a check fails, it alerts Slack or email. How it relates to PostgreSQL: PostgreSQL is one of the supported data sources, and arcodash also stores all of its own state (queries, dashboards, schedules, check history) in PostgreSQL. A connection only needs a read-only role. The backend and worker are written in Rust; Valkey holds the job…

11月27日周五

  • 09:00版本发布RustRust Blog

    Announcing Rust 1.100.1

    The Rust team has published a new point release of Rust, 1.100.1. Rust is a programming language that is empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup, getting Rust 1.100.1 is as easy as: $ rustup update stable If you don't have it already, you can get rustup from the appropriate page on our website. If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel ( rustup default beta ) or the nightly channel ( rustup default nightly ). Please report any bugs you mi…

  • USN-9214-1: GNU binutils vulnerabilities

    It was discovered that the GNU binutils gold linker incorrectly handled certain ELF files. A local attacker could possibly use this issue to cause GNU binutils to crash, resulting in a denial of service. This issue only affected Ubuntu 22.04 LTS. (CVE-2019-1010204) Han Zheng discovered that GNU binutils incorrectly handled demangling certain Rust symbols. A local attacker could possibly use this issue to cause GNU binutils to crash, resulting in a denial of service. This issue only affected Ubuntu 22.04 LTS. (CVE-2022-27943) It was discovered that GNU binutils incorrectly handled certain DWAR…

11月26日周四

  • 高危04:46漏洞公告RustGitHub Advisory Database

    fulgur allows Unbounded string-set value accumulation causes memory/CPU exhaustion (denial of service)

    受影响: rust:fulgur >= 0.4.4, < 0.28.0 → 0.28.0 fulgur converts untrusted HTML/CSS into PDF, commonly on a server that processes input supplied by many tenants. In versions from 0.4.4 up to (but not including) the patched release, the CSS string-set named-string values resolved from a document were accumulated per element with no memory budget, letting a small crafted document amplify into large retained memory (and the CPU to copy it) — a denial of service. A string-set value is attacker-controlled: it is resolved from an element's own text…

11月21日周六

  • 中危08:33漏洞公告RustGitHub Advisory Database

    sevenz-rust2: decompress builds each output path as dest.join(entry.name()) with no traversal guard, allowing a crafted .7z to write files outside the destination (Zip-Slip)

    受影响: rust:sevenz-rust2 < 0.21.1 → 0.21.1 Extracting an attacker-supplied 7z archive can write files outside the destination directory. The 7z header stores each entry's path as a UTF-16 name with nothing constraining it to a relative, in-tree path. The extractor joins that name onto the destination and writes to the result without normalizing it or checking that it stays under the destination root, so an entry named ../../etc/cron.d/x or an absolute path escapes the target. Details In src/util/decompress.rs, decompress_impl computes t…

  • 中危01:39漏洞公告RustGitHub Advisory Database

    chcon: recursive relabel not anchored to traversal dirfd (TOCTOU)

    受影响: rust:uu_chcon <= 0.9.0 → 0.10.0 chcon resolved recursive targets from fts_accpath with a fresh path lookup, so traversal and the SELinux get/set were not bound to traversal directory state. A privileged recursive relabel can be redirected to unintended objects under rename/symlink races. Fix opens targets with openat against the traversal cwd fd before the SELinux operation. Fixed in 0.10.0 (PR #12566, commit 7cfc74e47ffab452663be6842d788a5164d9688b): recursive relabel resolution is anchored to the traversal dirfd. --- _Zelli…

  • 低危01:36漏洞公告RustGitHub Advisory Database

     uu_env incorrectly rejects backslashes within single-quoted strings accepted by GNU env

    受影响: rust:uu_env <= 0.9.0 → 0.10.0 In env -S, GNU keeps backslashes literal inside single quotes (except \\ and \'); uutils errors on sequences like \a. This is the backslash-handling issue of the broader -S/--split-string parsing divergence. env -S"printf %s '\''\\x'\''" # GNU prints \x ; uutils: invalid sequence '\x' in -S (125) --- _Zellic private finding (zellic-ext/coreutils-private PR #117). Reported in the Zellic uutils coreutils Program Security Assessment (for Canonical, Jan 2026), audited commit 3a07ffc5a9bd4c283e75afa…

  • 中危01:33漏洞公告RustGitHub Advisory Database

    split: TOCTOU output-open allows truncating a swapped file

    受影响: rust:uu_split <= 0.9.0 → 0.10.0 split checks input/output identity by path before opening the output, then opens with truncation, leaving a race window on mutable path components. GNU opens first and compares the opened output inode against the input before truncating. The race can cause split to truncate/write a file different from the one validated — including the input file or another file the process can access. Fixed in 0.10.0 (PR #12565, commit 58040feb5c66fce588a7ffac299b3a23bd55cd81): the output open path is hardened…

11月20日周五

11月19日周四

  • 高危05:42漏洞公告RustGitHub Advisory Database

    Atomic Server: Unauthenticated full-response SSRF in Atomic-Server /bookmark endpoint

    受影响: rust:atomic-server <= 0.40.1 Atomic-Server exposes a GET /bookmark endpoint that fetches an attacker-supplied URL server-side, parses the response, and reflects the fetched content back to the caller. The endpoint requires no authentication and performs no authorization of its own, and the underlying fetch helper applies no allow-list or private-IP deny-list. An unauthenticated attacker with network reach to the server can force it to issue arbitrary outbound HTTP GET requests to internal-only hosts (loopback services, int…

  • 严重05:42漏洞公告RustGitHub Advisory Database

    Atomic Server: Unauthenticated `/setup` invite grants write access to the entire Drive

    受影响: rust:atomic-server >= 0.29.0, <= 0.40.1 atomic-server provisions a well-known invite at {server}/setup with write = true, target = the Drive root, and usagesLeft = 1. Invite redemption ignores the redeemer's identity (for_agent: _ in server/src/plugins/invite.rs:22), so possession of the URL is the only requirement. An unauthenticated attacker who sends GET /setup?public-key= has the server create a new Agent and grant it write access to the entire Drive. On a freshly deployed (not-yet-claimed) instance this is a full server takeover…

  • 高危05:42漏洞公告RustGitHub Advisory Database

    Atomic Server: Arbitrary file read via user-controlled `internalId` in the `/download` handler (leaks root agent private key)

    受影响: rust:atomic-server >= 0.30.0, <= 0.40.1 The Commit apply path enforces no allowlist of writable properties, so any authenticated Agent can set the internalId string (datatype string, no character validation) on a resource it owns. The /download handler then uses that value verbatim as a filesystem path — file_path.push(internal_id); NamedFile::open(file_path) — with no sanitization and no containment check (server/src/handlers/download.rs:56-65). By setting internalId to a traversal path (../../../../etc/passwd) or an absolute path (…

  • 高危05:41漏洞公告RustGitHub Advisory Database

    Atomic Server: Stored XSS via uploaded files served inline (same-origin) on `/download` → account takeover

    受影响: rust:atomic-server >= 0.30.0, <= 0.40.1 Files uploaded via POST /upload are served back by GET /download/{path} using actix_files::NamedFile. For text/html and image/svg+xml, actix-files (0.6.6) sets Content-Disposition: inline, so the browser renders the file instead of downloading it. The /download route sets no Content-Security-Policy, no X-Content-Type-Options: nosniff, and no forced attachment (CSP exists only on the SPA route), and files are served from the same origin as the app UI. An authenticated Agent uploads evil.html con…

  • 中危01:13漏洞公告RustGitHub Advisory Database

    snark-verifier accepts non-canonical KZG accumulator limb encodings

    受影响: rust:snark-verifier < 0.2.5 → 0.2.5 KZG accumulator public-instance limbs were decoded without consistently enforcing canonical limb bounds before reconstructing elliptic-curve coordinates. In the generated EVM verifier, accumulator coordinates were reconstructed from public-instance limbs using shifted additions before point validation. The verifier checked the reconstructed point, but did not independently check that every limb was below the configured limb bound before reconstruction. Details PlonkProof::read takes accumulator…

11月16日周一

  • 18:32安全新闻LinuxRustThe Hacker News

    SANSAR Linux Cryptomining Malware Uses Modified NVIDIA Library to Hide GPU Activity

    A financially motivated threat activity cluster tracked as REF3364 has been attributed to a Linux-focused cryptocurrency mining operation that tampers with the readings used to detect high GPU workloads. Central to the intrusion is a toolkit called SANSAR, a Rust-based orchestrator that receives commands over the TOR anonymity network to manage CPU and GPU miners. The activity was observed in

  • 09:00版本发布RustRust Blog

    Enabling the parallel frontend on nightly

    TL;DR: We are enabling the parallel frontend of the Rust compiler on nightly by default, to find remaining issues in preparation for its stabilization. Context The Rust compiler has been using multiple threads to compile code in its "backend" part (using LLVM) for a long time. However, its "frontend" part (which includes type checking and borrow checking) has been executing sequentially, on a single thread, which of course limits the performance of the compiler. If you are interested in a more in-depth explanation of parallelism in the Rust compiler, see this previous post . The compiler fron…

11月14日周六

  • 低危04:20漏洞公告RustGitHub Advisory Database

    russh kex_done: Shared-secret callback runs before server host-key verification

    受影响: rust:russh >= 0.55.0, < 0.65.1 → 0.65.1 A malicious SSH server whose host key is rejected can still cause russh's client::Handler::kex_done() callback to execute with the raw key-exchange shared secret. Applications using the callback for its documented protocol-bridging purpose may derive keys, initialize a secondary data channel, or perform another externally visible action before russh calls check_server_key() and rejects the server. Details During the initial key exchange, russh calls kex_done() immediately after the server prove…

  • 低危04:10漏洞公告RustGitHub Advisory Database

    russh try_sign: asynchronous confirmation can sign after agent lock

    受影响: rust:russh = 0.65.0 → 0.65.1 In russh 0.65.0, a sign request for a confirmation-constrained key can retain and use the private key after another connection locks the agent. try_sign() snapshots an Arc before awaiting Agent::confirm() and does not revalidate the shared lock state after the await. An agent-forwarding peer can therefore obtain a signature while the agent is locked and every new request is being rejected. Details The agent's lock and key stores are shared by all connections. respond() reads the lock state once…

11月13日周五

  • 中危12:00漏洞公告LinuxRustJVN iPedia

    LinuxのLinux Kernelにおける有効期限後のメモリの解放の欠如に関する脆弱性

    Linuxカーネルにおいて、以下の脆弱性が修正されました。rust: block: GenDiskのクリーンアップパスを修正しました。GenDiskBuilder::build()は__blk_mq_alloc_disk()の後も失敗する可能性のある処理を含んでいますが、エラーパスでは外部キューのデータのみを回復しています。このため、一時的なgendiskとrequest_queueが後の解体までリークしてしまいます。呼び出し元が最後のArc<TagSet<T>>をbuild()に移していた場合、リークしたキューがタグセットのドロップ後もblk-mqの状態を保持してしまいます。一時的なgendisk参照をqueue_dataの回復前にput_disk()で解放することで、事前登録失敗パスを修正し、disk_release()が所有するキューを確実に解体できるようにしました。また、GenDisk::drop()をdel_gendisk()の後にput_disk()とペアにしました。RustのGenDiskがdevice_add_disk()で追加された後、del_gendisk()はそれを登録解除するだけであり、リリースパスを完了するには最終的なgendisk参照のドロップが必要となります。

11月12日周四

  • 09:00版本发布RustRust Blog

    Announcing Rust 1.100.0

    The Rust team is happy to announce a new version of Rust, 1.100.0. Rust is a programming language empowering everyone to build reliable and efficient software. If you have a previous version of Rust installed via rustup , you can get 1.100.0 with: $ rustup update stable If you don't have it already, you can get rustup from the appropriate page on our website, and check out the detailed release notes for 1.100.0 . If you'd like to help us out by testing future releases, you might consider updating locally to use the beta channel ( rustup default beta ) or the nightly channel ( rustup default n…

11月11日周三

  • 09:00版本发布RustRust Blog

    Google Summer of Code 2026 results

    The Rust Project participated in Google Summer of Code (GSoC) for the third time this year. This time we had 13 projects, and our dear contributors have been working very hard on them for several months. As usual, the projects had various durations, so while some of them have ended in August, the last one has only finished in November, so we have been waiting until we have all the results before publishing this blog post. We are very happy to announce that all 13 projects were successful and passed their final evaluation! We consider it to be a testament to the diligence of our contributors,…

11月9日周一

11月3日周二

  • 09:00版本发布RustRust Blog

    Announcing rustup 1.29.3

    The rustup team has published a new point release of rustup, 1.29.3. Rustup is the recommended tool to install Rust , a programming language that empowers everyone to build reliable and efficient software. What's new in rustup 1.29.3 This new patch release has fixed some minor regressions over the previous one: Fixed "Illegal instruction" error on certain x86_64 CPUs without SSE4.1. pr#5162 Fixed " lock() not supported" error on Solaris. pr#5167 Further details are available in the changelog ! How to update If you have a previous version of rustup installed, getting the new one is as easy as…

10月31日周六

10月30日周五

  • 高危01:40漏洞公告RustGitHub Advisory Database

    zip: legacy Shrink/Reduce/Implode decoder: denial of service from attacker-controlled ZIP64 uncompressed size

    受影响: rust:zip >= 5.1.0, < 9.0.0 → 9.0.0 A malicious 149-byte ZIP archive can cause a denial of service in applications that enable legacy-zip and use ZipArchive::extract(). An attacker-controlled ZIP64 uncompressed size triggers a capacity overflow panic in the Shrink decoder in optimized builds, potentially terminating the affected process. Details When reading a Shrink-compressed entry, ShrinkDecoder::read() buffers the compressed input and reserves output capacity using the entry's declared uncompressed size: rust if !self.stream_…

  • 高危01:40漏洞公告RustGitHub Advisory Database

    zip: Arbitrary file write outside the extraction directory, because ZipArchive::extract validates symlink targets lexically.

    受影响: rust:zip >= 7.2.0, < 9.0.0 → 9.0.0 - Verified version: zip 9.0.0-pre3 - Affected versions: 7.2.0 and later - Precondition: The attacker knows (or can guess) the absolute path of the extraction destination The validation applied to symlinks is purely lexical. As a result, an attacker can write arbitrary files outside the extraction directory through a symlink. Exploitation requires the attacker to know (or guess) the absolute path of the destination, but this is realistic in practice: CI workspaces, /opt/app, a fixed Downloads pa…

  • 中危01:40漏洞公告RustGitHub Advisory Database

    zip: AES Entry HMAC Authentication Bypass on Premature EOF

    受影响: rust:zip >= 0.6.0, < 9.0.0 → 9.0.0 An AES-encrypted (AE-x) entry's authentication code is verified only when the reader's byte counter lands exactly on zero. If the bounded entry reader reaches the archive's actual EOF before the attacker-controlled, header-declared compressed_size, the counter remains positive, the HMAC is never read or compared, and the truncated, unauthenticated plaintext is returned as a clean end of stream. A zero-payload entry also returns before authentication. An attacker who does not know the password c…

  • 高危01:40漏洞公告RustGitHub Advisory Database

    zip: Unbounded Symlink-Target Handling Can Abort Or Exhaust Memory During Extraction

    受影响: rust:zip >= 1.3.0, < 9.0.0 → 9.0.0 The symbolic-link branch of ZipArchive::extract_internal() allocates a buffer using an attacker-declared size before reading any entry data. A 112-byte archive terminates the extracting process with SIGABRT through this infallible allocation. Details rust #[cfg(any(unix, windows))] if file.is_symlink() { let mut target = Vec::with_capacity(file.size() as usize); // @audit unbounded memory allocation file.read_to_end(&mut target)?; drop(file); make_symlink(&outpath, &target, &self.shared.files)?…

  • Cedar: JSON template is in scope missing slot-id validation allows link panic and decision divergence

    受影响: rust:cedar-policy >= 4.0.0, < 4.11.1 → 4.11.1, rust:cedar-policy >= 3.0.0, < 3.4.3 → 3.4.3, npm:@cedar-policy/cedar-wasm >= 4.0.1, < 4.11.1 → 4.11.1, npm:@cedar-policy/cedar-wasm >= 3.2.0, < 3.4.3 → 3.4.3 Cedar users must be using all of the following features to be affected by this advisory: JSON format policies, policy templates, and the is in scope condition. This advisory only affects JSON-formatted Cedar policy templates containing is in scope conditions that are malformed according to the Cedar syntax. It does not affect syntactically well-formed policies. Users of Cedar who author policies in the JSON format were able to write Cedar policies using the is in condition with an incorrect slo…

10月29日周四

10月28日周三

  • 低危01:08漏洞公告RustGitHub Advisory Database

    rustls: ECH rejection can expose buffered application data to authenticated outer server before `ech_required` alert

    受影响: rust:rustls >= 0.23.44, < 0.23.46 → 0.23.46, rust:rustls >= 0.24.0-dev.1, < 0.24.0-dev.2 → 0.24.0-dev.2 In rustls 0.23.44 and 0.23.45, application data that a client buffers before the handshake completes is sent to the server even when the server rejects Encrypted Client Hello (ECH). When the server rejects ECH, the client completes the handshake with the outer ClientHello and authenticates the server against the ECH config's public_name. At the end of the handshake, start_traffic() encrypts and queues any plaintext buffered by ClientConnection::writer(). It does this before checking for EchStat…

  • 低危01:08漏洞公告RustGitHub Advisory Database

    rustls: An unauthenticated ServerHello poisons the per-name key-exchange record, so later ClientHellos carry only a classical X25519 share

    受影响: rust:rustls < 0.23.46 → 0.23.46, rust:rustls >= 0.24.0-dev.1, < 0.24.0-dev.2 → 0.24.0-dev.2 The client records the server-selected key-exchange group per server name when it processes the ServerHello, before the server is authenticated. A network attacker can answer one connection attempt for a target name with a ServerHello that selects X25519 and close the connection. Later ClientHellos for that name carry one X25519 share while supported_groups still lists X25519MLKEM768 first. If the server accepts that share instead of sending a HelloRetryRequest, the handshake completes with cla…

  • 中危01:08漏洞公告RustGitHub Advisory Database

    Rustls: Session Debug formatting exposes TLS master secrets and resumption PSKs

    受影响: rust:rustls < 0.23.46 → 0.23.46, rust:rustls >= 0.24.0-dev.1, < 0.24.0-dev.2 → 0.24.0-dev.2 Formatting a client session value with Debug exposes its TLS 1.2 master secret or TLS 1.3 resumption PSK. A custom session store that logs these values can disclose keys to readers of the logs. Ordinary connection and built-in cache diagnostics remain redacted, and the session-store interface already warns that its values are sensitive. Details Derived formatters traverse the session's secret-bearing fields. This conflicts with the project's explicit [key-material redaction policy](https://gith…