CWE•Base•Draft•20 recent CVEs
CWE-428Unquoted Search Path or Element
Description
The product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. This can cause the product to access resources in a parent path.
If a malicious individual has access to the file system, it is possible to elevate privileges by inserting such a file as "C:\Program.exe" to be run by a privileged program making use of WinExec.
Common consequences
- Confidentiality,Integrity,Availability→Execute Unauthorized Code or Commands
Potential mitigations
- ImplementationProperly quote the full search path before executing a program on the system.
- Implementation[object Object]
- ImplementationInputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
Related CWEs
Recent CVEs classified under this CWE
CVE-2021-479747.82026-05-16CVE-2020-372477.82026-05-16CVE-2020-372327.82026-05-16CVE-2020-372317.82026-05-16CVE-2020-372307.82026-05-16CVE-2020-372297.82026-05-16CVE-2020-372237.82026-05-13CVE-2021-479457.82026-05-10CVE-2026-72806.72026-04-28CVE-2016-200617.82026-04-04CVE-2016-200607.82026-04-04CVE-2016-200597.82026-04-04CVE-2016-200587.82026-04-04CVE-2016-200577.82026-04-04CVE-2016-200567.82026-04-04CVE-2016-200557.82026-04-04CVE-2026-347683.92026-04-04CVE-2026-258667.82026-03-09CVE-2025-140187.32025-12-22CVE-2025-122477.02025-10-27