Cyber Posture

CWE · MITRE source

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

Abstraction: Base · CVEs in our corpus: 13

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.

This may produce resultant weaknesses. For instance, if the names of these resources contain scripting characters, it is possible that a script may get executed in the client's browser if the application ever displays the name of the resource on a dynamically generated web page. Alternately, if the resources are consumed by some application parser, a specially crafted name can exploit some vulnerability internal to the parser, potentially resulting in execution of arbitrary code on the server machine. The problems will vary based on the context of usage of such malformed resource names and whether vulnerabilities are present in or assumptions are made by the targeted technology that would make code execution possible.

Last updated: 09 May 2026 03:25 UTC

NIST 800-53 r5 controls that address this weakness (0)AI

Control Title Family Why it addresses this CWE
No NIST controls proposed yet.

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2021-411461.88.80.00752021-10-21
CVE-2022-363021.88.80.00692022-08-01
CVE-2026-251771.88.80.00062026-03-10
CVE-2025-479531.78.40.01082025-06-10
CVE-2025-213611.67.80.00522025-01-14
CVE-2025-214021.67.80.00522025-01-14
CVE-2025-471731.67.80.00732025-06-10
CVE-2023-00461.57.20.00422023-01-04
CVE-2024-300631.46.70.00322024-06-11
CVE-2022-235361.36.50.00582022-12-19
CVE-2024-472601.36.50.00292025-03-04
CVE-2019-256231.26.20.00022026-03-23
CVE-2024-453121.15.30.01042024-09-02