Encryption Observer

Glossary When it goes wrong

Heartbleed and implementation bugs

Heartbleed was a 2014 bug in OpenSSL, the software that secured a large share of the world's websites. It let attackers read pieces of a server's memory, which could include passwords and private keys.

Think of it like this

A strong safe with a small gap at the back that nobody noticed.

Heartbleed in four stepsNormal behaviourWhat went wrongThe fixOne missing length check let anyone read a server's memory, including private keys, for two years.
  1. 1A heartbeat request TLS lets one side send a small message that the other side echoes back, to keep the connection alive. Detail: OpenSSL's heartbeat feature A normal, harmless feature.
  2. 2The lie An attacker sends one byte but claims it is up to 64 kilobytes long. Detail: No check on the claimed length The bug was in OpenSSL from 2012 to 2014.
  3. 3The leak The server echoes back whatever memory sits next to that byte. Detail: Passwords, cookies, private keys Repeatable, and it left no trace in logs.
  4. 4The fix Patch the check, then replace every key and certificate that might have leaked. Detail: Patched April 2014 Replacing keys and certificates took months, and many sites never did.

Why it matters

Most real-world encryption failures are bugs like this one. It also showed how much of the internet depended on a project run by a handful of volunteers.

Where you meet it

Software updates that patch security flaws, which is one reason updating matters.

Go deeper history and technical detail

The bug was in OpenSSL's 'heartbeat' feature, which echoed back data without checking its length. It existed for about two years before discovery. Afterwards the Linux Foundation set up funding for critical open-source projects, and Google and others created forks such as BoringSSL. Apple's 'goto fail' bug the same year let attackers skip a key signature check, so an impostor server could pass as genuine, because of a single duplicated line of code.

Read or watch next

Related terms

Cite this page Encryption Observer, “Heartbleed and implementation bugs”, encryption.observer/terms/heartbleed/, checked December 2026.