GrepBoard/Manuals
605 manuals ·

Erlang/OTP TLS CVE-2026-124286: Check Your Version

·Tested on Erlang/OTP 27.3.4.13, 27.3.4.14, 28.5.0.8 and 28.5.0.9 official Docker images, Debian 12 and 13 · 2026-12·Test scope ↓·6 steps

Erlang/OTP clients using TLS 1.2 are affected. Read the full OTP and ssl versions, compare them with the fixed releases, and try the TLS 1.3-only stopgap.

CVE-2026-124286 is a flaw in the Erlang/OTP ssl application: a TLS 1.2 client can finish the handshake without a server certificate. The GitHub advisory (published 2026-11-24) rates it critical, and clients that keep {verify, verify_peer} on are affected too. Servers and TLS 1.3 connections are not. This article did not reproduce the vulnerable behavior. It only checks versions and confirms that a fixed release connects over TLS 1.3 with a valid certificate. GitHub advisory GHSA-7mff-v332-665j

[1] Find out whether your Erlang programs open outbound TLS connections.

ConnectionAffected
Client that offers TLS 1.2 (default settings)Yes
Client that uses only {versions, ['tlsv1.3']}No
Server that accepts connectionsNo
DTLS clientNamed in the CNA and Debian descriptions; not tested here

The GitHub advisory excludes cipher suites that have no ServerKeyExchange message (RSA key transport, ECDH_RSA, ECDH_ECDSA). The default client configuration offers affected suites, so it is covered. The advisories do not say that individual products such as RabbitMQ or CouchDB are affected, so this article does not claim it. For each product, check whether it makes outbound TLS connections and whether it bundles a runtime that differs from the system erl, using the product's own install directory.

[2] Read the full OTP version and the ssl application version.

The major number 27 cannot tell 27.3.4.13 from 27.3.4.14. Read the version file (OTP_VERSION) and the ssl version together. OTP version scheme

console
$ cat "$(erl -noshell -eval 'io:format("~s/releases/~s/OTP_VERSION",[code:root_dir(),erlang:system_info(otp_release)]),halt().')"$ erl -noshell -eval 'io:format("otp_release=~s~n",[erlang:system_info(otp_release)]), application:load(ssl), {ok,V}=application:get_key(ssl,vsn), io:format("ssl=~s~n",[V]), halt().'

This is the output of the same commands in the official erlang:27.3.4.13 image.

output
27.3.4.13otp_release=27ssl=11.2.12.9

The same commands in other tags:

Image tagOTP_VERSIONssl app
27.3.4.1327.3.4.1311.2.12.9
27.3.4.1427.3.4.1411.2.12.10
28.5.0.828.5.0.811.6.0.7
28.5.0.928.5.0.911.6.0.8

According to the documentation, a trailing ** in OTP_VERSION means the system was patched with otp_patch_apply, so the number before it is only the base version. A target system (release) built with OTP tools has no such file. For that kind of runtime, read the app directory name under lib.

console
$ ls "$(erl -noshell -eval 'io:format("~ts", [code:lib_dir()]), halt().')" | grep '^ssl-'
output
ssl-11.2.12.9

[3] Compare with the fixed releases.

LineFixed OTPFixed ssl
2727.3.4.1411.2.12.10
2828.5.0.911.6.0.8
2929.0.311.7.3

The advisory rule: a version equal to or descending from a fixed release is unaffected, and any other version from 17.0 on is affected. Lines not in the table (25, 26 and so on) have no published fix in the advisory.

Comparing version strings as text gives the wrong order. Compare numerically within one branch.

console
$ printf '27.3.4.9\n27.3.4.14\n27.3.4.17\n' | sort
output
27.3.4.1427.3.4.1727.3.4.9
console
$ printf '27.3.4.9\n27.3.4.14\n27.3.4.17\n' | sort -V
output
27.3.4.927.3.4.1427.3.4.17

Versions on different branches may have no defined order, so a version such as 28.5.0.8 is checked only against the 28 row of the table.

[4] On distributions, check the package version.

