cve.bz

CAPEC-123

Buffer Manipulation

Very High severityHigh likelihoodMeta pattern

An adversary manipulates an application's interaction with a buffer in an attempt to read or modify data they shouldn't have access to. Buffer attacks are distinguished in that it is the buffer space itself that is the target of the attack rather than any code responsible for interpreting the content of the buffer. In virtually all buffer attacks the content that is placed in the buffer is immaterial. Instead, most buffer attacks involve retrieving or providing more input than can be stored in the allocated buffer, resulting in the reading or overwriting of other unintended program memory.

On this page

Ask an AI about this attack pattern

Show the promptExplain the attack pattern CAPEC-123: Buffer Manipulation: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/123.html and https://cve.bz/cve/capec/123?via=ask-ai-copy, which lists recent CVEs with the weaknesses it exploits. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this attack pattern's id and public links.

Prerequisites

  • The adversary must identify a programmatic means for interacting with a buffer, such as vulnerable C code, and be able to provide input to this interaction.

Consequences

What a successful attack can lead to
ImpactAffectsNote
Unreliable ExecutionAvailabilityA buffer manipulation attack often results in a crash of the application due to the corruption of memory.
Execute Unauthorized Commands, Modify Data, Read DataConfidentialityIf constructed properly, a buffer manipulation attack can be used to contol the execution of the application leading to any number of negative consequenses.

Mitigations

  • To help protect an application from buffer manipulation attacks, a number of potential mitigations can be leveraged. Before starting the development of the application, consider using a code language (e.g., Java) or compiler that limits the ability of developers to act beyond the bounds of a buffer. If the chosen language is susceptible to buffer related issues (e.g., C) then consider using secure functions instead of those vulnerable to buffer manipulations. If a potentially dangerous function must be used, make sure that proper boundary checking is performed. Additionally, there are often a number of compiler-based mechanisms (e.g., StackGuard, ProPolice and the Microsoft Visual Studio /GS flag) that can help identify and protect against potential buffer issues. Finally, there may be operating system level preventative functionality that can be applied.

Weaknesses it exploits

  • CWE-119 Improper Restriction of Operations within the Bounds of a Memory Buffer

Recent CVEs with these weaknesses

  1. 5.5CVE-2026-140050

    A vulnerability has been found in NASA Trick up to 25.1.1. Affected by this vulnerability is the function Trick::MonteCarlo::handle_initialization of the file trick_source/sim_services/MonteCarlo/MonteCarlo_receive_results.cpp of the compo…

  2. 8.6CVE-2026-140042

    A vulnerability has been found in WAVLINK WL-WN530BE1-A M30BE1_V251117. This affects the function FUN_0001f94c of the file /protocol.csp of the component ioos. The manipulation of the argument device_name leads to stack-based buffer overfl…

  3. 6.9CVE-2026-139817

    A security flaw has been discovered in DeepSeek-AI DeepGEMM 2.8.1/2.8.2. The affected element is the function fp8_fp4_mqa_logits of the file csrc/apis/attention.hpp. The manipulation of the argument max_seqlen_k results in out-of-bounds wr…

  4. 9.3CVE-2026-138391

    A vulnerability has been found in D-Link DI-8100 16.07.26A1. Affected by this issue is the function httpd_do_recv of the file /usr/sbin/jhttpd. The manipulation leads to heap-based buffer overflow. The attack may be initiated remotely. The…

  5. 9.3CVE-2026-138366

    A vulnerability was determined in D-Link R18 A1 1.20.B01. This impacts the function GetDeviceSettings_put of the component httpd. Executing a manipulation of the argument Target can lead to stack-based buffer overflow. The attack may be pe…

  6. 9.3CVE-2026-138365

    A vulnerability was found in D-Link R18 A1 1.20.B01. This affects the function is_session_valid of the file /bin/httpd. Performing a manipulation results in stack-based buffer overflow. The attack is possible to be carried out remotely. Th…

  7. 9.3CVE-2026-138362

    A vulnerability was detected in D-Link R18 A1 1.20.B01. Impacted is the function GetDeviceSettings of the component httpd. The manipulation results in stack-based buffer overflow. The attack may be launched remotely. The exploit is now pub…

  8. 9.3CVE-2026-138361

    A security vulnerability has been detected in D-Link R18 1.20.B01. This issue affects the function is_session_valid of the file /bin/httpd of the component DHMAPI. The manipulation of the argument API-AUTH leads to stack-based buffer overf…

The newest records naming one of them. Each weakness's page lists them all.

More specific patterns

MITRE's words, unchanged: CAPEC-123 at MITRE. CAPEC is Copyright © 2007–2026, The MITRE Corporation, used under the CAPEC terms of use: “The MITRE Corporation (MITRE) hereby grants you a non-exclusive, royalty-free license to use Common Attack Pattern Enumeration and Classification (CAPEC™) for research, development, and commercial purposes. Any copy you make for such purposes is authorized provided that you reproduce MITRE’s copyright designation and this license in any such copy.” CAPEC and the CAPEC logo are trademarks of The MITRE Corporation. Credits. All attack patterns.