---
title: "CWE-573: Improper Following of Specification by Caller"
url: https://radicalnotion.ai/cwe/cwe-573
type: cwe
description: "The product does not follow or incorrectly follows the specifications as required by the implementation language, environment, framework, protocol, or platform."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-573: Improper Following of Specification by Caller

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

## Description

The product does not follow or incorrectly follows the specifications as required by the implementation language, environment, framework, protocol, or platform.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Quality Degradation, Varies by Context | Unintended behaviors may result, possibly leaving the system vulnerable to any number of exploits. |

## Potential mitigations

### Implementation

When leveraging external functionality, such as an API, it is important that the caller does so in accordance with the requirements of the external functionality.

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2006-7140 | Crypto implementation removes padding when it shouldn't, allowing forged signatures |
| CVE-2006-4339 | Crypto implementation removes padding when it shouldn't, allowing forged signatures |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-41583 | ZEBRA: Consensus Divergence in Transparent Sighash Hash-Type Handling | critical | 9.3 | - | No | 2026-05-08 |
| CVE-2025-21601 | Junos OS: SRX and EX Series, MX240, MX480, MX960, QFX5120 Series: When web management is enabled for specific services an attacker may cause a CPU spike by sending genuine packets to the device | high | 8.7 | - | No | 2025-04-09 |
| CVE-2026-89087 | Cstruct indexing bugs can corrupt filtered output and reverse parsing results | high | 7.3 | - | No | 2026-09-10 |
| CVE-2026-59998 | openssh: OpenSSH: Undocumented GSSAPIStrictAcceptorCheck behavior impacts security in Windows Active Directory | medium | 6.5 | - | No | 2026-07-08 |
| CVE-2025-69287 | BSV Blockchain SDK has an Authentication Signature Data Preparation Vulnerability | medium | 5.4 | - | No | 2026-02-18 |
| CVE-2019-14829 | moddle: Activity :addinstance capabilities were not respected when creating a course in single activity format | medium | 4.3 | - | No | 2021-03-19 |
| CVE-2025-46330 | Snowflake Connector for C/C++ retries malformed requests | low | 3.3 | - | No | 2025-04-29 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-710](https://radicalnotion.ai/cwe/cwe-710) | Improper Adherence to Coding Standards |
| Child | [CWE-103](https://radicalnotion.ai/cwe/cwe-103) | Struts: Incomplete validate() Method Definition |
| Child | [CWE-104](https://radicalnotion.ai/cwe/cwe-104) | Struts: Form Bean Does Not Extend Validation Class |
| Child | [CWE-243](https://radicalnotion.ai/cwe/cwe-243) | Creation of chroot Jail Without Changing Working Directory |
| Child | [CWE-253](https://radicalnotion.ai/cwe/cwe-253) | Incorrect Check of Function Return Value |
| Child | [CWE-296](https://radicalnotion.ai/cwe/cwe-296) | Improper Following of a Certificate's Chain of Trust |
| Child | [CWE-304](https://radicalnotion.ai/cwe/cwe-304) | Missing Critical Step in Authentication |
| Child | [CWE-325](https://radicalnotion.ai/cwe/cwe-325) | Missing Cryptographic Step |
| Child | [CWE-329](https://radicalnotion.ai/cwe/cwe-329) | Generation of Predictable IV with CBC Mode |
| Child | [CWE-358](https://radicalnotion.ai/cwe/cwe-358) | Improperly Implemented Security Check for Standard |
| Child | [CWE-475](https://radicalnotion.ai/cwe/cwe-475) | Undefined Behavior for Input to API |
| Child | [CWE-568](https://radicalnotion.ai/cwe/cwe-568) | finalize() Method Without super.finalize() |
| Child | [CWE-579](https://radicalnotion.ai/cwe/cwe-579) | J2EE Bad Practices: Non-serializable Object Stored in Session |
| Child | [CWE-580](https://radicalnotion.ai/cwe/cwe-580) | clone() Method Without super.clone() |
| Child | [CWE-581](https://radicalnotion.ai/cwe/cwe-581) | Object Model Violation: Just One of Equals and Hashcode Defined |
| Child | [CWE-628](https://radicalnotion.ai/cwe/cwe-628) | Function Call with Incorrectly Specified Arguments |
| Child | [CWE-675](https://radicalnotion.ai/cwe/cwe-675) | Multiple Operations on Resource in Single-Operation Context |
| Child | [CWE-694](https://radicalnotion.ai/cwe/cwe-694) | Use of Multiple Resources with Duplicate Identifier |
| Child | [CWE-695](https://radicalnotion.ai/cwe/cwe-695) | Use of Low-Level Functionality |
| Peer | [CWE-170](https://radicalnotion.ai/cwe/cwe-170) | Improper Null Termination |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| The CERT Oracle Secure Coding Standard for Java (2011) | Follow the general contract when implementing the compareTo() method | MET10-J | - |

## Frequently asked questions

### What is CWE-573?

The product does not follow or incorrectly follows the specifications as required by the implementation language, environment, framework, protocol, or platform.

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

7 recorded CVEs are attributed to CWE-573, including CVE-2026-41583, CVE-2025-21601 and CVE-2026-89087.

### How do you prevent CWE-573?

When leveraging external functionality, such as an API, it is important that the caller does so in accordance with the requirements of the external functionality.

### How is CWE-573 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

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

Exploiting CWE-573 can lead to: Quality Degradation, Varies by Context.

### Is CWE-573 actively exploited?

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

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

---

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