---
title: "CWE-622: Improper Validation of Function Hook Arguments"
url: https://radicalnotion.ai/cwe/cwe-622
type: cwe
description: "The product adds hooks to user-accessible API functions, but it does not properly validate the arguments."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-622: Improper Validation of Function Hook Arguments

- **Abstraction:** Variant
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 2
- **Of those, in CISA KEV:** 0
- **New in 2026:** 0
- **CWE catalog version:** 4.21

## Description

The product adds hooks to user-accessible API functions, but it does not properly validate the arguments.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | Function hooks can be used in defensive software that runs with privileges, such as anti-virus or firewall, which hooks kernel calls. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Integrity | Unexpected State, Bypass Protection Mechanism | When the arguments are not validated, they could be used to bypass the protection mechanism or attack the product itself. This could lead to resultant vulnerabilities. |

## Potential mitigations

### Architecture and Design

Ensure that all arguments are verified, as defined by the API you are protecting.

### Architecture and Design

Drop privileges before invoking such functions, if possible.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2007-0708 | DoS in firewall using standard Microsoft functions |
| CVE-2006-7160 | DoS in firewall using standard Microsoft functions |
| CVE-2007-1376 | function does not verify that its argument is the proper type, leading to arbitrary memory write |
| CVE-2007-1220 | invalid syscall arguments bypass code execution limits |
| CVE-2006-4541 | DoS in IDS via NULL argument |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2024-0312 | - | medium | 5.5 | - | No | 2024-03-14 |
| CVE-2024-0311 | - | medium | 5.5 | - | No | 2024-03-14 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-20](https://radicalnotion.ai/cwe/cwe-20) | Improper Input Validation |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| Software Fault Patterns | Tainted input to environment | SFP27 | - |

## Frequently asked questions

### What is CWE-622?

The product adds hooks to user-accessible API functions, but it does not properly validate the arguments.

### What CVEs are caused by CWE-622?

2 recorded CVEs are attributed to CWE-622, including CVE-2024-0312 and CVE-2024-0311.

### How do you prevent CWE-622?

Ensure that all arguments are verified, as defined by the API you are protecting.

### What are the consequences of CWE-622?

Exploiting CWE-622 can lead to: Unexpected State, Bypass Protection Mechanism.

### Is CWE-622 actively exploited?

2 recorded CVEs are caused by CWE-622; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/622.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-622). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
