This includes, but is not limited to, inserting a CD or DVD, connecting a USB or FireWire device, or mapping a network drive.
AutoRun (and the closely related AutoPlay) can unexpectedly cause arbitrary code execution in the following situations:
Microsoft Windows includes an AutoRun feature, which can automatically run code when removable devices are connected to the computer.