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-2026-91282026-07-14CVE-2026-88642026-06-30CVE-2025-713267.82026-06-19CVE-2022-509717.82026-06-19CVE-2021-479857.82026-06-19CVE-2020-372547.82026-06-19CVE-2020-372537.82026-06-19CVE-2020-372527.82026-06-19CVE-2020-372507.82026-06-19CVE-2019-257477.82026-06-19CVE-2016-200957.82026-06-19CVE-2016-200947.82026-06-19CVE-2016-200937.82026-06-19CVE-2016-200917.82026-06-19CVE-2016-200907.82026-06-19CVE-2016-200897.82026-06-19CVE-2016-200887.82026-06-19CVE-2016-200877.82026-06-19CVE-2016-200867.82026-06-19CVE-2016-200857.82026-06-19