CAPEC-540
Overread Buffers
An adversary attacks a target by providing input that causes an application to read beyond the boundary of a defined buffer. This typically occurs when a value influencing where to start or stop reading is set to reflect positions outside of the valid memory location of the buffer. This type of attack may result in exposure of sensitive information, a system crash, or arbitrary code execution.
On this page
Ask an AI about this attack pattern
Show the prompt
Explain the attack pattern CAPEC-540: Overread Buffers: how it unfolds, what it needs and how to prevent and detect it in my systems. Use https://capec.mitre.org/data/definitions/540.html and https://cve.bz/cve/capec/540?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.
How the attack unfolds
Explore
The attacker looks for a way in.
[Identify target application] The adversary identifies a target application or program to perform the buffer overread on. Adversaries often look for applications that accept user input and that perform manual memory management.
Experiment
They probe what they found.
[Find attack vector] The adversary identifies an attack vector by looking for areas in the application where they can specify to read more data than is required.
Exploit
They carry out the attack.
[Overread the buffer] The adversary provides input to the application that gets it to read past the bounds of a buffer, possibly revealing sensitive information that was not intended to be given to the adversary.
Prerequisites
For this type of attack to be successful, a few prerequisites must be met. First, the targeted software must be written in a language that enables fine grained buffer control. (e.g., c, c++) Second, the targeted software must actually perform buffer operations and inadequately perform bounds-checking on those buffer operations. Finally, the adversary must have the capability to influence the input that guides these buffer operations.
Consequences
| Impact | Affects | Note |
|---|---|---|
| Read Data | Confidentiality | By reading outside the boundary of the intended buffer, the adversary is potentially able to see any data that is stored on the disk. This could include secret keys, personal information, and sensitive files. |
| Unreliable Execution | Availability | Depending on the use of the target buffer, an application or system crash can be achieved. |
Weaknesses it exploits
- CWE-125 Out-of-bounds Read
Recent CVEs with these weaknesses
- 6.1CVE-2026-130472
An out-of-bounds read vulnerability exists in the Foxit PDF Editor/Reader’s handling of malformed images with soft masks. Insufficient validation of image-decoding data may result in an out-of-bounds read and application crash.
- 5.1CVE-2026-119003
OOB read vulnerability in the image processing module. Impact: Successful exploitation of this vulnerability may affect service confidentiality.
- 8.4CVE-2026-119002
OOB read vulnerability in the image processing module. Impact: Successful exploitation of this vulnerability may affect service confidentiality.
- 6.8CVE-2026-139880
FontForge through 20251009 contains an out-of-bounds read vulnerability in PcfReadEncodingsNames() in fontforge/fvimportbdf.c that allows attackers to read outside heap buffers via unchecked glyph-name offsets. Attackers can supply a craft…
- 7.8CVE-2026-138781
A flaw was found in the file-psd plugin in GIMP. Incorrect bounds checks when loading PSD alpha channel metadata can cause an out-of-bounds read. Opening a crafted PSD file can crash the application and may allow arbitrary code execution.
- 8.7CVE-2026-115406
An out-of-bounds read in the BACnet NPDU parser of the bacrouter service allows an unauthenticated remote attacker to crash the service via a single crafted, truncated NPDU sent to UDP port 47808, resulting in a denial of service of BACnet…
- 8.7CVE-2026-115405
An out-of-bounds read in the BACnet NPDU parser of the bacrouter service allows an unauthenticated remote attacker to crash the service via a crafted BACnet Network Layer message of type 0x14 with an empty or truncated payload, resulting i…
- 3.7CVE-2026-104377
The Zephyr TFTP client library (subsys/net/lib/tftp/tftp_client.c) reports server ERROR packets to the application through a TFTP_EVT_ERROR event whose evt.param.error.msg field is a bare char * pointing at client->tftp_buf + TFTP_HEADER_S…
The newest records naming one of them. Each weakness's page lists them all.
Related attack patterns
- Part of
- CAPEC-123 Buffer Manipulation
MITRE's words, unchanged: CAPEC-540 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.