CWE-641Base

Improper Restriction of Names for Files and Other Resources

Incomplete in the CWE catalog · 17 CVEs mapped

17
CVEs mapped
7.8
Median CVSS
What it is

The product constructs the name of a file or other resource using input from an upstream component, but it does not restrict or incorrectly restricts the resulting name.

Recent examples
7.5cvss
CVE-2026-46581

CVE-2026-46581 - HIGH Severity Vulnerability

In Eclipse Mojarra versions 2.3 and following, URL handing in `DefaultFaceletFactory` does not properly sanitize and/or block remote URLs, allowing an attacker to specify a URL to a remote Facelet which will be included and processed as part of the normal request, with the privileges of the target server. This could allow access to restricted files such as `WEB-INF/web.xml` or `/etc/passwd`.

HIGHno explanation yet
0%
epss
7.8cvss
CVE-2026-50510

GitHub Copilot Remote Code Execution Vulnerability

Improper restriction of names for files and other resources in Github Copilot allows an unauthorized attacker to execute code locally.

HIGHno explanation yet
0%
epss
8.3cvss
CVE-2026-50023

yt-dlp: Dangerous file type creation via insufficient filename sanitization (Bypass of CVE-2024-38519)

yt-dlp is a command-line audio/video downloader. Prior to 2026.06.09, a vulnerability exists in yt-dlp that allows a remote attacker to write arbitrary OS-shortcut files (such as .desktop, .url, .webloc) to the user's filesystem, bypassing the remediation for CVE-2024-38519. The allowlist explicitly included the unsafe extensions .desktop, .url, and .webloc so that the functionality of the --write-link option (and its variants) could be preserved. These allowlist inclusions can be exploited by an attacker to write malicious OS-shortcut files in the context of a media or subtitles download. This vulnerability is fixed in 2026.06.09.

HIGHno explanation yet
1%
epss
The record
Technical detail
CWE ID
CWE-641
Abstraction
Base
Structure
Simple
Status
Incomplete