---
title: "CWE-675: Multiple Operations on Resource in Single-Operation Context"
url: https://radicalnotion.ai/cwe/cwe-675
type: cwe
description: "The product performs the same operation on a resource two or more times, when the operation should only be applied once."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-675: Multiple Operations on Resource in Single-Operation Context

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

## Description

The product performs the same operation on a resource two or more times, when the operation should only be applied once.

## Modes of introduction

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

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Other | Varies by Context | The consequences will vary depending on how the operation works. This may depend on whether the responsibility for avoiding multiple operations is placed on the developer (which may be more risky), or whether there is built-in protection to prevent multiple invocations or handle them cleanly ("no action" or some kind of error report). |

## 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.)

## Demonstrative examples

### Example 1

The following code shows a simple example of a double free vulnerability.

Bad code:

```c
char* ptr = (char*)malloc (SIZE);
...
if (abrt) {
    free(ptr);
}
...
free(ptr);
```

### Example 2

This code binds a server socket to port 21, allowing the server to listen for traffic on that port.

Bad code:

```c
void bind_socket(void) {

    int server_sockfd;
    int server_len;
    struct sockaddr_in server_address;

    /*unlink the socket if already bound to avoid an error when bind() is called*/

    unlink("server_socket");
    server_sockfd = socket(AF_INET, SOCK_STREAM, 0);

    server_address.sin_family = AF_INET;
    server_address.sin_port = 21;
    server_address.sin_addr.s_addr = htonl(INADDR_ANY);
    server_len = sizeof(struct sockaddr_in);

    bind(server_sockfd, (struct sockaddr *) &s1, server_len);
}
```

This code may result in two servers binding a socket to same port, thus receiving each other's traffic. This could be used by an attacker to steal packets meant for another process, such as a secure FTP server.

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2009-0935 | Attacker provides invalid address to a memory-reading function, causing a mutex to be unlocked twice |
| CVE-2019-13351 | file descriptor double close can cause the wrong file to be associated with a file descriptor. |
| CVE-2004-1939 | XSS protection mechanism attempts to remove "/" that could be used to close tags, but it can be bypassed using double encoded slashes (%252F) |

## Real CVEs with this weakness

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-78663 | Double flow control refund on HTTP/2 server streams in net/http | critical | 9.1 | - | No | 2026-10-08 |
| CVE-2026-68179 | misc: nsm: only unlock nsm\_dev on post-lock error paths | high | 8.4 | - | No | 2026-08-10 |
| CVE-2025-68973 | GnuPG: GnuPG: Information disclosure and potential arbitrary code execution via out-of-bounds write | high | 7.8 | - | No | 2025-12-28 |
| CVE-2025-21960 | eth: bnxt: do not update checksum in bnxt\_xdp\_build\_skb() | high | 7.5 | - | No | 2025-04-01 |
| CVE-2026-77860 | 'serve-expired' can bypass Unbound 'wait-limit' | low | 3.7 | - | No | 2026-09-16 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-573](https://radicalnotion.ai/cwe/cwe-573) | Improper Following of Specification by Caller |
| Child | [CWE-174](https://radicalnotion.ai/cwe/cwe-174) | Double Decoding of the Same Data |
| Child | [CWE-605](https://radicalnotion.ai/cwe/cwe-605) | Multiple Binds to the Same Port |
| Child | [CWE-764](https://radicalnotion.ai/cwe/cwe-764) | Multiple Locks of a Critical Resource |
| Child | [CWE-765](https://radicalnotion.ai/cwe/cwe-765) | Multiple Unlocks of a Critical Resource |
| Child | [CWE-1341](https://radicalnotion.ai/cwe/cwe-1341) | Multiple Releases of Same Resource or Handle |
| Peer | [CWE-85](https://radicalnotion.ai/cwe/cwe-85) | Doubled Character XSS Manipulations |
| Peer | [CWE-102](https://radicalnotion.ai/cwe/cwe-102) | Struts: Duplicate Validation Forms |
| Peer | [CWE-586](https://radicalnotion.ai/cwe/cwe-586) | Explicit Call to Finalize() |

## Frequently asked questions

### What is CWE-675?

The product performs the same operation on a resource two or more times, when the operation should only be applied once.

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

5 recorded CVEs are attributed to CWE-675, including CVE-2026-78663, CVE-2026-68179 and CVE-2025-68973.

### How is CWE-675 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-675?

Exploiting CWE-675 can lead to: Varies by Context.

### Is CWE-675 actively exploited?

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

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

---

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