Otherwise benign bugs may sometimes may be harnessed for malicious intent by an unscrupulous user writing an exploit   code designed to take advantage of a bug and disrupt a program's proper execution.