---
title: "CWE-840: Business Logic Errors"
url: https://radicalnotion.ai/cwe/cwe-840
type: cwe
description: "Weaknesses in this category identify some of the underlying problems that commonly allow attackers to manipulate the business logic of an application. Errors in business logic can be devastating to an entire application. They can be difficult to find automatically, since they typically involve legitimate use of the application's functionality. However, many business logic errors can exhibit patterns that are similar to well-understood implementation and design weaknesses."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-840: Business Logic Errors

- **Status:** Incomplete
- **CVEs with this as primary weakness:** 98
- **Of those, in CISA KEV:** 0
- **New in 2026:** 31
- **CWE catalog version:** 4.21

## Description

Weaknesses in this category identify some of the underlying problems that commonly allow attackers to manipulate the business logic of an application. Errors in business logic can be devastating to an entire application. They can be difficult to find automatically, since they typically involve legitimate use of the application's functionality. However, many business logic errors can exhibit patterns that are similar to well-understood implementation and design weaknesses.

## Real CVEs with this weakness (sample of 12 of 98)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2022-32207 | When curl \< 7.84.0 saves cookies, alt-svc and hsts data to local files, it makes the operation atomic by finalizing the operation with a rename from a temporary name to the final target file name.In that rename operation, it might accidentally \*widen\* the permissions for the target file, leaving the updated file accessible to more users than intended. | critical | 9.8 | - | No | 2022-07-07 |
| CVE-2021-4171 | Business Logic Errors in janeczku/calibre-web | critical | 9.8 | - | No | 2022-01-17 |
| CVE-2024-39671 | Access control vulnerability in the security verification module | critical | 9.3 | - | No | 2024-07-25 |
| CVE-2022-3363 | Business Logic Errors in ikus060/rdiffweb | critical | 9.3 | - | No | 2022-10-26 |
| CVE-2025-2938 | Business Logic Errors in GitLab | high | 8.8 | - | No | 2025-06-26 |
| CVE-2023-6514 | - | high | 8.8 | - | No | 2023-12-06 |
| CVE-2022-0935 | Host Header injection in password Reset in livehelperchat/livehelperchat | high | 8.8 | - | No | 2022-04-07 |
| CVE-2019-3787 | UAA defaults email address to an insecure domain | high | 8.8 | - | No | 2019-06-19 |
| CVE-2024-54098 | Service logic error vulnerability in the system service module | high | 8.5 | - | No | 2024-12-12 |
| CVE-2023-1887 | Business Logic Errors in thorsten/phpmyfaq | high | 8.3 | - | No | 2023-04-05 |
| CVE-2026-1322 | Business Logic Errors in GitLab | high | 8.1 | - | No | 2026-05-14 |
| CVE-2026-58558 | Permission control vulnerability in the file system | high | 7.8 | - | No | 2026-07-15 |

## Frequently asked questions

### What is CWE-840?

Weaknesses in this category identify some of the underlying problems that commonly allow attackers to manipulate the business logic of an application. Errors in business logic can be devastating to an entire application. They can be difficult to find automatically, since they typically involve legitimate use of the application's functionality. However, many business logic errors can exhibit patterns that are similar to well-understood implementation and design weaknesses.

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

98 recorded CVEs are attributed to CWE-840, including CVE-2022-32207, CVE-2021-4171 and CVE-2024-39671.

### Is CWE-840 actively exploited?

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

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

---

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