Link Following Affecting rust-gdb package, versions <0:1.94.0-1.amzn2023.0.2


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.01% (2nd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-RUSTGDB-16068075
  • published15 Apr 2026
  • disclosed20 Mar 2026

Introduced: 20 Mar 2026

NewCVE-2026-33056  (opens in a new tab)
CWE-59  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 rust-gdb to version 0:1.94.0-1.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2026-1568.

NVD Description

Note: Versions mentioned in the description apply only to the upstream rust-gdb package and not the rust-gdb package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1