CWE-124

Buffer Underwrite ('Buffer Underflow')

High

Description

The product writes to a buffer using an index or pointer that references a memory location prior to the beginning of the buffer.

Potential Impact

How to Fix

Requirements

Choose a language that is not susceptible to these issues.

Implementation

All calculated values that are used as index or for pointer arithmetic should be validated to ensure that they are within an expected range.

Detection Methods

Related Weaknesses

References

View on MITRE CWE Database →

Need Help Fixing This Vulnerability?

Our security experts can help you identify and remediate CWE-124 vulnerabilities in your codebase.

Get Security Assessment