{"answers":{"affected":"3 open source packages ship an affected version, including astral-tokio-tar.","exploited":"There is no known exploitation of GHSA-3cv2-h65g-fgmm in the wild and no public exploit code.","fix":"Upgrade astral-tokio-tar to 0.6.2 or later.","what":"GHSA-3cv2-h65g-fgmm is a path traversal vulnerability in astral-tokio-tar, published on 18 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for GHSA-3cv2-h65g-fgmm and fix it if it is affected.\n\nWhat it is: GHSA-3cv2-h65g-fgmm is a path traversal vulnerability in astral-tokio-tar, published on 18 May 2026. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of GHSA-3cv2-h65g-fgmm in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- astral-tokio-tar (crates.io): affected all versions; fixed in 0.6.2\n- astral-tokio-tar (crates.io): affected all versions; fixed in 0.6.2\n- astral-tokio-tar (crates.io): affected from 0.0.0-0; fixed in 0.6.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-3cv2-h65g-fgmm/ (Markdown: https://insights.sbomify.com/GHSA-3cv2-h65g-fgmm/index.md)","id":"GHSA-3cv2-h65g-fgmm","markdown":"https://insights.sbomify.com/GHSA-3cv2-h65g-fgmm/index.md","name":"GHSA-3cv2-h65g-fgmm","record":{"aliases":["RUSTSEC-2026-0145"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_modify"],"network_reachable":"yes","non_default_config":false,"product_category":"Rust tar library","requires_auth":"none","summary":"Attackers can smuggle unexpected files onto a victim's filesystem by exploiting a PAX header desynchronization bug in the astral-tokio-tar library.","user_interaction":"required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"### Impact\n\nVersions of astral-tokio-tar prior to 0.6.2 contain a PAX header interpretation bug that allows manipulated entries to be made selectively visible or invisible during extraction with astral-tokio-tar versus other tar implementations. An attacker could use this differential to smuggle unexpected files onto a victim's filesystem.\n\n### Details\n\nWhen a tar stream contains multiple \"header\" entries prior to a file entry, astral-tokio-tar applies the PAX header (`x`) to the next entry in the stream, regardless of type. For example, a stream of `x -\u003e L -\u003e file` (PAX, GNU longname, file) would result in `x`'s extensions being applied to `L` rather than to `file`.\n\n[Per POSIX pax](https://pubs.opengroup.org/onlinepubs/9799919799/utilities/pax.html), this is incorrect: a PAX header always applies to a file entry, not any intermediary entries. See the \"pax Header Block\" section for the specific prescription there.\n\nAs a result of this, an attacker can contrive a tar containing a sequence of tar headers such that astral-tokio-tar applies the PAX header's size extension to the next header in sequence, effectively desynchronizing the stream and enabling astral-tokio-tar specific skippage/extraction of members. In other words, a file can be contrived to extract differently on astral-tokio-tar than on other tar parsers.\n\n### Patches\n\nVersions 0.6.2 and newer of astral-tokio-tar address this differential.\n\n### Workarounds\n\nUsers are advised to upgrade to version 0.6.1 or newer to address this advisory.\n\nThere is no workaround other than upgrading. Users should experience no breaking changes as a result of the upgrade.\n\n### Resources\n\n- GHSA-j5gw-2vrg-8fgx is a similar PAX desynchronization bug\n- GHSA-fp55-jw48-c537 is another similar PAX desynchronization bug","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"astral-tokio-tar has a PAX Header Desynchronization issue","id":"GHSA-3cv2-h65g-fgmm","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.6.2"],"introduced":["0"],"last_affected":[],"package":"astral-tokio-tar","purl":null,"source":"GHSA-3cv2-h65g-fgmm"},{"ecosystem":"crates.io","fixed":["0.6.2"],"introduced":["0"],"last_affected":[],"package":"astral-tokio-tar","purl":"pkg:cargo/astral-tokio-tar","source":"GHSA-3cv2-h65g-fgmm"},{"ecosystem":"crates.io","fixed":["0.6.2"],"introduced":["0.0.0-0"],"last_affected":[],"package":"astral-tokio-tar","purl":"pkg:cargo/astral-tokio-tar","source":"RUSTSEC-2026-0145"}],"products":null,"published":"2026-05-18","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Attackers can smuggle unexpected files onto a victim's filesystem by exploiting a PAX header desynchronization bug in the astral-tokio-tar library.","url":"https://insights.sbomify.com/GHSA-3cv2-h65g-fgmm/"}