Bug 2588097 (CVE-2026-140238)

Summary: CVE-2026-140238 tar: node-tar: Arbitrary file overwrite via newline injection in PAX header records
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security DevOps Team <prodsec-dev>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aazores, abarbaro, abrianik, akhatavk, alizardo, amctagga, anujha, aoconnor, aos-team-art-private, aruklets, aschwart, asdas, asoldano, aszczucz, bbaranow, bbrownin, bmaxwell, bniver, boliveir, bstansbe, cdrage, cmah, crizzo, csuconic, dbruscin, dfreiber, dhanak, dlofthou, doconnor, dpaolell, drichtar, drosa, drow, dsimansk, dymurray, eaguilar, ebaron, eborisov, flucifre, fmariani, gbenhaim, ggrzybek, gmalinko, gmeno, gparvin, groman, gtanzill, gtully, ibolton, istudens, ivassile, iweiss, janstey, jbaesner, jbalunas, jburrell, jbuscemi, jchui, jdelft, jhe, jkrystof, jlanda, jmatsuok, jmatthew, jmontleo, jraez, jsherman, jtolenti, jupierce, jwon, kaycoth, kingland, kshier, ktsao, kvanderr, lball, lchilton, lgarciaa, manissin, mbenjamin, mbiarnes, mcarlett, mhackett, mnovotny, mosmerov, mposolda, mstipich, msvehla, nboldt, ngough, niyer, nwallace, oaljalju, parichar, pberan, pdelbell, pesilva, pgaikwad, pjindal, pmackay, ppalepu, ppostler, prdhamdh, psrna, rbobbitt, rexwhite, rgemmell, rgodfrey, rhaigner, rhel-process-autobot, rmartinc, rstancel, rstepani, rushinde, sausingh, sdawley, sfeifer, sghai, shudeshp, sidsharm, simaishi, slucidi, sostapov, sseago, ssilvert, stcannon, sthirugn, sthorger, suppawar, tasato, tbish, tcunning, thjenkin, tlavocat, tmielke, tsze, twaugh, tzimanyi, vdosoudi, vereddy, veshanka, vkumar, vlaad, vmuzikar, watson-tool-maintainers, yfang, yguenane
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in node-tar. An attacker can exploit this flaw by providing a specially crafted archive containing newline characters within Portable Archive Exchange (PAX) extended header records. This misinterpretation allows the attacker to forge file entry attributes during extraction, leading to arbitrary file overwrites outside the intended target directory. In certain configurations, overwriting critical package files can also result in arbitrary code execution.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description OSIDB Bzimport 2026-12-01 17:41:51 UTC
node-tar is a tar archive manipulation library for Node.js. Prior to 8.0.0, newline splitting of PAX extended header records permits attacker-controlled entry attributes to be forged. Direct node-tar extraction without strip can overwrite a path within the extraction target. The npm execution chain additionally requires Windows strip:1 normalization, an overwrite of package.json, and later execution of the injected postinstall script; POSIX npm processing with strip:1 is not affected by that chain. This issue is fixed in version 8.0.0.