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.

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.

A normal requestSend back "hat", 3 lettershatThe Heartbleed lieSend back "hat", 500 lettershat user=amy pass=…plus whatever was in memory
The server trusted the length the request claimed, so it sent back the next bytes of its memory as well, which could include passwords and keys.

More diagrams: How the Heartbleed bug worked

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.