On 7 April 2014 the OpenSSL project published a four-paragraph advisory about a missing bounds check. The flaw it described, CVE-2014-0160, let anyone who could open a TLS connection to a server read up to 64 KiB of that server’s memory, as many times as they liked, without logging in and without leaving a line in any log. Private keys, session cookies and passwords were in that memory. Roughly two-thirds of the web’s active sites ran a web server that could be built against the affected library, and the bug had been there, released and widely deployed, for just over two years. A security company that found it independently a few days before the advisory gave it a name and a logo, and “Heartbleed” became the first vulnerability most people outside the field had ever heard of.
This page is the first of a series on the vulnerabilities that changed how Linux is built and defended. Each tells the story once, from the project’s own records, says what it taught, and ends with what to check on your own machine today — because the lessons of 2014 are still measurable on a 2026 server, and the section below shows how. It is tagged History rather than CVE: the bug was fixed in a day; what it changed took years.
What happened
TLS has an optional heartbeat extension, defined in RFC 6520, that lets either end of a connection send a small message and get the same bytes echoed back, to keep an idle connection alive and to discover the path’s packet-size limit. The code implementing it was contributed to OpenSSL in December 2011 by a researcher working on the standard, reviewed, and committed on New Year’s Eve 2011. It shipped in OpenSSL 1.0.1 on 14 March 2012 and in every 1.0.1 release up to 1.0.1f. The older 0.9.8 and 1.0.0 branches never had it, which is why some old and unloved servers turned out to be the safe ones.
Neel Mehta of Google’s security team found the flaw in March 2014 and reported it to OpenSSL privately; engineers at Codenomicon, a Finnish security-testing company, found it independently at the start of April while testing their own products. The OpenSSL advisory went out on 7 April 2014 at about half past five in the afternoon UTC, with the fixed release 1.0.1g, crediting Mehta for the discovery and Adam Langley and Bodo Moeller for preparing the fix. Codenomicon published heartbleed.com the same day. Debian issued DSA-2896 (wheezy fixed in 1.0.1e-2+deb7u5), Ubuntu USN-2165-1 (12.04 fixed in 1.0.1-4ubuntu5.12), and Red Hat its own erratum, all within a day, each saying the same two things: upgrade, and then reboot or restart everything that had the library loaded.
The flaw, in one paragraph
A heartbeat request carries a payload and a number saying how long the payload is. OpenSSL copied that many bytes back to the sender from where the payload sat in memory — without checking that the message it had actually received was that long. Send one byte and claim sixty-four thousand, and the reply was your one byte followed by the next 65,535 bytes of whatever happened to be in the process’s memory: fragments of other people’s requests, session cookies, passwords in flight, and, often enough, the server’s private key. Nothing was written anywhere; the reply was a normal heartbeat response. The fix, in 1.0.1g, was a few lines that compare the claimed length with the real one and discard the message if they disagree. It was an ordinary read-past-the-end-of-a-buffer bug, the commonest class of error in C, in the one library where the memory next door was worth stealing.
Measured for this page on an Ubuntu 24.04 machine in November 2026: the word does not occur in the TLS library at all any more.
$ openssl version
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
$ strings /lib/x86_64-linux-gnu/libssl.so.3 | grep -ci heartbeat
0OpenSSL’s maintainers took the lesson to its conclusion: later releases turned the extension off by default and then removed it from the TLS code altogether, on the grounds that a feature almost nobody used had cost more than it could ever be worth. A current library cannot answer a TLS heartbeat because it does not know what one is.
Why patching was the easy part
Installing 1.0.1g took a minute. Everything after it took months, and the order mattered, which is why Codenomicon’s page spelled it out. First the library, then a restart of every process that had the old one mapped — a web server, a mail server, a VPN and a database that had been running for a year were all still vulnerable with the new file on disk, which is the lesson The Half of Patching That Happens After the File Is Correct is built around. Then, because the private key had to be assumed read, a new key, a new certificate, revocation of the old one, and the discovery that the web’s revocation machinery had never been built for every site at once. Then every session cookie invalidated, and only then could users be told to change passwords, because a password changed through a still-vulnerable server was simply leaked again. Sites that told users to change passwords on day one, before their own key was replaced, made things worse.
Two properties of the bug drove all of that. Exploitation left no trace, so nobody could say whether their key had been taken, and the only safe assumption was that it had. And a connection recorded in the past could be decrypted later with a stolen key — unless the connection had used a key-exchange with forward secrecy, in which case the stolen long-term key opened nothing that had already happened. In 2014 forward secrecy was an option many servers had not turned on. It is one of the reasons it is the default now.
What it taught Linux
Critical infrastructure was being maintained by one person on pocket change. In the weeks after the disclosure the OpenSSL Software Foundation’s president, Steve Marquess, described the project’s position in public: one developer working on it full time, the rest contributing around other jobs, about two thousand dollars in donations in the whole of 2013, and consulting income that paid for customers’ feature work rather than for the maintenance everyone depended on. Two weeks after the advisory, on 24 April 2014, the Linux Foundation announced the Core Infrastructure Initiative, backed by a dozen of the largest technology companies — Amazon Web Services, Cisco, Dell, Facebook, Fujitsu, Google, IBM, Intel, Microsoft, NetApp, Rackspace and VMware among them — to fund exactly that kind of project. Its first grants paid for two full-time OpenSSL developers and an independent audit of the code base, with NTP and OpenSSH next on the list. The same month, OpenBSD developers forked the library as LibreSSL and began deleting code; OpenSSL itself followed with the 1.1.0 clean-up and, later, the 3.0 rewrite of its internals. The pattern — a maintainer, a bug, a shock, a foundation — has been repeated since, and the question of who pays for the software everyone uses has not gone away, but Heartbleed is the moment it was asked out loud.
The tools that should have found it did not, and the one that would have was not being run. David A. Wheeler’s analysis, published within the month and maintained since, went through the techniques one by one. The commercial static analysers in use at the time had not flagged the code. A test suite built from valid inputs could never have found it, and full line coverage would not have helped, because a missing check is not a line that can be covered. Ordinary fuzzing missed it too, because reading past a buffer does not crash a program. What would have found it, and later did in a matter of hours, was fuzzing with an address checker such as AddressSanitizer attached, so that the over-read is reported the moment it happens. That conclusion, drawn across several bugs of the period, is a large part of why Google launched OSS-Fuzz in 2016 to run exactly that combination continuously against the open-source libraries everything depends on, OpenSSL included.
A vulnerability is an operations event, not a patch. Every distribution’s notice said “restart” or “reboot” and most people’s procedures had no step for working out what still held the old library. The tooling that answers that question — needrestart, lsof on deleted mappings, the “which processes still have the old one” check — went from a specialist’s habit to part of the standard patch cycle. The certificate side taught the same thing one layer up: a site that could not reissue and redeploy every certificate it owned in a day found out, in April 2014, how many it had and where they were.
And the bug got a name. Codenomicon’s decision to brand it, with a domain and a logo and a plain-language FAQ, was criticised at the time as marketing and has been copied for every serious vulnerability since, because it worked: a flaw that a board of directors can name is a flaw that gets patched. The less comfortable half of the story was the disclosure itself. Some large companies had been told before the public advisory and had patched quietly; most distributions, including the ones whose users ran the majority of affected servers, learned of it at the same moment as everyone else. The arguments that followed, about who is told and when, are the ones the distributions’ private pre-disclosure lists exist to settle, and they were still being had when the next library-level shock arrived a decade later.
What to check on your machine today
No current Linux ships a Heartbleed-vulnerable OpenSSL. The checks below are the ones the episode left behind, and each was run for this page on an Ubuntu 24.04 server.
$ openssl version -a | head -2
OpenSSL 3.0.13 30 Jan 2024 (Library: OpenSSL 3.0.13 30 Jan 2024)
built on: Wed Sep 16 18:47:02 2026 UTC
$ dpkg -l | awk '/libssl|openssl/ {print $2, $3}'
libssl3t64:amd64 3.0.13-0ubuntu3.16
openssl 3.0.13-0ubuntu3.16Know which OpenSSL you run and who maintains it. Upstream, the 3.0 series left support in September 2026 and the project now lists 3.5 as its long-term release, supported until April 2030. The library above is 3.0.13 and was built on 16 September 2026 — after upstream support ended — because the distribution, not the OpenSSL project, is maintaining it for the life of the release, backporting security fixes into a version number that does not move. That is what “stable” means, and The Life of a Package explains why the version string under-reports what you have. The check is that your distribution release is itself still supported; an OpenSSL from a release that has left support is unpatched however recent its number looks.
# after any libssl or libcrypto update: what is still running the old one?
sudo lsof -nP 2>/dev/null | grep -E 'libssl|libcrypto' | grep -i deleted
sudo needrestart -b # or: checkrestart (Debian), dnf needs-restarting (RHEL family)Finish the patch. An empty result from the first line means no running process still has a deleted copy of the library mapped; a non-empty one is the list of services to restart. On this machine it was empty. needrestart does the same job with more context and is the one to install on a server you patch regularly.
$ openssl s_client -connect github.com:443 -servername github.com -brief </dev/null
CONNECTION ESTABLISHED
Protocol version: TLSv1.3
Ciphersuite: TLS_AES_256_GCM_SHA384
Peer certificate: CN = github.com
Verification: OK
Server Temp Key: X25519, 253 bitsConfirm your own servers negotiate forward secrecy. Point the same command at your host. A Server Temp Key line, and TLS 1.3 or an ECDHE suite under 1.2, means each connection has its own key and a future theft of the certificate’s private key decrypts none of the traffic recorded before it. A server that still offers plain RSA key exchange has not learned the 2014 lesson, and openssl is the page for reading the rest of what s_client shows.
$ openssl x509 -in /etc/ssl/certs/ISRG_Root_X1.pem -noout -subject -dates -serial
subject=C = US, O = Internet Security Research Group, CN = ISRG Root X1
notBefore=Jun 4 11:04:38 2015 GMT
notAfter=Jun 4 11:04:38 2035 GMT
serial=8210CFB0D240E3594463E0BB63828B00Know your certificates well enough to replace them all tomorrow. That line, run across every certificate you serve rather than a root from the system bundle, is the inventory: where each key lives, when it was issued and when it expires. The practical test is whether reissuing all of them is a procedure or a crisis. Short-lived, automatically renewed certificates make it a procedure, which is the quiet argument for the automation in The Life of a Certificate; a private key that has never been rotated since the certificate was first issued is the thing Heartbleed was about.
Sources
- OpenSSL Security Advisory, 7 April 2014 — TLS heartbeat read overrun (CVE-2014-0160): affected versions, the fix in 1.0.1g, the credits and the
-DOPENSSL_NO_HEARTBEATSworkaround - heartbleed.com (Codenomicon, 7 April 2014) — what could leak, the absence of traces, the order of remediation, the 1.0.1 timeline and the Netcraft share figure
- RFC 6520 — the TLS and DTLS heartbeat extension
- Debian security tracker, CVE-2014-0160 and DSA-2896-1; Ubuntu USN-2165-1 — fixed versions and the reboot advice
- David A. Wheeler, How to Prevent the next Heartbleed (29 April 2014, maintained since) — which techniques would and would not have found it
- Linux Foundation press releases on the Core Infrastructure Initiative (24 April and 29 May 2014) — the backers, the first grants to OpenSSL, the audit
- NPR, 21 April 2014, interview with Steve Marquess — the project’s funding before and immediately after the disclosure
- OpenSSL release strategy and downloads pages (read November 2026) — which releases are supported and until when
Related reading
- The Half of Patching That Happens After the File Is Correct — the restart step every Heartbleed notice ended with, done properly
- The Life of a Certificate — issuance, renewal and revocation, and why short lifetimes turned a crisis into a procedure
- openssl —
s_client,x509and the other five things people actually need from the command - The Life of a Package — how a distribution keeps a 2024 version number patched in 2026
- Securing a New Linux Server — the baseline that assumes the next Heartbleed will come
- The rest of this series — Shellshock, regreSSHion, the privilege-escalation decade, Meltdown and Spectre and the Morris worm — each in the same shape as this page, ending with what to check today
- Security — the advisories for the vulnerabilities reaching Linux servers now, built the way this page says they should be read

