An error or flaw in software that causes it to produce unexpected results.