Common Weakness Enumeration

CWE-59

Weakness Allowed

Improper Link Resolution Before File Access

Abstraction: Base · Status: Draft

The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.

Mapping guidance

This CWE entry is at the Base level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.

Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.

Relationships and members
ChildOf: CWE-706 · View CWE-1000
ChildOf: CWE-706 · View CWE-1003
Modes of introduction
Implementation

REALIZATION: This weakness is caused during implementation of an architectural security tactic.

Detection methods

Automated Static Analysis - Binary or Bytecode

According to SOAR [REF-1479], the following detection techniques may be useful:

Cost effective for partial coverage:

Bytecode Weakness Analysis - including disassembler + source code weakness analysis

Effectiveness: SOAR Partial

Manual Static Analysis - Binary or Bytecode

According to SOAR [REF-1479], the following detection techniques may be useful:

Cost effective for partial coverage:

Binary / Bytecode disassembler - then use manual analysis for vulnerabilities & anomalies

Effectiveness: SOAR Partial

Dynamic Analysis with Automated Results Interpretation

According to SOAR [REF-1479], the following detection techniques may be useful:

Cost effective for partial coverage:

Web Application Scanner

Web Services Scanner

Database Scanners

Effectiveness: SOAR Partial

Dynamic Analysis with Manual Results Interpretation

According to SOAR [REF-1479], the following detection techniques may be useful:

Cost effective for partial coverage:

Fuzz Tester

Framework-based Fuzzer

Effectiveness: SOAR Partial

Manual Static Analysis - Source Code

According to SOAR [REF-1479], the following detection techniques may be useful:

Highly cost effective:

Focused Manual Spotcheck - Focused manual analysis of source

Manual Source Code Review (not inspections)

Effectiveness: High

Automated Static Analysis - Source Code

According to SOAR [REF-1479], the following detection techniques may be useful:

Cost effective for partial coverage:

Source code Weakness Analyzer

Context-configured Source Code Weakness Analyzer

Effectiveness: SOAR Partial

Architecture or Design Review

According to SOAR [REF-1479], the following detection techniques may be useful:

Highly cost effective:

Formal Methods / Correct-By-Construction

Cost effective for partial coverage:

Inspection (IEEE 1028 standard) (can apply to requirements, design, source code, etc.)

Effectiveness: High

Notes

Theoretical

Link following vulnerabilities are Multi-factor Vulnerabilities (MFV). They are the combination of multiple elements: file or directory permissions, filename predictability, race conditions, and in some cases, a design limitation in which there is no mechanism for performing atomic file creation operations.

Some potential factors are race conditions, permissions, and predictability.

Content history
Submission: PLOVER · 2006-07-19 · CWE Draft 3
Modification: Eric Dalci · Cigital · 2008-07-01 · CWE 1.0

updated Time_of_Introduction

Modification: CWE Content Team · MITRE · 2008-09-08 · CWE 1.0

updated Alternate_Terms, Applicable_Platforms, Relationships, Other_Notes, Relationship_Notes, Taxonomy_Mappings, Weakness_Ordinalities

Modification: CWE Content Team · MITRE · 2008-11-24 · CWE 1.1

updated Relationships, Taxonomy_Mappings

Modification: CWE Content Team · MITRE · 2009-01-12 · CWE 1.2

updated Relationships

Modification: CWE Content Team · MITRE · 2009-05-27 · CWE 1.4

updated Description, Name

Modification: CWE Content Team · MITRE · 2009-10-29 · CWE 1.6

updated Background_Details, Other_Notes

Modification: CWE Content Team · MITRE · 2010-02-16 · CWE 1.8

updated Potential_Mitigations, Relationships

Modification: CWE Content Team · MITRE · 2010-04-05 · CWE 1.8.1

updated Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2011-06-01 · CWE 1.13

updated Common_Consequences

Modification: CWE Content Team · MITRE · 2011-09-13 · CWE 2.1

updated Relationships, Taxonomy_Mappings

Modification: CWE Content Team · MITRE · 2012-05-11 · CWE 2.2

updated Common_Consequences, Observed_Examples, References, Relationships

Modification: CWE Content Team · MITRE · 2012-10-30 · CWE 2.3

