CWE-840: Business Logic Errors
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.
Last updated
Weaknesses in this category
- CWE-283: Unverified Ownership
- CWE-639: Authorization Bypass Through User-Controlled Key
- CWE-640: Weak Password Recovery Mechanism for Forgotten Password
- CWE-708: Incorrect Ownership Assignment
- CWE-770: Allocation of Resources Without Limits or Throttling
- CWE-826: Premature Release of Resource During Expected Lifetime
- CWE-837: Improper Enforcement of a Single, Unique Action
- CWE-841: Improper Enforcement of Behavioral Workflow
Real-world CVEs
97 recorded CVEs are caused by CWE-840 (Business Logic Errors). The highest-severity and most recent are shown first. 30 new CWE-840 CVEs have been recorded so far in 2026 (16 in 2025).
- CVE-2022-32207
Non-preserved file permissions
Critical · CVSS 9.8 · EPSS 96th2022-07-07 - CVE-2021-4171
Business Logic Errors in janeczku/calibre-web
Critical · CVSS 9.8 · EPSS 72th2022-01-17 - CVE-2024-39671Critical · CVSS 9.3 · EPSS 2th2024-07-25
- CVE-2022-3363
Business Logic Errors in ikus060/rdiffweb
Critical · CVSS 9.3 · EPSS 63th2022-10-26 - CVE-2025-2938
Business Logic Errors in GitLab
High · CVSS 8.8 · EPSS 25th2025-06-26 - CVE-2023-6514High · CVSS 8.8 · EPSS 24th2023-12-06
- CVE-2022-0935
Host Header injection in password Reset in livehelperchat/livehelperchat
High · CVSS 8.8 · EPSS 71th2022-04-07 - CVE-2019-3787
UAA defaults email address to an insecure domain
High · CVSS 8.8 · EPSS 66th2019-06-19 - CVE-2024-54098High · CVSS 8.5 · EPSS 7th2024-12-12
- CVE-2023-1887
Business Logic Errors in thorsten/phpmyfaq
High · CVSS 8.3 · EPSS 53th2023-04-05 - CVE-2026-1322
Business Logic Errors in GitLab
High · CVSS 8.1 · EPSS 24th2026-05-14 - CVE-2026-58558High · CVSS 7.8 · EPSS 2th2026-07-15
Showing 12 of 97 recorded CWE-840 CVEs. Get an alert for each new one, with AI-written analysis and fixes.
Monitor these CVEsFrequently asked questions
Common questions about CWE-840.
- 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?
- 97 recorded CVEs are attributed to CWE-840, including CVE-2022-32207, CVE-2021-4171 and CVE-2024-39671.
- Is CWE-840 actively exploited?
- 97 recorded CVEs are caused by CWE-840; none are currently in CISA's KEV catalog of actively exploited flaws.
Sources
- [1]Business Logic Flaws and Yahoo Games (2006)
- [2]Seven Business Logic Flaws That Put Your Website At Risk (2007)
- [3]Business Logic Flaws
- [4]Abuse of Functionality
- [5]Defying Logic: Theory, Design, and Implementation of Complex Systems for Testing Application Logic (2011)
- [6]Real-Life Example of a 'Business Logic Defect' (Screen Shots!) (2011)
- [7]Toward Automated Detection of Logic Vulnerabilities in Web Applications (2010)
- [8]Designing a Framework Method for Secure Business Application Logic Integrity in e-Commerce Systems (2011)
- [9]Case Files from 20 Years of Business Logic Flaws (2020)
References
- MITRE CWE definition (CWE-840) (opens in a new tab)
- CWE-840 vulnerabilities on NVD (opens in a new tab)
- Learn: What is a CWE?
Weakness data is sourced from the MITRE CWE catalog (v4.20). CVE associations are aggregated and kept current by RadicalNotion.AI.