CWEweakness

CWE-683 Function Call With Incorrect Order of Arguments

Official page ↗
Abstraction
Variant
Structure
Simple
Status
Draft
Languages
Not Language-Specific
CWE version
5.0

Description

The product calls a function, procedure, or routine, but the caller specifies the arguments in an incorrect order.

Common consequences

• Other: Quality Degradation, Varies by Context — This can lead to resultant weaknesses. The consequences will vary depending on which function is called and the context in which the function is used.

Potential mitigations

• [Implementation] Use the function, procedure, or routine as specified.

Detection methods

• Automated Analysis: Because this function call often produces incorrect behavior, it will usually be detected during testing or normal operation of the product. • Automated Analysis: Exercising all possible control paths will typically expose this weakness, except in rare cases when the incorrect function call accidentally produces the correct results, or if the provided argument type is very similar to the expected argument type.

Observed examples

• CVE-2006-7049: Application calls functions with arguments in the wrong order, allowing attacker to bypass intended access restrictions.

Related

Observed example · CVE (1)

  • CVE-2006-7049 The Method method in WikkaWiki (Wikka Wiki) before 1.1.6.2 calls the strstr and strrpos functions with the wrong argument order, which… vulnerability

Child of · CWE (1)

  • CWE-628 Function Call with Incorrectly Specified Arguments weakness

Referenced by CVE · weakness (5)

  • CVE-2026-32269 Parse Server is an open source backend that can be deployed to any infrastructure that can run Node.js. vulnerability
  • CVE-2026-24846 malcontent discovers supply-chain compromises through. vulnerability
  • CVE-2025-47278 Flask is a web server gateway interface (WSGI) web application framework. vulnerability
  • CVE-2023-5352 The Awesome Support WordPress plugin before 6.1.5 does not correctly authorize the wpas_edit_reply function, allowing users to edit posts… vulnerability
  • CVE-2023-32059 Vyper is a Pythonic smart contract language for the Ethereum virtual machine. vulnerability