updated Potential_Mitigations

Modification: CWE Content Team · MITRE · 2014-06-23 · CWE 2.7

updated Common_Consequences, Other_Notes

Modification: CWE Content Team · MITRE · 2014-07-30 · CWE 2.8

updated Detection_Factors, Relationships, Taxonomy_Mappings

Modification: CWE Content Team · MITRE · 2015-12-07 · CWE 2.9

updated Relationships

Modification: CWE Content Team · MITRE · 2017-11-08 · CWE 3.0

updated Affected_Resources, Applicable_Platforms, Causal_Nature, Common_Consequences, Functional_Areas, Likelihood_of_Exploit, Modes_of_Introduction, Relationships, Taxonomy_Mappings

Modification: CWE Content Team · MITRE · 2019-01-03 · CWE 3.2

updated Taxonomy_Mappings

Modification: CWE Content Team · MITRE · 2019-06-20 · CWE 3.3

updated Relationships

Modification: CWE Content Team · MITRE · 2020-02-24 · CWE 4.0

updated Relationships

Modification: CWE Content Team · MITRE · 2021-03-15 · CWE 4.4

updated Relationships

Modification: CWE Content Team · MITRE · 2021-10-28 · CWE 4.6

updated Relationships

Modification: CWE Content Team · MITRE · 2022-04-28 · CWE 4.7

updated Research_Gaps

Modification: CWE Content Team · MITRE · 2022-06-28 · CWE 4.8

updated Relationships

Modification: CWE Content Team · MITRE · 2022-10-13 · CWE 4.9

updated Alternate_Terms, Background_Details, Observed_Examples, References, Relationship_Notes, Theoretical_Notes

Modification: CWE Content Team · MITRE · 2023-01-31 · CWE 4.10

updated Description

Modification: CWE Content Team · MITRE · 2023-04-27 · CWE 4.11

updated Relationships

Modification: CWE Content Team · MITRE · 2023-06-29 · CWE 4.12

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2025-09-09 · CWE 4.18

updated Detection_Factors, References

Modification: CWE Content Team · MITRE · 2025-12-11 · CWE 4.19

updated Applicable_Platforms, Relationships

Modification: CWE Content Team · MITRE · 2026-10-28 · CWE 5.0

updated Alternate_Terms, Name, Observed_Examples

2742 vulnerabilities reference this CWE, most recent first.

GHSA-GVR9-HWFV-V28J

Vulnerability from github – Published: 2026-10-27 18:31 – Updated: 2026-10-27 18:31
VLAI
Details

