This vulnerability occurs when software accesses a memory buffer but reads from or writes to a location outside its allocated boundary. This can corrupt adjacent data, crash the program, or allow attackers to execute arbitrary code.

Buffer overflows happen when a program doesn't properly validate data size before copying it into a fixed-size memory buffer. Writing beyond the buffer's end overwrites whatever is next in memory—which could be other variables, critical program control data, or even function return addresses. Attackers exploit this by crafting oversized inputs to hijack execution flow, often leading to remote code execution. Common culprits include unsafe functions like `strcpy`, `gets`, or memory copies without bounds checking. Preventing these flaws requires using safe language features, bounds-checking libraries, and modern compilers with security flags. While SAST tools can detect the pattern, Plexicus uses AI to analyze the context and suggest the precise code fix—such as replacing `strcpy` with `strncpy` or recommending a secure container—saving hours of manual triage and reducing recurrence across your codebase.
Impact: Execute Unauthorized Code or CommandsModify Memory
If the memory accessible by the attacker can be effectively controlled, it may be possible to execute arbitrary code, as with a standard buffer overflow. If the attacker can overwrite a pointer's worth of memory (usually 32 or 64 bits), they can alter the intended control flow by redirecting a function pointer to their own malicious code. Even when the attacker can only modify a single byte arbitrary code execution can be possible. Sometimes this is because the same problem can be exploited repeatedly to the same effect. Other times it is because the attacker can overwrite security-critical application-specific data -- such as a flag indicating whether the user is an administrator.
Impact: Read MemoryDoS: Crash, Exit, or RestartDoS: Resource Consumption (CPU)DoS: Resource Consumption (Memory)
Out of bounds memory access will very likely result in the corruption of relevant memory, and perhaps instructions, possibly leading to a crash. Other attacks leading to lack of availability are possible, including putting the program into an infinite loop.
Impact: Read Memory
In the case of an out-of-bounds read, the attacker may have access to sensitive information. If the sensitive information contains system details, such as the current buffer's position in memory, this knowledge can be used to craft further attacks, possibly with more severe consequences.
Strategy: Language Selection
Strategy: Libraries or Frameworks
Strategy: Environment Hardening
Effectiveness: Defense in Depth
Strategy: Environment Hardening
Effectiveness: Defense in Depth
Strategy: Environment Hardening
Effectiveness: Defense in Depth
Effectiveness: Moderate
c
/*routine that ensures user_supplied_addr is in the right format for conversion /
cc
/* encode to < / } else dst_buf[dst_index++] = user_supplied_string[i];} return dst_buf;}
cc
// check that the array index is less than the maximum*
c
cc
// check that the array index is within the correct*
cHigh