CWE · MITRE source
CWE-641Improper 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.
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: 28 November 2026 01:40 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: full · 15 mapping(s) from 4 framework(s): ATT&CK 8 (full) · ISO_IEC_27002_2022 5 (mostly) · 1 (mostly) · 800-53 1 (mostly)
Control responseHuman-reviewed
Answering this weakness across the control lifecycle, from our framework cross-walks.
—
—
—
NIST 800-53 r5 controls PROPOSED for this weakness (0)
These are model PROPOSALS, not graded mappings. They come
from controls_to_cwe_proposals, which carries no grade field at
all; across the CWE pages 1,540 of 1,722 such associations (89%) have never
been graded by anything. The heading said “address” until
2026-09-29, which asserted a relationship the data does not carry.
Graded cross-walks are on the framework map, not here.
| 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).
Direction: ← other covers this;
→ this covers other (F/M/P = full / mostly /
partial). gov = governs / implements (a mandate, not coverage).
Top CVEs of this weakness type, ranked by Risk Priority
| CVE | Risk | CVSS | EPSS | Published |
|---|---|---|---|---|
CVE-2021-41146 UPD | 6.8 | 8.8 | 0.0150 | 2021-10-21 |
CVE-2026-25177 | 6.8 | 8.8 | 0.0115 | 2026-03-10 |
CVE-2022-36302 UPD | 6.7 | 8.8 | 0.0071 | 2022-08-01 |
CVE-2026-27140 UPD | 6.7 | 8.8 | 0.0086 | 2026-04-08 |
CVE-2025-47953 UPD | 6.4 | 8.4 | 0.0056 | 2025-06-10 |
CVE-2025-21361 UPD | 6.0 | 7.8 | 0.0094 | 2025-01-14 |
CVE-2025-21402 UPD | 6.0 | 7.8 | 0.0094 | 2025-01-14 |
CVE-2025-47173 UPD | 6.0 | 7.8 | 0.0079 | 2025-06-10 |
CVE-2026-50023 | 6.0 | 8.3 | 0.0066 | 2026-06-23 |
CVE-2026-46581 UPD | 5.9 | 7.5 | 0.0056 | 2026-08-05 |
CVE-2026-50510 UPD | 5.8 | 7.8 | 0.0036 | 2026-07-14 |
CVE-2026-85864 UPD | 5.8 | 7.8 | 0.0032 | 2026-10-13 |
CVE-2023-0046 UPD | 5.7 | 7.2 | 0.0116 | 2023-01-04 |
CVE-2024-30063 UPD | 5.4 | 6.7 | 0.0092 | 2024-06-11 |
CVE-2022-23536 UPD | 5.3 | 6.5 | 0.0100 | 2022-12-19 |
CVE-2024-47260 UPD | 5.2 | 6.5 | 0.0078 | 2025-03-04 |
CVE-2019-25623 | 4.9 | 6.2 | 0.0056 | 2026-03-23 |
CVE-2024-45312 UPD | 4.6 | 5.3 | 0.0076 | 2024-09-02 |
CVE-2026-20282 | 4.1 | 4.9 | 0.0060 | 2026-09-16 |