Tanium addressed a local privilege escalation vulnerability in End-User Notifications.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-108305"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-59"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-27T18:17:32Z",
    "severity": "HIGH"
  },
  "details": "Tanium addressed a local privilege escalation vulnerability in End-User Notifications.",
  "id": "GHSA-gvr9-hwfv-v28j",
  "modified": "2026-10-27T18:31:49Z",
  "published": "2026-10-27T18:31:49Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-108305"
    },
    {
      "type": "WEB",
      "url": "https://security.tanium.com/TAN-2026-061"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-GVRF-JX37-RJV5

Vulnerability from github – Published: 2026-12-02 01:01 – Updated: 2026-12-02 01:01
VLAI
Summary
node-tar: Symlink linkpath escape check is lexical: '..' after an in-archive symlink creates symlinks outside the extraction directory
Details

Summary

With default options, tar.x() / Unpack / UnpackSync can be made to create SymbolicLink entries whose targets resolve outside the extraction directory, although the README states that "Link and SymbolicLink entries are not allowed to target locations outside of the extraction folder". The trick is a .. segment that follows a symlink created earlier by the same archive:

l1      SymbolicLink -> .
esc     SymbolicLink -> l1/../outside.txt   (lexically "outside.txt", actually <cwd>/../outside.txt)
escdir  SymbolicLink -> l1/..               (lexically ".",           actually the parent of cwd)

or, to go further up (one level per in-archive directory):

p/q/r/s SymbolicLink -> ../../..                     (= cwd)
x       SymbolicLink -> p/q/r/s/../../../victim.txt  (lexically "p/victim.txt", actually <cwd>/../../../victim.txt)

None of these entries produces a warning, while the direct form (esc -> ../outside.txt) is still rejected. The step-2 symlink of the GHSA-83g3-92jg-28cx chain (a/b/c/up -> ../.., a/b/escape -> c/up/../..) also still points outside the extraction root on 7.5.23; that fix blocked only the step-3 hardlink.

Affected versions

Tested on tar@7.5.23 (latest; main HEAD eb92e17) with Node 18 on Linux, both async and sync extraction, default options. Versions containing the linkpath sanitization added for GHSA-8qq5 / GHSA-83g3 / GHSA-9ppj appear affected.

Details

  • src/unpack.ts [STRIPABSOLUTEPATH] (~L283-301) accepts a symlink linkpath containing .. when path.posix.normalize(join(dirname(entry.path), linkpath)) does not start with ../. This is purely lexical: l1/../outside.txt normalizes to outside.txt.
  • [SYMLINK] (~L640-660, same logic in UnpackSync ~L1099-1119) builds the components passed to [ENSURE_NO_SYMLINK] from path.relative(cwd, path.resolve(dirname(abs), linkpath)). path.resolve collapses l1/.. before any lstat, so the existing symlink component l1 is never inspected.
  • The kernel resolves l1/.. as <target of l1>/..; with l1 -> . that is the parent of the extraction directory.

Because l1 is never inspected and symlink targets resolve lazily, entry ordering and parallel async extraction do not matter.

Steps to reproduce

  1. Build an archive (any tool; e.g. node-tar's own Header): js const fs = require('fs'), tar = require('tar') const hdr = (p, l) => { const b = Buffer.alloc(512); new tar.Header({ path: p, type: 'SymbolicLink', linkpath: l }).encode(b, 0); return b } fs.writeFileSync('evil.tar', Buffer.concat([hdr('l1', '.'), hdr('esc', 'l1/../outside.txt'), hdr('escdir', 'l1/..'), Buffer.alloc(1024)])) fs.writeFileSync('control.tar', Buffer.concat([hdr('esc', '../outside.txt'), Buffer.alloc(1024)]))
  2. Extract with default options and then use the extracted tree (same usage model as the GHSA-9ppj PoC): js fs.mkdirSync('root/extract', { recursive: true }) fs.writeFileSync('root/outside.txt', 'ORIGINAL\n'); fs.writeFileSync('root/secret.txt', 'DUMMY-SECRET\n') await tar.x({ cwd: 'root/extract', file: 'evil.tar' }) // same with sync: true fs.writeFileSync('root/extract/esc', 'PWNED\n') console.log(fs.readFileSync('root/outside.txt', 'utf8')) // PWNED console.log(fs.readFileSync('root/extract/escdir/secret.txt', 'utf8')) // DUMMY-SECRET Observed on 7.5.23 (repeated runs, async and sync): control.tar is rejected with "linkpath escapes extraction directory" and outside.txt stays ORIGINAL. evil.tar yields warnings=[], realpath(esc) = root/outside.txt, realpath(escdir) = root; outside.txt is overwritten and the outside secret is read. The deeper variant above overwrote a file three directories above cwd.

Impact

An attacker-supplied tarball extracted with default options can plant symlinks inside the extraction directory that point to arbitrary files or directories outside it (any depth above the extraction root, controlled by the number of in-archive directories). Any subsequent read or write of the extracted tree by the application — serving files, reading a manifest, writing build output into an extracted folder — then reaches outside the root with the privileges of the extracting user. This is the same impact as GHSA-9ppj-qmqm-q256 and GHSA-8qq5-rm4j-mr97 ("symlink poisoning"), through a different bypass.

Suggested CVSS 3.1: AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N (7.1), mirroring GHSA-83g3-92jg-28cx.

Suggested fix

For SymbolicLink entries, do not normalize the linkpath lexically before the check. Walk the raw linkpath components starting from dirname(entry.absolute), lstat each existing component before applying the next .., and reject the entry if an existing component is a symlink (the rule [ENSURE_NO_SYMLINK] already applies to hardlinks). A simpler alternative is to reject any .. segment that follows a component which currently exists as a symlink.

This issue was found with automated analysis (variant analysis) and manually verified.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "tar"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "8.0.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-140247"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-22",
      "CWE-59"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-12-02T01:01:59Z",
    "nvd_published_at": "2026-12-01T18:17:29Z",
    "severity": "HIGH"
  },
  "details": "## Summary\nWith default options, `tar.x()` / `Unpack` / `UnpackSync` can be made to create `SymbolicLink` entries whose targets resolve outside the extraction directory, although the README states that \"`Link` and `SymbolicLink` entries are not allowed to target locations outside of the extraction folder\". The trick is a `..` segment that follows a symlink created earlier by the same archive:\n\n    l1      SymbolicLink -\u003e .\n    esc     SymbolicLink -\u003e l1/../outside.txt   (lexically \"outside.txt\", actually \u003ccwd\u003e/../outside.txt)\n    escdir  SymbolicLink -\u003e l1/..               (lexically \".\",           actually the parent of cwd)\n\nor, to go further up (one level per in-archive directory):\n\n    p/q/r/s SymbolicLink -\u003e ../../..                     (= cwd)\n    x       SymbolicLink -\u003e p/q/r/s/../../../victim.txt  (lexically \"p/victim.txt\", actually \u003ccwd\u003e/../../../victim.txt)\n\nNone of these entries produces a warning, while the direct form (`esc -\u003e ../outside.txt`) is still rejected. The step-2 symlink of the GHSA-83g3-92jg-28cx chain (`a/b/c/up -\u003e ../..`, `a/b/escape -\u003e c/up/../..`) also still points outside the extraction root on 7.5.23; that fix blocked only the step-3 hardlink.\n\n## Affected versions\nTested on tar@7.5.23 (latest; main HEAD eb92e17) with Node 18 on Linux, both async and sync extraction, default options. Versions containing the linkpath sanitization added for GHSA-8qq5 / GHSA-83g3 / GHSA-9ppj appear affected.\n\n## Details\n- `src/unpack.ts` `[STRIPABSOLUTEPATH]` (~L283-301) accepts a symlink linkpath containing `..` when\n  `path.posix.normalize(join(dirname(entry.path), linkpath))` does not start with `../`. This is purely lexical:\n  `l1/../outside.txt` normalizes to `outside.txt`.\n- `[SYMLINK]` (~L640-660, same logic in `UnpackSync` ~L1099-1119) builds the components passed to\n  `[ENSURE_NO_SYMLINK]` from `path.relative(cwd, path.resolve(dirname(abs), linkpath))`. `path.resolve` collapses\n  `l1/..` before any `lstat`, so the existing symlink component `l1` is never inspected.\n- The kernel resolves `l1/..` as `\u003ctarget of l1\u003e/..`; with `l1 -\u003e .` that is the parent of the extraction directory.\n\nBecause `l1` is never inspected and symlink targets resolve lazily, entry ordering and parallel async extraction do not matter.\n\n## Steps to reproduce\n1. Build an archive (any tool; e.g. node-tar\u0027s own `Header`):\n   ```js\n   const fs = require(\u0027fs\u0027), tar = require(\u0027tar\u0027)\n   const hdr = (p, l) =\u003e { const b = Buffer.alloc(512); new tar.Header({ path: p, type: \u0027SymbolicLink\u0027, linkpath: l }).encode(b, 0); return b }\n   fs.writeFileSync(\u0027evil.tar\u0027, Buffer.concat([hdr(\u0027l1\u0027, \u0027.\u0027), hdr(\u0027esc\u0027, \u0027l1/../outside.txt\u0027), hdr(\u0027escdir\u0027, \u0027l1/..\u0027), Buffer.alloc(1024)]))\n   fs.writeFileSync(\u0027control.tar\u0027, Buffer.concat([hdr(\u0027esc\u0027, \u0027../outside.txt\u0027), Buffer.alloc(1024)]))\n   ```\n2. Extract with default options and then use the extracted tree (same usage model as the GHSA-9ppj PoC):\n   ```js\n   fs.mkdirSync(\u0027root/extract\u0027, { recursive: true })\n   fs.writeFileSync(\u0027root/outside.txt\u0027, \u0027ORIGINAL\\n\u0027); fs.writeFileSync(\u0027root/secret.txt\u0027, \u0027DUMMY-SECRET\\n\u0027)\n   await tar.x({ cwd: \u0027root/extract\u0027, file: \u0027evil.tar\u0027 })          // same with sync: true\n   fs.writeFileSync(\u0027root/extract/esc\u0027, \u0027PWNED\\n\u0027)\n   console.log(fs.readFileSync(\u0027root/outside.txt\u0027, \u0027utf8\u0027))              // PWNED\n   console.log(fs.readFileSync(\u0027root/extract/escdir/secret.txt\u0027, \u0027utf8\u0027)) // DUMMY-SECRET\n   ```\nObserved on 7.5.23 (repeated runs, async and sync): `control.tar` is rejected with \"linkpath escapes extraction directory\" and `outside.txt` stays `ORIGINAL`. `evil.tar` yields `warnings=[]`, `realpath(esc)` = `root/outside.txt`, `realpath(escdir)` = `root`; `outside.txt` is overwritten and the outside secret is read. The deeper variant above overwrote a file three directories above `cwd`.\n\n## Impact\nAn attacker-supplied tarball extracted with default options can plant symlinks inside the extraction directory that point to arbitrary files or directories outside it (any depth above the extraction root, controlled by the number of in-archive directories). Any subsequent read or write of the extracted tree by the application \u2014 serving files, reading a manifest, writing build output into an extracted folder \u2014 then reaches outside the root with the privileges of the extracting user. This is the same impact as GHSA-9ppj-qmqm-q256 and GHSA-8qq5-rm4j-mr97 (\"symlink poisoning\"), through a different bypass.\n\nSuggested CVSS 3.1: `AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N` (7.1), mirroring GHSA-83g3-92jg-28cx.\n\n## Suggested fix\nFor `SymbolicLink` entries, do not normalize the linkpath lexically before the check. Walk the raw linkpath components starting from `dirname(entry.absolute)`, `lstat` each existing component before applying the next `..`, and reject the entry if an existing component is a symlink (the rule `[ENSURE_NO_SYMLINK]` already applies to hardlinks). A simpler alternative is to reject any `..` segment that follows a component which currently exists as a symlink.\n\nThis issue was found with automated analysis (variant analysis) and manually verified.",
  "id": "GHSA-gvrf-jx37-rjv5",
  "modified": "2026-12-02T01:01:59Z",
  "published": "2026-12-02T01:01:59Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/isaacs/node-tar/security/advisories/GHSA-gvrf-jx37-rjv5"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-140247"
    },
    {
      "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 linkpath escape check is lexical: \u0027..\u0027 after an in-archive symlink creates symlinks outside the extraction directory"
}

