{"id":"CVE-2025-62518","published":"2025-10-21T16:13:02Z","modified":"2025-10-22T13:23:33Z","title":"astral-tokio-tar Vulnerable to PAX Header Desynchronization","vendor":"astral-sh","product":"tokio-tar","tier":"tail","description":{"text":"astral-tokio-tar is a tar archive reading/writing library for async Rust. Versions of astral-tokio-tar prior to 0.5.6 contain a boundary parsing vulnerability that allows attackers to smuggle additional archive entries by exploiting inconsistent PAX/ustar header handling. When processing archives with PAX-extended headers containing size overrides, the parser incorrectly advances stream position based on ustar header size (often zero) instead of the PAX-specified size, causing it to interpret file content as legitimate tar headers. This issue has been patched in version 0.5.6. There are no workarounds.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.1,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00645,"percentile":0.4552,"provenance":"source"},"cwes":[{"id":"CWE-843","name":"Access of Resource Using Incompatible Type"}],"references":[{"url":"https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9","tags":["x_refsource_MISC"]},{"url":"https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318","tags":["x_refsource_MISC"]},{"url":"https://edera.dev/stories/tarmageddon","tags":["x_refsource_MISC"]},{"url":"https://github.com/edera-dev/cve-tarmageddon","tags":["x_refsource_MISC"]}],"priority":{"score":19.8,"factors":[{"name":"EPSS percentile","points":9.1},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.67}]},"exploitSources":{"pocGithub":{"count":1,"skipped":1,"earliest":"2025-08-21","earliestUrl":"https://github.com/edera-dev/cve-tarmageddon","repos":[{"name":"edera-dev/cve-tarmageddon","url":"https://github.com/edera-dev/cve-tarmageddon","stars":19,"created":"2025-08-21"}]},"first":{"date":"2025-08-21","source":"PoC-in-GitHub","url":"https://github.com/edera-dev/cve-tarmageddon"},"provenance":"source"},"vendorSlug":"astral-sh","affectedVersions":[{"vendor":"astral-sh","product":"tokio-tar","versions":["< 0.5.6"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"total","timestamp":"2025-10-22T13:18:16.414919Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"astral-tokio-tar","vulnerableRanges":["<0.5.6",">=0.0.0-0, <0.5.6"],"patched":["0.5.6"],"from":["GHSA-j5gw-2vrg-8fgx","RUSTSEC-2025-0110"],"provenance":"source"},{"ecosystem":"crates.io","package":"tokio-tar","vulnerableRanges":["<=0.3.1",">=0.0.0-0"],"patched":[],"from":["GHSA-j5gw-2vrg-8fgx","RUSTSEC-2025-0111"],"provenance":"source"}],"euvd":{"id":"EUVD-2025-35176","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-astral-sh-tokio-tar-cve-2025-62518","children":[{"from":"CVE-2025-62518","to":"CVE-2026-33055","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-gchp-q4r4-x4ff","via":"reference","url":"https://www.cve.org/CVERecord?id=CVE-2025-62518"}]}],"packageHistory":[{"cve":"CVE-2025-59825","published":"2025-09-23","fixed":"0.5.4","kev":false,"link":{"from":"CVE-2025-59825","to":"CVE-2025-62518","relation":"successor","confidence":"medium","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"crates.io:astral-tokio-tar","fromFixed":"0.5.4","toFixed":"0.5.6","daysApart":28},{"kind":"similar","provenance":"machine","score":0.41,"basis":"same product + description similarity"}]}},{"cve":"CVE-2025-62518","published":"2025-10-21","fixed":"0.5.6","kev":false},{"cve":"CVE-2026-32766","published":"2026-03-20","fixed":"0.6.0","kev":false}],"package":"crates.io:astral-tokio-tar"}}