An error or defect in software that causes the program to behave unexpectedly or incorrectly. Bugs can compromise software functionality and require a fix (bugfix) by developers.