GHSA-GVRG-2XVQ-7J38

Vulnerability from github – Published: 2022-05-13 01:53 – Updated: 2022-05-13 01:53
VLAI
Details

w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2018-6198"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-59"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2018-01-25T03:29:00Z",
    "severity": "MODERATE"
  },
  "details": "w3m through 0.5.3 does not properly handle temporary files when the ~/.w3m directory is unwritable, which allows a local attacker to craft a symlink attack to overwrite arbitrary files.",
  "id": "GHSA-gvrg-2xvq-7j38",
  "modified": "2022-05-13T01:53:03Z",
  "published": "2022-05-13T01:53:03Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-6198"
    },
    {
      "type": "WEB",
      "url": "https://github.com/tats/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753"
    },
    {
      "type": "WEB",
      "url": "https://bugs.debian.org/888097"
    },
    {
      "type": "WEB",
      "url": "https://salsa.debian.org/debian/w3m/commit/18dcbadf2771cdb0c18509b14e4e73505b242753"
    },
    {
      "type": "WEB",
      "url": "https://usn.ubuntu.com/3555-1"
    },
    {
      "type": "WEB",
      "url": "https://usn.ubuntu.com/3555-2"
    },
    {
      "type": "WEB",
      "url": "http://lists.opensuse.org/opensuse-security-announce/2019-04/msg00028.html"
    },
    {
      "type": "WEB",
      "url": "http://www.securityfocus.com/bid/102855"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-GVX8-W6X3-5C2C

Vulnerability from github – Published: 2026-10-15 12:31 – Updated: 2026-10-15 12:31
VLAI
Details

An improper link resolution before file access ('link following') vulnerability has been reported to affect Virtualization Station. If a remote attacker gains a user account, they can then exploit the vulnerability to compromise the security of the system.

We have already fixed the vulnerability in the following version: Virtualization Station 4.1.1.130 and later

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-53882"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-59"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-15T10:17:15Z",
    "severity": "HIGH"
  },
  "details": "An improper link resolution before file access (\u0027link following\u0027) vulnerability has been reported to affect Virtualization Station. If a remote attacker gains a user account, they can then exploit the vulnerability to compromise the security of the system.\n\nWe have already fixed the vulnerability in the following version:\nVirtualization Station 4.1.1.130 and later",
  "id": "GHSA-gvx8-w6x3-5c2c",
  "modified": "2026-10-15T12:31:02Z",
  "published": "2026-10-15T12:31:02Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-53882"
    },
    {
      "type": "WEB",
      "url": "https://www.qnap.com/en/app_releasenotes/list.php?app_choose=QKVM"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-GWM6-Q8CH-HCFR

Vulnerability from github – Published: 2026-07-06 19:54 – Updated: 2026-07-06 19:54
VLAI
Summary
install -D: symlink race in directory creation allows arbitrary file overwrite
Details

The -D path runs fs::create_dir_all on a pathname then later opens the destination via path-based File::create/fs::copy, neither anchored to a directory fd. Between the two, an attacker can replace a path component with a symlink, redirecting the write.

Impact: an attacker with concurrent write access to the destination tree can redirect a privileged install -D to an arbitrary location, enabling arbitrary file overwrite with attacker-controlled content. Recommendation: use dirfd-based traversal (openat/mkdirat + O_NOFOLLOW) per component and create the destination via openat on the same dirfd.

Remediation: Acknowledged by Canonical; fixed in commit 0c412999.


Reported by Zellic in the uutils coreutils Program Security Assessment (prepared for Canonical, Jan 20 2026), audited commit 3a07ffc5a9bd4c283e75afa548ba1f1957bad242. Finding 3.51. Credit: Zellic.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "crates.io",
        "name": "uu_install"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "0.7.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-35356"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-367",
      "CWE-59"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-07-06T19:54:56Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
  },
  "details": "The `-D` path runs `fs::create_dir_all` on a pathname then later opens the destination via path-based `File::create`/`fs::copy`, neither anchored to a directory fd. Between the two, an attacker can replace a path component with a symlink, redirecting the write.\n\n**Impact:** an attacker with concurrent write access to the destination tree can redirect a privileged `install -D` to an arbitrary location, enabling arbitrary file overwrite with attacker-controlled content. Recommendation: use dirfd-based traversal (`openat`/`mkdirat` + `O_NOFOLLOW`) per component and create the destination via `openat` on the same dirfd.\n\n**Remediation:** Acknowledged by Canonical; fixed in commit 0c412999.\n\n---\n_Reported by Zellic in the *uutils coreutils Program Security Assessment* (prepared for Canonical, Jan 20 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`. Finding 3.51. Credit: Zellic._",
  "id": "GHSA-gwm6-q8ch-hcfr",
  "modified": "2026-07-06T19:54:56Z",
  "published": "2026-07-06T19:54:56Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/uutils/coreutils/security/advisories/GHSA-gwm6-q8ch-hcfr"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-35356"
    },
    {
      "type": "WEB",
      "url": "https://github.com/uutils/coreutils/pull/10140"
    },
    {
      "type": "WEB",
      "url": "https://github.com/uutils/coreutils/commit/0c41299975f3c1e21cf5ca968d42cad55ceb42a1"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/uutils/coreutils"
    },
    {
      "type": "WEB",
      "url": "https://github.com/uutils/coreutils/releases/tag/0.7.0"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "install -D: symlink race in directory creation allows arbitrary file overwrite"
}

