Lookup for vulnerable packages by Package URL.

Purlpkg:apk/alpine/rust@1.91.1-r1?arch=x86&distroversion=v3.23&reponame=main
Typeapk
Namespacealpine
Namerust
Version1.91.1-r1
Qualifiers
arch x86
distroversion v3.23
reponame main
Subpath
Is_vulnerablefalse
Next_non_vulnerable_versionnull
Latest_non_vulnerable_versionnull
Affected_by_vulnerabilities
Fixing_vulnerabilities
0
url VCID-qj1y-b8m1-hyfm
vulnerability_id VCID-qj1y-b8m1-hyfm
summary
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!
references
0
reference_url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-33056.json
reference_id
reference_type
scores
0
value 4.4
scoring_system cvssv3
scoring_elements CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:N
url https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2026-33056.json
1
reference_url https://api.first.org/data/v1/epss?cve=CVE-2026-33056
reference_id
reference_type
scores
0
value 0.00011
scoring_system epss
scoring_elements 0.01422
published_at 2026-04-16T12:55:00Z
1
value 0.00011
scoring_system epss
scoring_elements 0.01431
published_at 2026-04-12T12:55:00Z
2
value 0.00011
scoring_system epss
scoring_elements 0.0144
published_at 2026-04-11T12:55:00Z
3
value 0.00011
scoring_system epss
scoring_elements 0.01448
published_at 2026-04-09T12:55:00Z
4
value 0.00011
scoring_system epss
scoring_elements 0.01446
published_at 2026-04-08T12:55:00Z
5
value 0.00011
scoring_system epss
scoring_elements 0.01441
published_at 2026-04-07T12:55:00Z
6
value 0.00011
scoring_system epss
scoring_elements 0.01436
published_at 2026-04-18T12:55:00Z
7
value 0.00011
scoring_system epss
scoring_elements 0.01432
published_at 2026-04-13T12:55:00Z
8
value 0.00012
scoring_system epss
scoring_elements 0.01916
published_at 2026-04-24T12:55:00Z
9
value 0.00012
scoring_system epss
scoring_elements 0.01922
published_at 2026-04-21T12:55:00Z
url https://api.first.org/data/v1/epss?cve=CVE-2026-33056
2
reference_url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33056
reference_id
reference_type
scores
url https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2026-33056
3
reference_url https://github.com/alexcrichton/tar-rs
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value 5.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://github.com/alexcrichton/tar-rs
4
reference_url https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value 5.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
3
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-20T12:59:15Z/
url https://github.com/alexcrichton/tar-rs/commit/17b1fd84e632071cb8eef9d3709bf347bd266446
5
reference_url https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
2
value 5.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
3
value MODERATE
scoring_system generic_textual
scoring_elements
4
value Track
scoring_system ssvc
scoring_elements SSVCv2/E:N/A:N/T:P/P:M/B:A/M:M/D:T/2026-03-20T12:59:15Z/
url https://github.com/alexcrichton/tar-rs/security/advisories/GHSA-j4xf-2g29-59ph
6
reference_url https://nvd.nist.gov/vuln/detail/CVE-2026-33056
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value 5.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://nvd.nist.gov/vuln/detail/CVE-2026-33056
7
reference_url https://rustsec.org/advisories/RUSTSEC-2026-0067.html
reference_id
reference_type
scores
0
value 6.5
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N
1
value 5.1
scoring_system cvssv4
scoring_elements CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
2
value MODERATE
scoring_system generic_textual
scoring_elements
url https://rustsec.org/advisories/RUSTSEC-2026-0067.html
8
reference_url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1131481
reference_id 1131481
reference_type
scores
url https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1131481
9
reference_url https://bugzilla.redhat.com/show_bug.cgi?id=2449490
reference_id 2449490
reference_type
scores
url https://bugzilla.redhat.com/show_bug.cgi?id=2449490
10
reference_url https://github.com/advisories/GHSA-j4xf-2g29-59ph
reference_id GHSA-j4xf-2g29-59ph
reference_type
scores
0
value MODERATE
scoring_system cvssv3.1_qr
scoring_elements
url https://github.com/advisories/GHSA-j4xf-2g29-59ph
11
reference_url https://usn.ubuntu.com/8138-1/
reference_id USN-8138-1
reference_type
scores
url https://usn.ubuntu.com/8138-1/
12
reference_url https://usn.ubuntu.com/8138-2/
reference_id USN-8138-2
reference_type
scores
url https://usn.ubuntu.com/8138-2/
13
reference_url https://usn.ubuntu.com/8139-1/
reference_id USN-8139-1
reference_type
scores
url https://usn.ubuntu.com/8139-1/
14
reference_url https://usn.ubuntu.com/8168-1/
reference_id USN-8168-1
reference_type
scores
url https://usn.ubuntu.com/8168-1/
15
reference_url https://usn.ubuntu.com/8168-2/
reference_id USN-8168-2
reference_type
scores
url https://usn.ubuntu.com/8168-2/
fixed_packages
0
url pkg:apk/alpine/rust@1.91.1-r1?arch=x86&distroversion=v3.23&reponame=main
purl pkg:apk/alpine/rust@1.91.1-r1?arch=x86&distroversion=v3.23&reponame=main
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:apk/alpine/rust@1.91.1-r1%3Farch=x86&distroversion=v3.23&reponame=main
aliases CVE-2026-33056, GHSA-j4xf-2g29-59ph
risk_score 3.1
exploitability 0.5
weighted_severity 6.2
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-qj1y-b8m1-hyfm
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:apk/alpine/rust@1.91.1-r1%3Farch=x86&distroversion=v3.23&reponame=main