In computing, a bug is an error or flaw in a program's code. Bugs can cause anomalies, abnormal execution, and in the worst cases, catastrophic failures that crash the software entirely.