CWE-792: Incomplete Filtering of One or More Instances of Special Elements
The product receives data from an upstream component, but does not completely filter one or more instances of special elements before sending it to a downstream component.
Last updated
Overview
Incomplete filtering of this nature involves either:
only filtering a single instance of a special element when more exist, or
not filtering all instances or all elements where multiple special elements exist.
Real-world CVEs
4 recorded CVEs are caused by CWE-792 (Incomplete Filtering of One or More Instances of Special Elements). The highest-severity and most recent are shown first. None so far in 2026 (1 in 2025).
- CVE-2025-12758
Validator is Vulnerable to Incomplete Filtering of One or More Instances of Special Elements
High · CVSS 8.7 · EPSS 75th2025-11-27 - CVE-2023-25608Medium · CVSS 6.5 · EPSS 37th2023-09-13
- CVE-2022-22297Medium · CVSS 5.5 · EPSS 14th2023-03-07
- CVE-2023-20057
Cisco Email Security Appliance URL Filtering Bypass Vulnerability
Medium · CVSS 5.3 · EPSS 53th2023-01-19
Common consequences
What can happen when CWE-792 is exploited.
Unexpected State
Affects: Integrity
How it happens
When it is introduced
Typically introduced during these phases of the software lifecycle.
Code examples
MITRE examples of the weakness in code.
The following code takes untrusted input and uses a regular expression to filter "../" from the input. It then appends this result to the /home/user/ directory and attempts to read the file in the final resulting path.
Vulnerable example
my $Username = GetUntrustedInput();
$Username =~ s/\.\.\///;
my $filename = "/home/user/" . $Username;
ReadAndSendFile($filename);Attack input
../../../etc/passwdResulting query
../../etc/passwdResulting query
/home/user/../../etc/passwdFrequently asked questions
Common questions about CWE-792.
- What is CWE-792?
- The product receives data from an upstream component, but does not completely filter one or more instances of special elements before sending it to a downstream component.
- What CVEs are caused by CWE-792?
- 4 recorded CVEs are attributed to CWE-792, including CVE-2025-12758, CVE-2023-25608 and CVE-2022-22297.
- What are the consequences of CWE-792?
- Exploiting CWE-792 can lead to: Unexpected State.
- Is CWE-792 actively exploited?
- 4 recorded CVEs are caused by CWE-792; none are currently in CISA's KEV catalog of actively exploited flaws.
References
- MITRE CWE definition (CWE-792) (opens in a new tab)
- CWE-792 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.21). CVE associations are aggregated and kept current by RadicalNotion.AI.
Track CWE-792 CVEs
Get an alert when a new CWE-792 CVE affects your products, with AI-written analysis and remediation steps.