---
title: "CWE-683: Function Call With Incorrect Order of Arguments"
url: https://radicalnotion.ai/cwe/cwe-683
type: cwe
description: "The product calls a function, procedure, or routine, but the caller specifies the arguments in an incorrect order."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-683: Function Call With Incorrect Order of Arguments

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

## Description

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

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | This problem typically occurs when the programmer makes a typo, or copy and paste errors. While this weakness might be caught by the compiler in some languages, it can occur more frequently in cases in which the called function accepts variable numbers or types of arguments, such as format strings in C. It also can occur in languages or environments that do not enforce strong typing. |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| 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.

## Demonstrative examples

### Example 1

The following PHP method authenticates a user given a username/password combination but is called with the parameters in reverse order.

Bad code:

```php
function authenticate($username, $password) {

    // authenticate user
    ...
}

authenticate($_POST['password'], $_POST['username']);
```

## Observed examples

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

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2023-32059 | Vyper vulnerable to incorrect ordering of arguments for kwargs passed to internal calls | high | 8.7 | - | No | 2023-05-11 |
| CVE-2026-32269 | Parse Server OAuth2 adapter app ID validation sends wrong token to introspection endpoint | medium | 6.3 | - | No | 2026-03-12 |
| CVE-2025-47278 | Flask uses fallback key instead of current signing key | low | 1.8 | - | No | 2025-05-13 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-628](https://radicalnotion.ai/cwe/cwe-628) | Function Call with Incorrectly Specified Arguments |

## Frequently asked questions

### What is CWE-683?

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

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

3 recorded CVEs are attributed to CWE-683, including CVE-2023-32059, CVE-2026-32269 and CVE-2025-47278.

### How do you prevent CWE-683?

Use the function, procedure, or routine as specified.

### How is CWE-683 detected?

Automated Analysis: Because this function call often produces incorrect behavior, it will usually be detected during testing or normal operation of the product.

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

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

### Is CWE-683 actively exploited?

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

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

---

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