T1#security#market#standard#outage
Heartbleed — A Single TLS Bug That Weakened Most of the Internet
Metadata
- Date
- Decade
- 2010s
- Tier
- T1
- Timelines
- A History of Cybersecurity
- Sources
- 06
- Connections
- 02
- Tags
- #security#market#standard#outage
On 7 April 2014 the OpenSSL project issued an emergency security advisory. The bug had been reported, independently and almost simultaneously, by the Finnish security firm Codenomicon (acquired by Synopsys in 2015; that business is now Black Duck Software) and by Neel Mehta of Google Security. The CVE assigned was CVE-2014-0160. Codenomicon gave the bug the name "Heartbleed" and a logo of a bleeding red heart — making it one of the first large-scale vulnerabilities to ship with deliberate branding.
~64KB
Memory readable per request
Repeatedly, from slightly different positions each time
~2years
How long the flaw went unnoticed
Since OpenSSL 1.0.1, released 14 March 2012
~17%
Of public HTTPS servers affected
Roughly 500,000 hosts, estimated at disclosure (Netcraft, University of Michigan)
~$2,000a year
OpenSSL's donation budget
At the time; roughly one full-time maintainer
The Bug Itself
The defect lived in OpenSSL's Heartbeat extension (RFC 6520). Heartbeat is a small keep-alive mechanism for TLS connections: the client sends "N bytes of payload, and length N", and the server reflects back the same N bytes.
OpenSSL's implementation (dtls1_process_heartbeat in ssl/d1_both.c and tls1_process_heartbeat in ssl/t1_lib.c) trusted the client's declared length N without checking it against the real payload. By sending one byte of payload while declaring 65,535 bytes, an attacker could induce the server to read up to about 64 KB of memory adjacent to the attacker-supplied data — repeatedly, from slightly different positions each time.
The patch was less than one line of C: a check that the declared length matched the actual payload. That "less than one line" had been missing since OpenSSL 1.0.1, released on 14 March 2012 — for roughly two years.
What Was Leaked
In principle, Heartbleed could expose anything in the address space of the TLS-terminating process. Publicly demonstrated extractions included:
| Extracted | Consequence |
|---|---|
| Server private keys (X.509 private keys) | Retroactive decryption of past traffic captures (when Perfect Forward Secrecy was not configured), plus impersonation by a man-in-the-middle |
| Active session cookies and tokens | Enough to take over an authenticated account |
| User passwords from login forms in plaintext | When those passwords were still resident in memory |
| Application-layer data | Query results, in-flight objects |
In CloudFlare's public Challenge, expert teams retrieved server private keys via Heartbleed alone within hours. The early optimism — "you can't actually get the private key out" — collapsed within days.
Scope
At disclosure, OpenSSL 1.0.1 through 1.0.1f was estimated to be deployed on around 17% of the public Internet's HTTPS servers, roughly 500,000 hosts (Netcraft, University of Michigan). Apache and nginx, then jointly serving more than two-thirds of the web, both depend on OpenSSL. "Most of the Internet" was inside the scope.
Heartbleed was also exploitable on the client side: anything statically or dynamically linked against the affected OpenSSL — mail clients, VPN clients, IoT devices, the stock Android 4.1.1 browser — was affected. The aftermath consumed the global operations community for weeks: patch, rotate every certificate, force-reset every password, invalidate every session.
The weeks after disclosure
Patch
Rotate every certificate
Force-reset every password
Invalidate every session
The Canada Revenue Agency suffered the theft of about 900 taxpayers' Social Insurance Numbers, with an attacker later arrested. Bloomberg reported, citing US intelligence sources, that the NSA had reportedly known about and exploited Heartbleed before disclosure; the NSA denied this.
Why Nobody Noticed for Two Years
The post-mortem made one structural fact about open-source infrastructure impossible to avoid: at the time, OpenSSL was actively maintained by roughly one full-time developer (Stephen Henson) and a handful of part-time volunteers, on an annual donation budget of about US$2,000. The same code carried virtually every TLS handshake in online commerce, banking, and government communications. A genuine single point of failure was being kept alive by volunteer labour.
That asymmetry pushed the question of OSS sustainability into the mainstream almost overnight.
Aftermath — Infrastructure Funding and Forks
Core Infrastructure Initiative (CII). On 24 April 2014, just 17 days after disclosure, the Linux Foundation launched CII, co-funded by Amazon, Cisco, Dell, Facebook, Fujitsu, Google, IBM, Intel, Microsoft, NetApp, Rackspace, and VMware. It funnelled direct funding and full-time engineers into OpenSSL. CII later evolved, in 2020, into the Open Source Security Foundation (OpenSSF).
LibreSSL. Days after disclosure the OpenBSD project declared OpenSSL's accumulated baggage unmanageable and forked it—the domain was registered on 11 April, the name announced on the 22nd. In the first week of pruning alone they removed more than 90,000 lines of C.
BoringSSL. In June 2014 Google released its own internal fork, BoringSSL — explicitly not stable for outside consumers, but used to back Chrome, Android, and Google's own servers.
Heartbleed, step by step
14 March 2012
OpenSSL 1.0.1 released
Shipped without the Heartbeat length check.
7 April 2014
OpenSSL issues an emergency advisory
CVE-2014-0160, reported by Codenomicon and by Neel Mehta of Google Security.
11 April 2014
LibreSSL domain registered
The name was announced on 22 April.
24 April 2014
Core Infrastructure Initiative launched
17 days after disclosure, led by the Linux Foundation.
June 2014
Google releases BoringSSL
2020
CII evolves into OpenSSF
Legal and operational consequences. Many organisations rushed certificate rotation, public-key pinning, and mandatory HSTS. "Subsidy-style" corporate funding of critical OSS started to settle in as a defensible category of investment within ESG and governance frameworks.
Small C Libraries, Written by Volunteers
The lineage of single-point-of-failure OSS incidents that follows — Shellshock (bash) the same year, the 2017 Equifax breach via Apache Struts, and Log4Shell in 2021 — has Heartbleed as its first prominent term.
The mainstreaming of the terms "supply-chain security", "Software Bill of Materials (SBOM)", and "software supply chain" can be traced, in large part, back to this April day in 2014.
Sources
TertiaryHeartbleed — Wikipedia
PrimaryCVE-2014-0160 — NVD
Last updated: