Cyber Resilience

CWE · MITRE source

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

Abstraction: Base · CVEs in our corpus: 15

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: 04 July 2026 11:13 UTC

Cumulative inbound coverage

How completely the frameworks we cross-walk collectively cover this — the verdict is the strongest single mapping (overlapping partials are not summed); breadth shows the corroboration behind it.

Collective: partial · 1 mapping(s) from 1 framework(s): ATT&CK 1 (partial)

See the full cumulative-coverage rollup →

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

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

MITRE ATT&CK techniques this weakness enables

Our own two-way CWE↔ATT&CK cross-walk — a direct mapping with no public source (the CWE→CAPEC→ATT&CK chain leaves most top weaknesses, incl. XSS and SQLi, mapped to nothing). Drafted by Grok and spot-checked by Claude Opus 4.8.

Direction: other covers this; this covers other (F/M/P = full / mostly / partial).

Top CVEs of this weakness type, ranked by Risk Priority

CVE Risk CVSS EPSS Published
CVE-2021-411465.58.80.01452021-10-21
CVE-2022-363025.58.80.00512022-08-01
CVE-2023-00465.57.20.01022023-01-04
CVE-2025-213615.57.80.00732025-01-14
CVE-2025-214025.57.80.00652025-01-14
CVE-2025-47173 UPD5.57.80.00542025-06-10
CVE-2025-47953 UPD5.58.40.00462025-06-10
CVE-2026-251775.58.80.01242026-03-10
CVE-2026-27140 UPD5.58.80.00662026-04-08
CVE-2026-500235.58.30.00562026-06-23
CVE-2022-235363.56.50.00752022-12-19
CVE-2024-300633.56.70.01022024-06-11
CVE-2024-453123.55.30.00482024-09-02
CVE-2024-472603.56.50.00372025-03-04
CVE-2019-256233.56.20.00192026-03-23