Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 27 November 2026.
In one sentence: Heartbleed was a 2014 programming mistake in the OpenSSL encryption library that let anyone read chunks of a server’s memory, including passwords and the keys that protect its encrypted traffic.
What it is
OpenSSL is software that many web servers, mail servers, VPNs and devices use to provide TLS, the encryption behind the padlock in a browser. The OpenSSL security advisory of 7 April 2014 describes a missing bounds check in the TLS heartbeat extension that can reveal up to 64 KB of memory to a connected client or server.
The Heartbleed site is clear that this was an implementation mistake in OpenSSL, not a flaw in the TLS protocol itself. OpenSSL 1.0.1 through 1.0.1f were vulnerable. 1.0.1g fixed it. The 1.0.0 and 0.9.8 branches were not affected. The bug had been in releases since March 2012.
How it works
- A heartbeat is a small message that checks the other side is still there. The sender includes a length for the data it wants echoed back.
- The vulnerable code did not check that the stated length matched the real data.
- The reply therefore included extra memory next to the real data.
- The memory could hold private keys, user names and passwords, session cookies and business content.
- One request returns at most 64 KB, but the Heartbleed site explains there is no overall limit, because an attacker can keep asking.
- Heartbeat requests are answered before client certificate authentication, so requiring client certificates does not help.
Who it affects and how badly
At the time, the Heartbleed site noted that Apache and nginx, both OpenSSL users, together held over two thirds of active sites in an April 2014 Netcraft survey. Today the realistic exposure is old systems: unmanaged appliances, forgotten servers, embedded devices and legacy VPNs that were never updated. A small business might have one old device exposing a login page. A mid-sized firm might find that a leaked certificate key lets someone impersonate its site. A regulated business has the hardest case: personal data may have left, and the Heartbleed site says only the service owner can estimate what leaked. A full recovery, per that site, means patching, revoking and reissuing keys and then changing passwords.
What we check on a test
- The TLS libraries and versions behind every internet-facing service, including mail, VPN and management interfaces, as far as they can be identified.
- Whether any service still answers heartbeat requests on a vulnerable build, using safe, non-destructive checks agreed in the scope.
- Whether certificates have been reissued since a known exposure, and the age of the private keys.
- Whether old devices that cannot be patched are still reachable from the internet.
- Whether session lifetimes limit the damage if a cookie leaks.
Real examples
The Canada Revenue Agency said that the social insurance numbers of approximately 900 taxpayers were removed from its systems by someone exploiting Heartbleed, according to CBC News, which quotes the agency’s statement. CBC reports the agency was fixing the bug when it found the theft, and that it would contact those affected by registered letter.
Worked example (an illustration, not a real case)
A 15-person design studio runs an old file-sharing appliance with a login page on the internet. The appliance’s maker stopped updates years ago. Someone who reads its memory could capture staff passwords and the appliance’s certificate key. The studio would need to retire the device, replace the certificate, force password changes and tell clients whose files were stored there. Removing the device from the internet in advance costs nothing.
How to detect it
- The Heartbleed site says exploitation does not leave an abnormal trace in the logs.
- It adds that intrusion detection systems can detect the attack by comparing the size of the request with the reply.
- So detection is mostly about finding vulnerable versions: check package versions on Linux, appliance firmware notes and vendor advisories.
- Look in your asset list for any OpenSSL 1.0.1 to 1.0.1f.
- An authorised external vulnerability scan of your own addresses will flag a vulnerable service.
How to fix or prevent it
- Upgrade to a fixed OpenSSL version (1.0.1g or later, or a current supported release), or the vendor’s patched firmware.
- If you cannot upgrade, OpenSSL’s advisory notes you can rebuild with heartbeats disabled, but treat that as a stopgap.
- Revoke and reissue certificates for anything that was ever vulnerable, using a new private key.
- Invalidate sessions and make users change passwords after the service is fixed.
- Retire devices that can no longer be patched, or take them off the internet.
- Keep an asset list of every service that uses TLS so the next library bug takes hours, not weeks.
Frequently asked questions
Does Heartbleed leave log entries? The Heartbleed site says it leaves no abnormal trace in logs.
Which OpenSSL versions were affected? 1.0.1 through 1.0.1f. Version 1.0.1g fixed it.
Is changing passwords enough? No. Per the Heartbleed site you must patch and replace keys first, then change passwords.
Related terms
Patch management, Port 8883 (MQTT over TLS), Nmap, How to check which ports are open, BlueKeep (CVE-2019-0708), Log4Shell (CVE-2021-44228), CVE-2022-42475 FortiOS SSL-VPN Flaw: How to Check Yours. More in the Vulnerabilities hub.
How Wolfcore helps
A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan or read about our penetration testing.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call