GHSA-GWXW-RJ4R-JXQV

Vulnerability from github – Published: 2023-07-05 12:30 – Updated: 2024-01-07 12:30
VLAI
Details

Uploading files which contain symlinks may have allowed an attacker to trick a user into submitting sensitive data to a malicious website. This vulnerability affects Firefox < 115.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2023-37206"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-59"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2023-07-05T10:15:09Z",
    "severity": "MODERATE"
  },
  "details": "Uploading files which contain symlinks may have allowed an attacker to trick a user into submitting sensitive data to a malicious website. This vulnerability affects Firefox \u003c 115.",
  "id": "GHSA-gwxw-rj4r-jxqv",
  "modified": "2024-01-07T12:30:29Z",
  "published": "2023-07-05T12:30:15Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-37206"
    },
    {
      "type": "WEB",
      "url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1813299"
    },
    {
      "type": "WEB",
      "url": "https://security.gentoo.org/glsa/202401-10"
    },
    {
      "type": "WEB",
      "url": "https://www.mozilla.org/security/advisories/mfsa2023-22"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-GX69-6CP4-HXRJ

Vulnerability from github – Published: 2022-05-13 01:18 – Updated: 2023-03-08 20:17
VLAI
Summary
RubyGems Link Following vulnerability
Details

RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Directory Traversal vulnerability in install_location function of package.rb that can result in path traversal when writing to a symlinked basedir outside of the root. This vulnerability appears to have been fixed in 2.7.6.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "RubyGems",
        "name": "rubygems-update"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.7.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Maven",
        "name": "org.jruby:jruby-stdlib"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "9.1.16.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2018-1000073"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-59"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2023-03-08T20:17:23Z",
    "nvd_published_at": "2018-03-13T15:29:00Z",
    "severity": "HIGH"
  },
  "details": "RubyGems version Ruby 2.2 series: 2.2.9 and earlier, Ruby 2.3 series: 2.3.6 and earlier, Ruby 2.4 series: 2.4.3 and earlier, Ruby 2.5 series: 2.5.0 and earlier, prior to trunk revision 62422 contains a Directory Traversal vulnerability in `install_location` function of `package.rb` that can result in path traversal when writing to a symlinked basedir outside of the root. This vulnerability appears to have been fixed in 2.7.6.",
  "id": "GHSA-gx69-6cp4-hxrj",
  "modified": "2023-03-08T20:17:23Z",
  "published": "2022-05-13T01:18:44Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-1000073"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubygems/rubygems/commit/1b931fc03b819b9a0214be3eaca844ef534175e2"
    },
    {
      "type": "WEB",
      "url": "https://github.com/jruby/jruby/commit/0b06b48ab4432237ce5fc1bef47f2c6bcf7843f7"
    },
    {
      "type": "WEB",
      "url": "https://www.debian.org/security/2018/dsa-4259"
    },
    {
      "type": "WEB",
      "url": "https://www.debian.org/security/2018/dsa-4219"
    },
    {
      "type": "WEB",
      "url": "https://usn.ubuntu.com/3621-1"
    },
    {
      "type": "WEB",
      "url": "https://lists.debian.org/debian-lts-announce/2018/08/msg00028.html"
    },
    {
      "type": "WEB",
      "url": "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rubygems-update/CVE-2018-1000073.yml"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/rubygems/rubygems"
    },
    {
      "type": "WEB",
      "url": "https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=925986"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2020:0663"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2020:0591"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2020:0542"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2019:2028"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2018:3731"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2018:3730"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2018:3729"
    },
    {
      "type": "WEB",
      "url": "http://blog.rubygems.org/2018/02/15/2.7.6-released.html"
    },
    {
      "type": "WEB",
      "url": "http://lists.opensuse.org/opensuse-security-announce/2019-07/msg00036.html"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "RubyGems Link Following vulnerability"
}

