{"id":7888,"date":"2025-10-23T10:03:33","date_gmt":"2025-10-23T10:03:33","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/10\/23\/tarmageddon-vulnerability-in-rust-library-let-attackers-replace-config-files-and-execute-remote-codes\/"},"modified":"2025-10-23T10:03:33","modified_gmt":"2025-10-23T10:03:33","slug":"tarmageddon-vulnerability-in-rust-library-let-attackers-replace-config-files-and-execute-remote-codes","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/10\/23\/tarmageddon-vulnerability-in-rust-library-let-attackers-replace-config-files-and-execute-remote-codes\/","title":{"rendered":"TARmageddon Vulnerability In Rust Library Let Attackers Replace Config Files And Execute Remote Codes"},"content":{"rendered":"<p>    TARmageddon Vulnerability In Rust Library Let Attackers Replace Config Files And Execute Remote Codes<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>A severe vulnerability in the async-tar Rust library and its popular forks, including the widely used tokio-tar. Dubbed TARmageddon and tracked as CVE-2025-62518, the bug carries a CVSS score of 8.1, classifying it as high severity.<\/p>\n<p>It allows attackers to manipulate TAR archive parsing, potentially overwriting critical files like configuration scripts and triggering remote code execution (RCE) in affected systems.<\/p>\n<p>According to Edra, the flaw stems from a boundary-parsing error that mishandles nested TAR files, especially when PAX extended headers conflict with ustar headers.<\/p>\n<p>In vulnerable versions, the parser skips over actual file data based on a misleading zero-byte size in the ustar header, while ignoring the correct size in the PAX header. <\/p>\n<p>This desynchronization lets hidden entries from inner archives \u201csmuggle\u201d into the outer extraction, overwriting files in the target directory. <\/p>\n<p>Major projects like Astral\u2019s uv Python package manager, testcontainers for container testing, and wasmCloud are at risk, with the vulnerability\u2019s reach extending across millions of downloads due to tokio-tar\u2019s ubiquity in the <a href=\"https:\/\/cybersecuritynews.com\/tag\/rust-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">Rust ecosystem<\/a>.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-navigating-the-maze-of-abandoned-forks\"><strong>Navigating The Maze Of Abandoned Forks<\/strong><\/h2>\n<p>Disclosing and patching TARmageddon proved unusually complex because tokio-tar, the most downloaded fork with over 5 million crates.io pulls, appears abandoned, with no active maintainers, no SECURITY.md file, and scant contact info.<\/p>\n<p>Edera coordinated a decentralized effort across the fork lineage: from the root async-tar to tokio-tar, then to their own krata-tokio-tar (now archived) and Astral\u2019s actively maintained astral-tokio-tar.<\/p>\n<p>Researchers developed patches for the active forks, shared them under a 60-day embargo starting August 21, 2025, and reached out to downstream projects like binstalk and opa-wasm. <\/p>\n<p>While Astral swiftly integrated the fix into uv and their fork, responses from others were mixed; some planned to drop the dependency, while uncontacted users remain exposed. <\/p>\n<p>The original tokio-tar and async-tar lack patches, forcing users to migrate manually. Edera <a href=\"https:\/\/edera.dev\/stories\/tarmageddon\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">urges<\/a> immediate upgrades to patched versions or removal of the dependency, with astral-tokio-tar as the recommended alternative.<\/p>\n<p>The patch enforces PAX header priority for size checks, validates header consistency, and adds boundary safeguards to prevent misalignment. <\/p>\n<p>For those unable to switch quickly, workarounds include using the synchronous tar crate or runtime checks like manifest validation and sandboxed extractions.<\/p>\n<p>Attackers could exploit TARmageddon in devious ways. In one scenario, a malicious <a href=\"https:\/\/cybersecuritynews.com\/tag\/pypi-packages\/\" target=\"_blank\" rel=\"noreferrer noopener\">PyPI package<\/a> uses an outer TAR with a benign pyproject.toml, but a nested inner TAR overwrites it with a rogue build backend, executing code during installation on developer or CI machines.<\/p>\n<p>Container frameworks like testcontainers risk poisoning test environments by extracting tainted image layers, introducing backdoors. Security scanners might approve a \u201cclean\u201d outer archive, only for extraction to pull in unscanned malware, bypassing bill-of-materials checks.<\/p>\n<p>This incident underscores Rust\u2019s limits: while it thwarts memory bugs, logic flaws like this persist in unmaintained code. <\/p>\n<p>The 60-day timeline from discovery on August 21 to coordinated release on October 21 highlights the inefficiencies of fork-heavy ecosystems. <\/p>\n<p>Edera notes their own products dodged impact through defense-in-depth, but the episode calls for better maintenance signals and proactive forking in open source. <\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 94%,rgb(169,184,195) 100%)\"><strong>Follow us on <a href=\"https:\/\/news.google.com\/publications\/CAAqMggKIixDQklTR3dnTWFoY0tGV041WW1WeWMyVmpkWEpwZEhsdVpYZHpMbU52YlNnQVAB?hl=en-IN&amp;gl=IN&amp;ceid=IN:en\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Google News<\/a>, <a href=\"https:\/\/www.linkedin.com\/company\/cybersecurity-news\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">LinkedIn<\/a>, and <a href=\"https:\/\/x.com\/cyber_press_org\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">X<\/a> for daily cybersecurity updates. <a href=\"https:\/\/cybersecuritynews.com\/contact-us\/\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Contact us<\/a> to feature your stories.<\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/tarmageddon-vulnerability\/\">TARmageddon Vulnerability In Rust Library Let Attackers Replace Config Files And Execute Remote Codes<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Cyber Advisory<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/tarmageddon-vulnerability\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>TARmageddon Vulnerability In Rust Library Let Attackers Replace Config Files And Execute Remote Codes A severe vulnerability in the async-tar Rust library and its popular forks, including the widely used tokio-tar. Dubbed TARmageddon and tracked as CVE-2025-62518, the bug carries a CVSS score of 8.1, classifying it as high severity. It allows attackers to manipulate [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,131,648],"tags":[130],"class_list":["post-7888","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-vulnerability","category-vulnerability-news","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7888"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=7888"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/7888\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=7888"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=7888"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=7888"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}