CWE-840: Business Logic Errors

What is CWE-840?

CWE-840 is Business Logic Errors. The flaw arises when this is a category of weaknesses involving underlying problems that can allow attackers to manipulate an application's business logic. The database currently holds 35 vulnerabilities mapped to CWE-840 and none of them are in the CISA Known Exploited Vulnerabilities catalog.

OWASP Top 10 Rank-
Related CVES (365 days)35
Abstraction-
Likelihood of exploit-

Vulnerabilities mapped to CWE-840

35 vulnerabilities338% increase year over year

No data

No vulnerability data in CISA KEV for CWE-840

Official definition

ByMitre CWE

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.

Detailed description

Weaknesses in this category concern flaws in how an application models or enforces business rules. When manipulated, business logic can alter behavior that the application otherwise legitimately exposes, and the resulting effect can affect the application broadly. Automated discovery is often difficult because an attacker may use valid application functionality, although some errors can display patterns resembling known implementation or design weaknesses. CWE-840 groups related weaknesses and does not itself describe a specific vulnerability.

Characteristics

This category covers weaknesses in the underlying business logic of an application that may enable an attacker to manipulate how legitimate functionality operates. Such errors can be difficult to identify automatically because they commonly involve valid use of the application, although some may resemble recognized implementation or design weaknesses. Its recorded members are CWE-283, CWE-639, CWE-640, CWE-708, CWE-770, CWE-826, CWE-837, and CWE-841.

Common consequences

The official record does not specify consequences for this category.

Risk mitigations

The official record does not specify mitigations for this category.

Detection methods

The official record does not specify detection methods for this category.

Representative vulnerabilities

The official record does not provide representative observed vulnerability examples for this category.

Sources (2)

CWE™ Program, operated by The MITRE Corporation. Copyright © 2006–2026, The MITRE Corporation. The MITRE Corporation hereby grants you a non-exclusive, royalty-free license to use CWE for research, development, and commercial purposes. CWE Terms of Use.

Learn more

Run an in-depth assessment with complete web risk management

CyStack VulnScan continuously discovers assets, validates vulnerabilities, and helps security teams prioritize remediation across the organization.