GHSA-GX8J-C5HQ-H6P7

Vulnerability from github – Published: 2026-10-12 15:32 – Updated: 2026-10-12 15:32
VLAI
Details

ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 does not properly account for symbolic links in the IsRightsAuthorizedByName security policy check, allowing configured policy restrictions to be bypassed. Local attackers who can create a symlink can point it at a policy-restricted path to evade the configured policy.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-105081"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-59"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-10-12T13:17:25Z",
    "severity": "LOW"
  },
  "details": "ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 does not properly account for symbolic links in the IsRightsAuthorizedByName security policy check, allowing configured policy restrictions to be bypassed. Local attackers who can create a symlink can point it at a policy-restricted path to evade the configured policy.",
  "id": "GHSA-gx8j-c5hq-h6p7",
  "modified": "2026-10-12T15:32:10Z",
  "published": "2026-10-12T15:32:10Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-79p5-w6jv-r997"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-105081"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/imagemagick-before-7.1.2-33-policy-bypass-via-symlink-in-isrightsauthorizedbyname"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-GXFM-293Q-5F27

Vulnerability from github – Published: 2025-12-15 03:30 – Updated: 2025-12-15 03:30
VLAI
Details

A vulnerability has been found in Ugreen DH2100+ up to 5.3.0. This affects an unknown function of the component USB Handler. Such manipulation leads to symlink following. The attack can be executed directly on the physical device. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2025-14693"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-59"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2025-12-15T01:15:37Z",
    "severity": "HIGH"
  },
  "details": "A vulnerability has been found in Ugreen DH2100+ up to 5.3.0. This affects an unknown function of the component USB Handler. Such manipulation leads to symlink following. The attack can be executed directly on the physical device. The exploit has been disclosed to the public and may be used. The vendor was contacted early about this disclosure but did not respond in any way.",
  "id": "GHSA-gxfm-293q-5f27",
  "modified": "2025-12-15T03:30:17Z",
  "published": "2025-12-15T03:30:17Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-14693"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?ctiid.336411"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?id.336411"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?submit.704646"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?submit.704657"
    },
    {
      "type": "WEB",
      "url": "https://www.notion.so/2bc6cf4e528a8083bf3fc6f7a953f0a1"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:P/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:P/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
      "type": "CVSS_V4"
    }
  ]
}