As of 2026-12-01, the Debian tracker lists the source package erlang as vulnerable in bookworm (1:25.2.3+dfsg-1+deb12u4) and trixie (1:27.3.4.1+dfsg-1+deb13u4). Only the unstable line (1:29.0.3+dfsg-1 and later) is marked fixed. The Ubuntu CVE record marks every release, including jammy, noble and resolute, as needs-triage. That status means not yet assessed, not unaffected. Debian tracker · Ubuntu CVE JSON

In the official debian:trixie image with a refreshed package list, check the candidate version. The image has no Erlang, so Installed is (none).

console
$ apt-cache policy erlang-ssl
output
erlang-ssl:  Installed: (none)  Candidate: 1:27.3.4.1+dfsg-1+deb13u4  Version table:     1:27.3.4.1+dfsg-1+deb13u4 500        500 http://deb.debian.org/debian trixie/main amd64 Packages        500 http://deb.debian.org/debian-security trixie-security/main amd64 Packages

The candidate equals the version the tracker calls vulnerable, so apt had no fixed package at that point. The debian:bookworm candidate was likewise 1:25.2.3+dfsg-1+deb12u4. When a fix ships, the tracker row for that release shows it as fixed; compare that number with Candidate. The reason to read the package version instead of the version string is the same as in the php package check.

[5] If you cannot upgrade yet, make the client use TLS 1.3 only.

This is the first workaround in the advisory. Pass versions in the connection options.

/srv/app/tls_client_opts.erl
Opts = [{verify, verify_peer},        {cacerts, public_key:cacerts_get()},        {server_name_indication, "www.example.com"},        {versions, ['tlsv1.3']}].

If the server does not support TLS 1.3, the connection is dropped. The test script 05-client-server.escript (it starts a server and a client in one process on 127.0.0.1 and is not reproduced here) connected a TLS 1.3-only client to a server that accepts only TLS 1.2, with a valid certificate from a test CA. NOTICE log lines appear between the output lines and are shortened to ….

console
$ escript /lab/05-client-server.escript /work tlsv1.2 tlsv1.3
output
…client=error {tls_alert,                 {protocol_version,                     "TLS client: In state wait_sh received SERVER ALERT: Fatal - Protocol Version\n"}}…

The advisory also describes offering only static RSA key transport suites. The advisory itself does not recommend it (no forward secrecy, and servers may refuse it), so this article gives no configuration for it.

[6] Check again after the update.

  • Run the two commands from [2] and confirm both the full version and the ssl version are at or above the fixed release in the table.
  • Restart running nodes. The documentation says code is loaded when first referenced and that code replacement happens when a new module version is loaded. It does not say that a node picks up changed files on its own, so hot code replacement is not covered. Code loading
  • Confirm that a TLS 1.3 connection to a server with a valid certificate succeeds with verify_peer still on.

The next run used the official erlang:27.3.4.14 image, a test CA's certificate, and a server and client on 127.0.0.1. The client had verify_peer and the SNI hostname check on, and versions was only tlsv1.3. erlang:28.5.0.9 gave the same result.

console
$ escript /lab/05-client-server.escript /work tlsv1.3,tlsv1.2 tlsv1.3
output
otp_release=27 ssl=11.2.12.10client=ok protocol='tlsv1.3' peercert=presentserver=ok

A successful connection shows that the TLS 1.3 setting works. It is not proof that the flaw is fixed.

Where the check can mislead

The fixed version differs between sources. The GitHub advisory and the CNA give 27.3.4.14 for the 27 line. The Debian tracker lists OTP-27.3.4.17 next to the same fix commit (d9a9319). Comparing lib/ssl/src/ssl_handshake.erl from the images gave this:

  • The two functions changed by the fix commit differ between 27.3.4.13 and 27.3.4.14, and are the same in 27.3.4.14 and 27.3.4.17.
  • 28.5.0.8 still has the code the fix commit removed, and 28.5.0.9 does not. The two commits with the same title (d9a9319 from June 2026 and 74782af from November 2026) make the same change. As the GitHub advisory says, the 28 line got the fix late.

So by source, the fix is present from 27.3.4.14. The comparison was first confirmed to detect the difference from a release without the fix. Why the Debian tracker lists 27.3.4.17 was not determined. The commits are d9a9319 and 74782af, and each changes only the one file ssl_handshake.erl.

Check it with the Certificate (PEM · X.509) decoder tool ↗ — calculated in your browser.

#erlang#otp#tls#cve#ssl