CWE-61: UNIX Symbolic Link (Symlink) Following, page 5
Filter
The product, when opening a file or directory, does not sufficiently account for when the file is a symbolic link that resolves to a target outside of the intended control sphere. This could allow an attacker to cause the product to operate on unauthorized files.
What the weakness is: CWE-61 at MITRE. OWASP Top 10: A01:2025 Broken Access Control. All weaknesses
Related attack patterns (CAPEC): 1
- CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
The attack patterns MITRE's CAPEC relates to CWE-61, as MITRE names them. Credits.
Ask an AI about CWE-61
Show the prompt
Explain CWE-61: UNIX Symbolic Link (Symlink) Following and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/61.html and https://cve.bz/cve/cwe/61?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 5.7CVE-2019-11251kubernetesEPSS 2.6%
The Kubernetes kubectl cp command in versions 1.1-1.12, and versions prior to 1.13.11, 1.14.7, and 1.15.4 allows a combination of two symlinks provided by tar output of a malicious container to place a file outside of the destination direc…
- 6.5CVE-2019-16775EPSS 2.9%
Versions of the npm CLI prior to 6.13.3 are vulnerable to an Arbitrary File Write. It is possible for packages to create symlinks to files outside of thenode_modules folder through the bin field upon installation. A properly constructed en…
- 6.5CVE-2019-11249EPSS 3.7%
The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes runs tar inside the container to create a tar archive, copies it over the network, and kubectl unpacks it on th…
- 6.5CVE-2019-11246kubernetesEPSS 3.6%
The kubectl cp command allows copying files between containers and the user machine. To copy files from a container, Kubernetes runs tar inside the container to create a tar archive, copies it over the network, and kubectl unpacks it on th…
- 7.0CVE-2017-14798ExploitEPSS 1.0%
A race condition in the postgresql init script could be used by attackers able to access the postgresql account to escalate their privileges to root.