GHSA-GXFX-4M5Q-QCQF

Vulnerability from github – Published: 2022-05-24 16:50 – Updated: 2025-10-22 00:31
VLAI
Details

An elevation of privilege vulnerability exists when Windows AppX Deployment Service (AppXSVC) improperly handles hard links, aka 'Windows Elevation of Privilege Vulnerability'. This CVE ID is unique from CVE-2019-1129.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2019-1130"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-59"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2019-07-15T19:15:00Z",
    "severity": "HIGH"
  },
  "details": "An elevation of privilege vulnerability exists when Windows AppX Deployment Service (AppXSVC) improperly handles hard links, aka \u0027Windows Elevation of Privilege Vulnerability\u0027. This CVE ID is unique from CVE-2019-1129.",
  "id": "GHSA-gxfx-4m5q-qcqf",
  "modified": "2025-10-22T00:31:42Z",
  "published": "2022-05-24T16:50:24Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-1130"
    },
    {
      "type": "WEB",
      "url": "https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2019-1130"
    },
    {
      "type": "WEB",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2019-1130"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}

Mitigation MIT-48.1
Architecture and Design

Strategy: Separation of Privilege

  • Follow the principle of least privilege when assigning access rights to entities in a software system.
  • Denying access to a file can prevent an attacker from replacing that file with a link to a sensitive file. Ensure good compartmentalization in the system to provide protected areas that can be trusted.
CAPEC-132: Symlink Attack

An adversary positions a symbolic link in such a manner that the targeted user or application accesses the link's endpoint, assuming that it is accessing a file with the link's name.

CAPEC-17: Using Malicious Files

An attack of this type exploits a system's configuration that allows an adversary to either directly access an executable file, for example through shell access; or in a possible worst case allows an adversary to upload a file and then execute it. Web servers, ftp servers, and message oriented middleware systems which have many integration points are particularly vulnerable, because both the programmers and the administrators must be in synch regarding the interfaces and the correct privileges for each interface.

CAPEC-35: Leverage Executable Code in Non-Executable Files

An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.

CAPEC-76: Manipulating Web Input to File System Calls

An attacker manipulates inputs to the target software which the target software passes to file system calls in the OS. The goal is to gain access to, and perhaps modify, areas of the file system that the target software did not intend to be accessible.