CWE-403: Exposure of File Descriptor to Unintended Control Sphere
Also known as: File descriptor leak
A process does not close sensitive file descriptors before invoking a child process, which allows the child to perform unauthorized I/O operations using those descriptors.
Last updated
Overview
CWE-403 (Exposure of File Descriptor to Unintended Control Sphere) is a base-level software weakness catalogued by MITRE in the Common Weakness Enumeration (CWE). It describes a recurring type of mistake that can lead to exploitable security vulnerabilities.
Background
When a new process is forked or executed, the child process inherits any open file descriptors and can perform operations on those descriptors.
Real-world CVEs
10 recorded CVEs are caused by CWE-403 (Exposure of File Descriptor to Unintended Control Sphere). The highest-severity and most recent are shown first. 6 new CWE-403 CVEs have been recorded so far in 2026 (3 in 2025).