The Heartbleed bug was a vulnerability in OpenSSL cryptographic software that allowed attackers to steal information that was intended to be protected by SSL/TLS encryption. It allowed attackers to eavesdrop on communications, steal data from services and users, and impersonate services and users. The bug was discovered in the heartbeat extension of TLS and occurred due to a programming mistake in how heartbeat messages were handled that leaked the contents of server memory to clients and vice versa. It compromised primary encryption keys, credentials, and other protected content and collateral data. Many operating systems and services were vulnerable to the bug before patches were released.