{"id":"GHSA-xx64-wwv2-hcqq","aliases":["GHSA-xx64-wwv2-hcqq","RUSTSEC-2026-0113"],"related":[],"kind":"vulnerability","state":"published","title":"astral-tokio-tar: `unpack_in` can chmod arbitrary directories by following symlinks","summary":"### Impact\n\nIn versions 0.6.0 and earlier of astral-tokio-tar, the `unpack_in` API could inadvertently modify the permissions of external (i.e. non-archive) directories outside of the archive. An attacker could use this to contrite a tar archive that maliciously changes directory permissions outside of its intended hierarchy. This flaw only affects directories; individual file permissions cannot be modified via it.\n\nSee GHSA-j4xf-2g29-59ph for the equivalent flaw in the `tar` crate.\n\n### Patches\n\nVersions 0.6.1 and newer of astral-tokio-tar use `fs::symlink_metdata` rather than `fs::metadata`, avoiding the traversal. \n\n### Workarounds\n\nUsers are advised to upgrade to version 0.6.1 or newer to address this advisory.\n\nUsers should experience no breaking changes as a result of the patch above.\n\n### Resources\n\n- GHSA-j4xf-2g29-59ph for the original `tar` vulnerability\n\n### Attribution\n\n- Reporter: Adam Harvey (@lawngnome)","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"### Impact\n\nIn versions 0.6.0 and earlier of astral-tokio-tar, the `unpack_in` API could inadvertently modify the permissions of external (i.e. non-archive) directories outside of the archive. An attacker could use this to contrite a tar archive that maliciously changes directory permissions outside of its intended hierarchy. This flaw only affects directories; individual file permissions cannot be modified via it.\n\nSee GHSA-j4xf-2g29-59ph for the equivalent flaw in the `tar` crate.\n\n### Patches\n\nVersions 0.6.1 and newer of astral-tokio-tar use `fs::symlink_metdata` rather than `fs::metadata`, avoiding the traversal. \n\n### Workarounds\n\nUsers are advised to upgrade to version 0.6.1 or newer to address this advisory.\n\nUsers should experience no breaking changes as a result of the patch above.\n\n### Resources\n\n- GHSA-j4xf-2g29-59ph for the original `tar` vulnerability\n\n### Attribution\n\n- Reporter: Adam Harvey (@lawngnome)","format":"markdown","source":"ghsa"},{"lang":"en","text":"In versions 0.6.0 and earlier of astral-tokio-tar, the unpack_in API could\ninadvertently modify the permissions of external (i.e. non-archive) directories\noutside of the archive. An attacker could use this to contrite a tar archive\nthat maliciously changes directory permissions outside of its intended\nhierarchy. This flaw only affects directories; individual file permissions\ncannot be modified via it.\n\nSee GHSA-j4xf-2g29-59ph for the equivalent flaw in the tar crate.","format":"markdown","source":"rustsec"}],"published":"2026-04-27T12:00:00.000Z","modified":"2026-10-12T18:00:09.237Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U","rating":"LOW"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U","rating":"LOW"}],"cwes":["CWE-61"],"affected":[{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.6.1"}],"ecosystem":"crates.io","package":"astral-tokio-tar","purl":"pkg:cargo/astral-tokio-tar","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.0.0-0","status":"affected","fixed":"0.6.1"}],"ecosystem":"crates.io","package":"astral-tokio-tar","purl":"pkg:cargo/astral-tokio-tar","source":"rustsec"}],"references":[{"url":"https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-xx64-wwv2-hcqq","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-xx64-wwv2-hcqq","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/astral-sh/tokio-tar","tags":["package"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0113.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/astral-tokio-tar","tags":["package"],"sources":["rustsec"]},{"url":"https://github.com/astral-sh/tokio-tar/commit/f1fa37043a6fe798dcd1fd4b3000d889ac35b183","tags":["web"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-xx64-wwv2-hcqq","url":"https://github.com/advisories/GHSA-xx64-wwv2-hcqq","licence":"CC-BY-4.0","modified":"2026-09-10T03:51:07.301Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0113","url":"https://rustsec.org/advisories/RUSTSEC-2026-0113.html","licence":"CC0-1.0","modified":"2026-10-12T18:00:09.237Z"}],"updatedAt":"2026-11-25T22:56:43.342Z"}