CWE-641: Improper Restriction of Names for Files and Other Resources

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.

19 published CVE records name this weakness. Abstraction: Base. Status: Incomplete. CWE-641 at MITRE

CVETitleCVSSEPSSPublished
CVE-2026-85864 Python Elevation of Privilege Vulnerability 7.8 high 0.32% 13 Oct 2026
CVE-2026-20282 Cisco Identity Services Engine Authenticated Write Vulnerability 4.9 medium 0.60% 16 Sep 2026
CVE-2026-46581 Eclipse Mojarra: Improper Limitation of a Pathname to a Restricted Directory 7.5 high 0.56% 5 Aug 2026
CVE-2026-50510 GitHub Copilot Remote Code Execution Vulnerability 7.8 high 0.36% 14 Jul 2026
CVE-2026-50023 yt-dlp: Dangerous file type creation via insufficient filename sanitization (Bypass of CVE-2024-38519) 8.3 high 0.66% 23 Jun 2026
CVE-2026-27140 Code execution vulnerability in SWIG code generation in cmd/go 8.8 high 0.86% 8 Apr 2026
CVE-2019-25623 Luminance Studio 2.17 Denial of Service via Malformed Input 6.9 medium 0.56% 23 Mar 2026
CVE-2026-25177 Active Directory Domain Services Elevation of Privilege Vulnerability 8.8 high 1.15% 10 Mar 2026
CVE-2025-47173 Microsoft Office Remote Code Execution Vulnerability 7.8 high 0.79% 10 Jun 2025
CVE-2025-47953 Microsoft Office Remote Code Execution Vulnerability 8.4 high 0.56% 10 Jun 2025
CVE-2024-47260 AXIS OS: Improper Restriction of Names for Files and Other Resources 6.5 medium 0.78% 4 Mar 2025
CVE-2025-21402 Microsoft Office OneNote Remote Code Execution Vulnerability 7.8 high 0.94% 14 Jan 2025
CVE-2025-21361 Microsoft Outlook Remote Code Execution Vulnerability 7.8 high 0.94% 14 Jan 2025
CVE-2024-45312 Arbitrary language parameter can passed to `aspell` executable via spelling requests in overleaf 5.3 medium 0.76% 2 Sep 2024
CVE-2024-30063 Windows Distributed File System (DFS) Remote Code Execution Vulnerability 6.7 medium 0.92% 11 Jun 2024
CVE-2023-0046 Improper Restriction of Names for Files and Other Resources in lirantal/daloradius 7.2 high 1.16% 4 Jan 2023
CVE-2022-23536 Alertmanager can expose local files content via specially crafted config 6.5 medium 1.00% 19 Dec 2022
CVE-2022-36302 Bosch BF-OS: Improper Restriction of Names for Files and Other Resources 8.8 high 0.71% 1 Aug 2022
CVE-2021-41146 Arbitrary command execution on Windows in qutebrowser 8.8 high 1.50% 21 Oct 2021