An error in a computer program that occurs when an attempt is made to place a block of data in memory that exceeds the amount of space allocated for it. Buffer overflow can be exploited to carry out a denial of service (DoS) attack or execute arbitrary code on a device. In the latter case, a malicious script is run instead of and with the same rights as the application whose address space is targeted.