GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
Home/CWEs/CWE-59
ShareXLinkedInRedditHN
Common Weakness Enumeration

CWE-59: Link Following

Abstraction
Base
OWASP Top 10
A01:2021 (#1)
Exploit Likelihood
Medium
Related CVEs
28

Description

The product resolves symbolic or hard links without verifying the final target, enabling access outside intended files.

How to mitigate

  • Resolve and verify final link targets; use O_NOFOLLOW / openat-style APIs where available.

How attackers exploit CWE-59

MITRE ATT&CK techniques associated with this weakness class (mapped via MITRE CAPEC). A vulnerability of this type could let an adversary carry out:

T1001Data Obfuscationcommand-and-controlT1027Obfuscated Files or InformationstealthT1218System Binary Proxy Executionstealth

Related CVEs

HighCVE-2026-44471Security vulnerability in gix-fs
HighCVE-2026-44471Security vulnerability in gix-fs
HighCVE-2026-44471Security vulnerability in gix-fs

References & documentation

  • https://cwe.mitre.org/data/definitions/59.html
  • NVD CWE listing

Weakness facts

IDCWE-59
AbstractionBase
OWASP Top 10A01:2021 (#1)
Exploit LikelihoodMedium
Related CVEs28

Turn Gold’s intelligence into continuous protection

Safeguard scans your code, containers, and dependencies, tells you what’s exposed, and automates the fixes.

Start free See pricing
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
T1221
Template Injection
stealth
T1547Boot or Logon Autostart Executionpersistence · privilege-escalation
T1548Abuse Elevation Control Mechanismprivilege-escalation
T1564Hide Artifactsstealth
T1574Hijack Execution Flowstealth · execution

Step-by-step: how CWE-59 gets exploited

A stage-by-stage walkthrough of the attack, mapped to the real MITRE ATT&CK tactics for this weakness — what the attacker is trying to do, what's at risk (what can be stolen or damaged), and how you defend. Understanding the playbook is how you shut it down.

  1. 1
    Executionexecution

    Run attacker-chosen code or commands on the system.

    At risk / what's stolen

    Application logic and the host runtime — an attacker can execute arbitrary code or commands.

    How you defend

    Least-privilege runtime, sandboxing, and safe deserialization/parsing.

  2. 2
    Persistencepersistence

    Stay in even after reboots, patches, or credential changes.

    At risk / what's stolen

    Startup hooks, scheduled tasks, config, and accounts the attacker can plant a backdoor in.

    How you defend

    Integrity monitoring of code, config, and scheduled tasks; short-lived credentials.

  3. 3
    Privilege escalationprivilege-escalation

    Gain higher privileges — from a limited account to admin/root.

    At risk / what's stolen

    Over-permissioned services, weak file/permission boundaries, and setuid paths.

    How you defend

    Drop privileges, enforce least privilege, and lock down file permissions.

  4. 4
    Command & controlcommand-and-control

    Keep a remote channel to control the compromised system.

    At risk / what's stolen

    Outbound network paths the attacker uses to receive commands and stage tools.

    How you defend

    Egress filtering, DNS/traffic monitoring, and blocking anomalous outbound connections.

This is a defensive, conceptual walkthrough for education — stages reflect MITRE ATT&CK tactics associated with this weakness class, not a working exploit. Not every attack uses every stage.

HighCVE-2026-44471Security vulnerability in gix-fs
HighCVE-2026-15788Security vulnerability in buildkit
MediumCVE-2026-22701Security vulnerability in filelock
MediumCVE-2025-68146Security vulnerability in filelock
LowCVE-2025-54798Security vulnerability in tmp
HighCVE-2021-26720Security vulnerability in avahi
LowCVE-2013-1888Security vulnerability in pip
LowCVE-2010-0789Security vulnerability in fuse
LowCVE-2011-0541Security vulnerability in fuse
HighCVE-2026-28684Security vulnerability in python-dotenv
LowCVE-2012-0786Security vulnerability in augeas
HighCVE-2011-3618Security vulnerability in atop
LowCVE-2025-54798Security vulnerability in tmp
MediumCVE-2009-1867Security vulnerability in air
MediumCVE-2014-4199Security vulnerability in tools
MediumCVE-2026-28684Security vulnerability in python-dotenv
LowCVE-2025-54798Security vulnerability in tmp
HighCVE-2026-44471Security vulnerability in gix-fs
LowGHSA-52f5-9888-hmc6Security vulnerability in tmp
MediumCVE-2026-22702Security vulnerability in virtualenv
MediumGHSA-w853-jp5j-5j7fSecurity vulnerability in filelock
MediumCVE-2026-22701Security vulnerability in filelock
HighCVE-2011-3632Security vulnerability in hardlink
MediumCVE-2009-1867Security vulnerability in air
MediumCVE-2026-39243CVE-2026-39243