CWE•Base•Incomplete•20 recent CVEs
CWE-805Buffer Access with Incorrect Length Value
Description
The product uses a sequential operation to read or write a buffer, but it uses an incorrect length value that causes it to access memory that is outside of the bounds of the buffer.
Common consequences
- Integrity,Confidentiality,Availability→Read Memory,Modify Memory,Execute Unauthorized Code or CommandsWhen the length value exceeds the size of the destination, an out-of-bounds read or write could occur. Buffer overflows often can be used to execute arbitrary code, which is usually outside the scope of a program's implicit security policy.
- Availability→Modify Memory,DoS: Crash, Exit, or Restart,DoS: Resource Consumption (CPU)Buffer overflows generally lead to crashes. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop.
Potential mitigations
- Requirements[object Object]
- Architecture and Design[object Object]
- Operation,Build and Compilation[object Object]
- Implementation[object Object]
- Architecture and DesignFor any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
- Operation,Build and Compilation[object Object]
- Operation[object Object]
- Architecture and Design,OperationRun your code using the lowest privileges that are required to accomplish the necessary tasks [REF-76]. If possible, create isolated accounts with limited privileges that are only used for a single task. That way, a successful attack will not immediately give the attacker access to the rest of the product or its environment. For example, database applications rarely need to run as the database adm
- Architecture and Design,Operation[object Object]
Related CWEs
Recent CVEs classified under this CWE
CVE-2026-979992026-11-16CVE-2026-1090965.52026-11-13CVE-2026-477118.62026-11-12CVE-2026-1197569.82026-11-09CVE-2026-1011855.92026-11-02CVE-2026-200115.82026-10-21CVE-2021-480194.82026-10-21CVE-2026-921596.52026-10-14CVE-2025-587742026-10-13CVE-2026-202905.82026-09-16CVE-2026-66955.52026-08-03CVE-2026-150283.92026-07-10CVE-2026-538774.82026-07-07CVE-2026-530167.82026-06-24CVE-2026-125494.82026-06-22CVE-2026-17675.62026-06-16CVE-2026-17665.62026-06-16CVE-2026-120879.12026-06-15CVE-2026-448937.52026-06-12CVE-2026-80919.82026-05-07