<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-09-30T18:58:17.493831+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/ghsa-83g3-92jg-28cx</id>
    <title>GHSA-83g3-92jg-28cx — Arbitrary File Read/Write via Hardlink Target Escape Through Symlink Chain in node-tar Extraction</title>
    <updated>2026-09-30T18:58:17.503513+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> npm: tar</p>
<p>### Summary
`tar.extract()` in Node `tar` allows an attacker-controlled archive to create a hardlink inside the extraction directory that points to a file outside the extraction root, using default options.</p>
<p>This enables **arbitrary file read and write** as the extracting user (no root, no chmod, no `preservePaths`).</p>
<p>Severity is high because the primitive bypasses path protections and turns archive extraction into a direct filesystem access primitive.</p>
<p>### Details
The bypass chain uses two symlinks plus one hardlink:</p>
<p>1. `a/b/c/up -&gt; ../..`
2. `a/b/escape -&gt; c/up/../..`
3. `exfil` (hardlink) -&gt; `a/b/escape/&lt;target-relative-to-parent-of-extract&gt;`</p>
<p>Why this works:</p>
<p>- Linkpath checks are string-based and do not resolve symlinks on disk for hardlink target safety.
  - See `STRIPABSOLUTEPATH` logic in:
    - `../tar-audit-setuid - CVE/node_modules/tar/dist/commonjs/unpack.js:255`
    - `../tar-audit-setuid - CVE/node_modules/tar/dist/commonjs/unpack.js:268`
    - `../tar-audit-setuid - CVE/node_modules/tar/dist/commonjs/unpack.js:281`</p>
<p>- Hardlink extraction resolves target as `path.resolve(cwd, entry.linkpath)` and then calls `fs.link(target, destination)`.
  - `../tar-audit-setuid - CVE/node_modules/tar/dist/commonjs/unpack.js:566`
  - `../tar-audit-setuid - CVE/node_modules/tar/dist/commonjs/unpack.js:567`
  - `../tar-audit-setuid - CVE/node_modules/tar/dist/commonjs/unpack.js:703`</p>
<p>- Parent directory safety checks (`mkdir` + symlink detection) are applied to the destination p…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/ghsa-83g3-92jg-28cx"/>
  </entry>
</feed>
