{"id":"EUVD-2025-35176","revision":null,"records":[{"revision":"b0203507f1754183b0883c112a3da40d","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2025-62518","aliases":[],"title":"astral-tokio-tar Vulnerable to PAX Header Desynchronization","description":"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.","state":0,"publishedAt":"2025-10-21T16:13:02.646+00:00","modifiedAt":"2025-10-22T13:23:33.408+00:00","affected":[{"ecosystem":"Vendor product","name":"tokio-tar","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"vendor\": \"astral-sh\",\n                    \"product\": \"tokio-tar\",\n                    \"versions\": [\n                        {\n                            \"version\": \"< 0.5.6\",\n                            \"status\": \"affected\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"severity":"HIGH"}],"references":["https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx","https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9","https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318","https://edera.dev/stories/tarmageddon","https://github.com/edera-dev/cve-tarmageddon"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2025-62518","license":"CVE Program Terms of Use","key":"cve-program:CVE-2025-62518","identifiers":["CVE-2025-62518"]},"retained":false,"historicalAffected":[]},{"revision":"f00e865e95a14d809e37966ae1126968","observedAt":"2026-11-09T04:05:55.672+00:00","statement":{"source":"euvd","id":"EUVD-2025-35176","aliases":["CVE-2025-62518","GHSA-j5gw-2vrg-8fgx"],"title":"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 inconsi…","description":"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.","state":0,"publishedAt":null,"modifiedAt":null,"affected":[],"metrics":[{"system":"EUVD CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"severity":null}],"references":["https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx","https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9","https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318","https://edera.dev/stories/tarmageddon","https://github.com/edera-dev/cve-tarmageddon"],"sourceUrl":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2025-35176","license":"ENISA EUVD · source terms and attribution apply","enrichment":{"sourceStatus":null,"weaknesses":[],"productCriteria":[],"sourceDates":{"datePublished":"Oct 21, 2025, 4:13:02 PM","dateUpdated":"Oct 22, 2025, 1:23:33 PM"},"relatedAdvisories":[{"id":"openSUSE-SU-2025:15658-1","title":"python311-uv-0.9.5-1.1 on GA media","vulnerabilityIds":["CVE-2025-62518"]},{"id":"openSUSE-SU-2026:20026-1","title":"Security update for python-uv","vulnerabilityIds":["CVE-2025-58160","CVE-2025-62518"]},{"id":"msrc_CVE-2025-62518","title":"astral-tokio-tar Vulnerable to PAX Header Desynchronization","vulnerabilityIds":["CVE-2025-62518"]},{"id":"SUSE-SU-2026:20077-1","title":"Security update for python-uv","vulnerabilityIds":["CVE-2025-58160","CVE-2025-62518"]}],"note":"EUVD source date text has no stated timezone and is retained without inventing a UTC instant. Related bulletin membership is not an alias, common cause or applicability claim. A missing vector with a zero score is treated as unrated. Complete vendor/product and underlying source evidence remains in the original JSON."},"key":"euvd:EUVD-2025-35176","identifiers":["EUVD-2025-35176","CVE-2025-62518","GHSA-j5gw-2vrg-8fgx"]},"retained":false,"historicalAffected":[]},{"revision":"572e393227ed4920a8bb9850e1c47c31","observedAt":"2026-10-25T03:17:29.935+00:00","statement":{"source":"nvd","id":"CVE-2025-62518","aliases":[],"title":"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 inconsi…","description":"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.","state":0,"publishedAt":"2025-10-21T17:15:40.563+00:00","modifiedAt":"2026-10-08T11:10:00.25+00:00","affected":[],"metrics":[{"system":"CVSS 3.1 · security-advisories@github.com · Secondary","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":8.1,"severity":"HIGH"}],"references":["https://edera.dev/stories/tarmageddon","https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318","https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx","https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9","https://github.com/edera-dev/cve-tarmageddon"],"sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2025-62518","license":"NIST NVD usage terms; underlying source attribution retained","enrichment":{"sourceStatus":"Deferred","weaknesses":["CWE-843"],"productCriteria":[],"sourceDates":{"published":"2025-10-21T17:15:40.563","lastModified":"2026-10-08T11:10:00.250"},"relatedAdvisories":[],"note":"NVD analysis and CPE criteria are source context, not proof that a package or your environment is affected. Complete affected data, logical configurations and SSVC are retained in the original JSON."},"key":"nvd:CVE-2025-62518","identifiers":["CVE-2025-62518"]},"retained":false,"historicalAffected":[]},{"revision":"8c5a9876af18445e95c704af5543fe95","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"GHSA-j5gw-2vrg-8fgx","aliases":["CVE-2025-62518","RUSTSEC-2025-0110","RUSTSEC-2025-0111"],"title":"astral-tokio-tar Vulnerable to PAX Header Desynchronization","description":"## Summary\n\nVersions 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.\n\nThis vulnerability was disclosed to multiple Rust tar parsers, all derived from the original `async-tar` fork of `tar-rs`.\n\n## Details\n\n### Vulnerability Description\n\nThe vulnerability stems from inconsistent handling of PAX extended headers versus ustar headers when determining file data boundaries. Specifically:\n\n1. **PAX header** correctly specifies the file size (e.g., `size=1048576`)\n2. **ustar header** incorrectly specifies zero size (`size=000000000000`)\n3. **tokio-tar** advances the stream position based on the ustar size (0 bytes)\n4. **Inner content** is then interpreted as legitimate outer archive entries\n\n### Attack Mechanism\n\nWhen a TAR file contains:\n\n- An outer entry with PAX `size=N` but ustar `size=0`\n- File data that begins with valid TAR header structures\n- The parser treats inner content as additional outer entries\n\nThis creates a **header/data desynchronization** where the parser's position becomes misaligned with actual file boundaries.\n\n### Root Cause\n\n```rust\n// Vulnerable: Uses ustar size instead of PAX override\nlet file_size = header.size(); // Returns 0 from ustar field\nlet next_pos = current_pos + 512 + pad_to_512(file_size); // Advances 0 bytes\n\n// Fixed: Apply PAX overrides before position calculation\nlet mut file_size = header.size();\nif let Some(pax_size) = pending_pax.get(\"size\") {\n    file_size = pax_size.parse().unwrap();\n}\nlet next_pos = current_pos + 512 + pad_to_512(file_size); // Correct advance\n\n```\n\n## Impact\n\nThe impact of this vulnerability depends on where `astral-tokio-tar` is used, and whether it is used to extract untrusted tar archives. If used to extract untrusted inputs, it may result in unexpected attacker-controlled access to the filesystem, in turn potential resulting in arbitrary code execution or credential exfiltration.\n\nSee [**GHSA-w476-p2h3-79g9**](https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9) for how this vulnerability affects `uv`, `astral-tokio-tar`'s primary downstream user. Observe that **unlike** this advisory,` uv`'s advisory is considered **low severity** due to overlap with intentional existing capabilities in source distributions. \n\n## Workarounds\n\nUsers are advised to upgrade to version 0.5.6 or newer to address this advisory.\n\nThere is no workaround other than upgrading.\n\n## Timeline\n\n| Date | Event |\n| --- | --- |\n| Aug 21, 2025 | Vulnerability discovered by Edera Security Team |\n| Aug 21, 2025 | Initial analysis and PoC confirmed |\n| Aug 22, 2025 | Maintainers notified (privately) |\n| Aug 25, 2025 | Private patch and test suite shared |\n| Oct 7, 2025 | Text freeze for GHSA |\n| Oct 21, 2025 | Coordinated public disclosure and patched releases |\n\n## Credits\n\n- **Discovered by:** Steven Noonan (Edera) and Alex Zenla (Edera)\n- **Coordinated disclosure:** Ann Wallace (Edera)","state":0,"publishedAt":"2025-10-21T15:42:51+00:00","modifiedAt":"2026-09-10T03:50:29.9255921+00:00","affected":[{"ecosystem":"crates.io","name":"astral-tokio-tar","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"0.5.6"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"crates.io","name":"tokio-tar","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"last_affected","version":"0.3.1"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"HIGH"}],"references":["https://github.com/astral-sh/tokio-tar/security/advisories/GHSA-j5gw-2vrg-8fgx","https://github.com/astral-sh/uv/security/advisories/GHSA-w476-p2h3-79g9","https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318","https://edera.dev/stories/tarmageddon","https://github.com/astral-sh/tokio-tar","https://github.com/edera-dev/cve-tarmageddon","https://rustsec.org/advisories/RUSTSEC-2025-0110.html","https://rustsec.org/advisories/RUSTSEC-2025-0111.html"],"sourceUrl":"https://github.com/advisories/GHSA-j5gw-2vrg-8fgx","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-j5gw-2vrg-8fgx","identifiers":["GHSA-j5gw-2vrg-8fgx","CVE-2025-62518","RUSTSEC-2025-0110","RUSTSEC-2025-0111"]},"retained":false,"historicalAffected":[]},{"revision":"2934597ddfd144ef9d978cd023ad732f","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2025-0110","aliases":["CVE-2025-62518","GHSA-j5gw-2vrg-8fgx","RUSTSEC-2025-0111"],"title":"astral-tokio-tar Vulnerable to PAX Header Desynchronization","description":"Versions of astral-tokio-tar prior to 0.5.6 contain a boundary parsing\nvulnerability that allows attackers to smuggle additional archive entries by\nexploiting inconsistent PAX/ustar header handling. When processing archives with\nPAX-extended headers containing size overrides, the parser incorrectly advances\nstream position based on ustar header size (often zero) instead of the\nPAX-specified size, causing it to interpret file content as legitimate tar\nheaders.\n\nThis vulnerability was disclosed to multiple Rust tar parsers, all derived from\nthe original async-tar fork of tar-rs.\n\nFor additional information see\n[Edera's blog post](https://edera.dev/stories/tarmageddon).","state":0,"publishedAt":"2025-10-21T12:00:00+00:00","modifiedAt":"2026-10-12T18:00:11.4895627+00:00","affected":[{"ecosystem":"crates.io","name":"astral-tokio-tar","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"},{"kind":"fixed","version":"0.5.6"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N","score":null,"severity":null}],"references":["https://crates.io/crates/astral-tokio-tar","https://rustsec.org/advisories/RUSTSEC-2025-0110.html","https://github.com/astral-sh/tokio-tar/commit/22b3f884adb7a2adf1d3a8d03469533f5cbc8318"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2025-0110","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2025-0110","identifiers":["RUSTSEC-2025-0110","CVE-2025-62518","GHSA-j5gw-2vrg-8fgx","RUSTSEC-2025-0111"]},"retained":false,"historicalAffected":[]},{"revision":"bbcdc9b85a5446849e5e77a8bc24a08c","observedAt":"2026-10-24T13:19:54.901+00:00","statement":{"source":"osv","id":"RUSTSEC-2025-0111","aliases":["CVE-2025-62518","GHSA-j5gw-2vrg-8fgx","RUSTSEC-2025-0110"],"title":"`tokio-tar` parses PAX extended headers incorrectly, allows file smuggling","description":"The archive reader incorrectly handles PAX extended headers, when the ustar\nheader incorrectly specifies zero size (`size=000000000000`), while a PAX\nheader specifies a non-zero size, `tokio-tar::Archive` is going to read the\nfile content as tar entry header.\n\nThis can be used by a tar file to present different content to `tokio-tar`\ncompared to other tar reader implementations.\n\nThis bug is also known as `CVE-2025-62518` and `GHSA-j5gw-2vrg-8fgx`, as those\ncrates share a common ancestor codebase.\n\nThe `tokio-tar` crate is archived and no longer maintained, we recommend you\nswitch to an alternative crate such as:\n- [`astral-tokio-tar`](https://crates.io/crates/astral-tokio-tar)","state":0,"publishedAt":"2025-10-21T12:00:00+00:00","modifiedAt":"2026-02-04T02:35:07.255927+00:00","affected":[{"ecosystem":"crates.io","name":"tokio-tar","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0.0.0-0"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://crates.io/crates/tokio-tar","https://rustsec.org/advisories/RUSTSEC-2025-0111.html","https://edera.dev/stories/tarmageddon"],"sourceUrl":"https://osv.dev/vulnerability/RUSTSEC-2025-0111","license":"OSV · upstream source license applies","key":"osv:RUSTSEC-2025-0111","identifiers":["RUSTSEC-2025-0111","CVE-2025-62518","GHSA-j5gw-2vrg-8fgx","RUSTSEC-2025-0110"]},"retained":false,"historicalAffected":[]}],"coverage":[{"source":"cisa-kev:global","scope":"Complete CISA KEV catalog; all vendors. Missing entries do not establish absence of exploitation.","generation":"2026-11-10T10:21:23.1769119+00:00","complete":true,"records":1773,"lastAttemptAt":"2026-11-10T10:21:23.1769119+00:00","lastSuccessAt":"2026-11-10T10:21:23.4268898+00:00","error":null,"lastVerifiedAt":"2026-11-10T10:21:23.4268987+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"cve-program","scope":"Official CVE Program baseline and cumulative hourly delta; all vendors, published and rejected records","generation":"cve-8859cf40d4337e24bd2f258cc7778fbad01bb24c79d057aaf34cf1dfc6f8917d-8bdcdeeb414e06ff50ed637d818ac25d52680d19f71fc0ebe3f4c4b3f836ed38","complete":true,"records":421927,"lastAttemptAt":"2026-11-10T10:21:22.8157744+00:00","lastSuccessAt":"2026-11-10T09:21:38.1064889+00:00","error":null,"lastVerifiedAt":"2026-11-10T10:21:22.8157744+00:00","snapshotPublishedAt":"2026-11-10T09:20:43+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"euvd","scope":"Rolling EUVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global EUVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-2e6a476534094233b48f2f0b6da5cf35","complete":true,"records":13689,"lastAttemptAt":"2026-11-10T10:21:50.2500014+00:00","lastSuccessAt":"2026-11-10T06:05:35.03+00:00","error":null,"lastVerifiedAt":"2026-11-10T06:05:35.03+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13742,"expectedIdentifiers":13742,"failedIdentifiers":0},{"source":"first-epss:nuget","scope":"FIRST EPSS for explicit CVE aliases in the collected public NuGet archive. Not a global EPSS backfill.","generation":"2026-11-10T10:21:23.1769119+00:00","complete":true,"records":1096,"lastAttemptAt":"2026-11-10T10:21:23.1769119+00:00","lastSuccessAt":"2026-11-10T10:21:23.4276529+00:00","error":null,"lastVerifiedAt":"2026-11-10T10:21:23.4276532+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"nvd","scope":"Rolling NVD lookups of CVE aliases in current public OSV archives; 500 identifiers per refresh, rechecked after 48 hours. Not a global NVD catalog. Successful not-found lookups count as checked; they do not imply withdrawal or safety. No reader inventory is sent.","generation":"enrichment-b0b0499af228434598651aa5d221386e","complete":false,"records":13695,"lastAttemptAt":"2026-11-10T10:21:49.6403901+00:00","lastSuccessAt":"2026-11-10T10:21:49.637+00:00","error":"100 identifier lookups failed; latest failures include request timeout. Other identifiers were checked independently.","lastVerifiedAt":"2026-11-10T10:21:49.637+00:00","snapshotPublishedAt":null,"importing":false,"stagedRecords":0,"checkedIdentifiers":13642,"expectedIdentifiers":13742,"failedIdentifiers":100},{"source":"osv:Go","scope":"Complete OSV Go ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"go-cdffb4589856378aa42e8d1bd4a6c74e27a180d8160bf764c44715ef760f0a62","complete":true,"records":9932,"lastAttemptAt":"2026-11-10T10:21:23.1241572+00:00","lastSuccessAt":"2026-11-10T00:04:19.8260565+00:00","error":null,"lastVerifiedAt":"2026-11-10T10:21:23.1241572+00:00","snapshotPublishedAt":"2026-11-09T23:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:NuGet","scope":"Complete OSV NuGet ecosystem archive, including GitHub Advisory Database records; NuGet version matching only","generation":"nuget-26503967ae4379db8f374089589d6e03fb15bd31f820c9e992aaf93840c2236c","complete":true,"records":1971,"lastAttemptAt":"2026-11-10T10:21:22.8858542+00:00","lastSuccessAt":"2026-11-09T21:02:20.472473+00:00","error":null,"lastVerifiedAt":"2026-11-10T10:21:22.8858542+00:00","snapshotPublishedAt":"2026-11-09T20:18:18+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:crates.io","scope":"Complete OSV crates.io ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"crates.io-94169eec81ea3989aa551092397ff34ae53c104b4a6ce646e1524452e4ab2a39","complete":true,"records":3065,"lastAttemptAt":"2026-11-10T10:21:23.1397622+00:00","lastSuccessAt":"2026-11-10T08:04:45.5923716+00:00","error":null,"lastVerifiedAt":"2026-11-10T10:21:23.1397622+00:00","snapshotPublishedAt":"2026-11-10T06:48:01+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null},{"source":"osv:npm","scope":"Complete OSV npm ecosystem archive, including withdrawn and malicious-package source records; statement counts are not unique CVE counts","generation":"npm-4331051b0b2d4ccdbdca3aa196b0be3818a465064a4b18dde4cf39c2250eb490","complete":true,"records":231599,"lastAttemptAt":"2026-11-10T10:21:23.0142877+00:00","lastSuccessAt":"2026-11-10T08:04:37.1757322+00:00","error":null,"lastVerifiedAt":"2026-11-10T10:21:23.0142877+00:00","snapshotPublishedAt":"2026-11-10T07:33:02+00:00","importing":false,"stagedRecords":0,"checkedIdentifiers":null,"expectedIdentifiers":null,"failedIdentifiers":null}]}