Erlang/OTP 28.5.0.9

This release of Erlang/OTP can be built from source, installed using pre-built packages for your OS or third-party tools (such as kerl, asdf or mise), or run from the official Docker image:

docker run -it erlang:28.5.0.9
Patch Package OTP 28.5.0.9
Git Tag OTP-28.5.0.9
Date 2026-11-24
Version Tree Which releases contain 28.5.0.9
Issue Id
CVE-2026-115747
CVE-2026-116225
CVE-2026-116293
CVE-2026-116295
CVE-2026-116382
CVE-2026-117642
CVE-2026-119443
CVE-2026-120961
CVE-2026-124286
CVE-2026-125658
ERIERL-1338
ERIERL-1362
ERIERL-1374
ERIERL-1382
ERIERL-1383
ERIERL-1384
ERIERL-1385
GH-SA-7fjc-wcvc-vp96
GH-SA-84cc-vh37-jqpf
GH-SA-9p2q-5p4x-rhpq
System OTP
Release 28
Application
Potential Incompatibilities

Potential Incompatibilities #

OTP-20556
Application(s):
xmerl
Related Id(s):

PR-12241, CVE-2026-119443

An external DTD was automatically fetched by xmerl_scan which resulted in a scan of an untrusted DTD that may result in an out of memory crash.

xmerl_xcan has now got a new option {fetch_external_DTD, Boolean} which default set to false to protect against this. This result in an incompatibility if one took advantage of that xmerl_scan auto fetched the external DTD.

The secure way to use a DTD is to let fetch_external_DTD be false (default) and use doctype_DTD to provide the needed DTD in the call to xmerl_scan.

crypto-5.8.3.4 #

The crypto-5.8.3.4 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20381
Related Id(s):

PR-11927

Fixed two bugs in the AES-GCM decryption fallback used when crypto is built against OpenSSL 1.0.1 through 1.0.1c: the ciphertext and AAD arguments were swapped, and an empty authentication tag was not rejected. AES-GCM decryption on these builds now behaves the same as on all other OpenSSL versions.

OTP-20514
Related Id(s):

PR-11938

Added bounds checks to crypto:pbkdf2_hmac/5. The password, salt, iteration count and derived key length must now be at most INT_MAX, otherwise a badarg exception is raised.

OTP-20515
Related Id(s):

PR-11939

When crypto was built against OpenSSL 3.x, crypto:generate_key(rsa, {ModulusSize, PublicExponent}) could generate a key with a different public exponent than requested on little-endian machines.

OTP-20551
Related Id(s):

PR-12200

crypto:hash_final_xof/2 (SHAKE128/SHAKE256) now runs on a dirty CPU scheduler when the requested output is large. Before this fix, asking for a long XOF output could block a normal scheduler for a long time and hurt the responsiveness of other processes.

Full runtime dependencies of crypto-5.8.3.4

erts-9.0, kernel-6.0, stdlib-3.9

erl_interface-5.7.0.3 #

The erl_interface-5.7.0.3 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20459
Related Id(s):

ERIERL-1374, PR-11826

Fixed error handling in erl_call to exit nicely with error message if it fails to resolve localhost.

erts-16.4.0.8 #

The erts-16.4.0.8 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20292
Related Id(s):

GH-11349, PR-11376, PR-11810

Fixed a crash upon starting the emulator on systems with a very large minimum signal stack size.

OTP-20417
Related Id(s):

PR-11608

Embedded regex library PCRE2 updated from version 10.47 to 10.48.

OTP-20462
Related Id(s):

ERIERL-1338, PR-11908

Fix race between ets:delete/1 and exiting process auto unfixing the table. Could cause emulator crash.

OTP-20511
Related Id(s):

PR-11568

Fixed an issue where comparisons of maps were not deterministic between runtime instances; one node in a cluster could say A < B where another said A >= B.

OTP-20523
Related Id(s):

PR-11967, CVE-2026-115747

A bug in the AArch64 (ARM64) JIT could crash the BEAM virtual machine when processing certain input. The flaw caused the runtime system to misuse a CPU register in some chained comparison operations, leading to a segmentation fault.

One way this was triggered was by parsing XML containing an oversized numeric character reference (for example, &#576460752303423488;) with xmerl_sax_parser. Any application that passed attacker-controlled input through an affected code path could be vulnerable to a denial-of-service crash.

Only AArch64 (ARM64) systems running the JIT were affected. The x86-64 JIT, interpreter (emu) builds, and 32-bit platforms were not affected.

OTP-20525
Related Id(s):

PR-11954

A bug in x86 JIT that caused <<>> to be compared equal to some non-empty bitstrings has been fixed.

OTP-20528
Related Id(s):

GH-11923, PR-11971

A bug that reduced garbage collection efficiency has been fixed.

OTP-20530
Related Id(s):

PR-12043, CVE-2026-116293

Fixed binary_to_term to handle incorrectly encoded reference with Len=0. Could cause beam emulator crash instead of badarg exception.

OTP-20534
Related Id(s):

GH-11941, PR-11942

Port commands with the nosuspend option could be executed by the port even though it had set itself in a busy state.

OTP-20545
Related Id(s):

PR-12148

Fixed bug in term_to_binary(Term,[local]). Caused emulator crash if Term contained funs.

OTP-20546
Related Id(s):

PR-12147

The ct_run command no longer crashes with a segmentation fault when -sname, -name, -browser or -ctname is given as the last argument without a value. It now prints an error message and exits with status 1.

OTP-20555
Related Id(s):

PR-12182, CVE-2026-117642

Fixed binary_to_term for Erlang fun terms deliberately incorrectly encoded. Could cause the Erlang VM to abort due to stack exhaustion.

OTP-20559
Related Id(s):

PR-12198

When erlang:open_port/2 with {spawn_executable, FileName} accepts the executable name and the args, arg0 and cd option values as binaries, the previous implementation did not check for embedded NUL bytes. Everything after NUL would be silently dropped. Now NUL bytes will be rejected with badarg.

OTP-20561
Related Id(s):

PR-12181, CVE-2026-120961

Fixed binary_to_term of old FLOAT_EXT with an invalid string without zero termination. Avoid dangerous buffer overrun and instead fail safely with badarg.

OTP-20569
Related Id(s):

PR-12231, CVE-2026-125658

On macOS, the runtime system could crash or hang when using a file operation on a file name starting with certain Unicode symbols.

Full runtime dependencies of erts-16.4.0.8

kernel-9.0, sasl-3.3, stdlib-4.1

inets-9.6.2.5 #

The inets-9.6.2.5 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20458
Related Id(s):

GH-SA-7fjc-wcvc-vp96, PR-12262, CVE-2026-116382

Fixed a vulnerability in the inets HTTP server (httpd) where a request header name could create a new atom in the atom table. Since atoms are never reclaimed, an unauthenticated client able to reach an Erlang Server Interface (ESI) URL prefix could grow the atom table with ordinary HTTP requests until the runtime system aborted when the atom limit was reached, taking down all applications on the node. Only servers with at least one erl_script_alias configured are affected. Servers without ESI, CGI scripts served by mod_cgi, and the httpc client are unaffected. When building the environment passed to an ESI callback, httpd now derives the {http_<header-name>, string()} keys from a fixed set of standard request header names instead of constructing an atom from the header name received. The documented mod_esi contract is unchanged for those headers. A header outside that set is now reported under http_other, which is already where a header whose name is not an existing atom has always been placed.

OTP-20571
Related Id(s):

GH-SA-84cc-vh37-jqpf, PR-12263, CVE-2026-116295

CR, LF and NUL characters in HTTP header field names and values are now replaced with a space before the header is sent. This applies to request headers sent by httpc, including when the headers_as_is option is used, to response headers sent by httpd, and to chunked trailers.

Previously, an application that placed untrusted data in an httpc request header could allow injection of additional header lines or of a second request.

OTP-20580
Related Id(s):

GH-11829, PR-11687

Fixed a memory leak in the process calling httpc:request/4,5. Every asynchronous request, and every request given an explicit receiver option, left an active process alias behind in the calling process, so a long-lived process making many such requests would grow without bound. An alias is now only created for synchronous requests, and it is always deactivated when the request completes or fails.

Full runtime dependencies of inets-9.6.2.5

erts-14.0, kernel-9.0, mnesia-4.12, public_key-1.13, runtime_tools-1.8.14, ssl-9.0, stdlib-5.0, stdlib-6.0

mnesia-4.25.3.5 #

The mnesia-4.25.3.5 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20466
Related Id(s):

PR-11844

The mnesia checkpoint retainer process no longer crashes when mnesia:change_table_copy_type/3 is called on a table that is part of an active checkpoint.

OTP-20467
Related Id(s):

PR-11915

Fixed a bug where a dirty write to a disc_copies table racing with mnesia:delete_table/1 could leave the table’s log file open, so data written after the table was recreated could be lost at the next transaction log dump.

OTP-20517
Related Id(s):

PR-11960

The mnesia_subscr process could crash if a table subscriber terminated after the table had been deleted.

OTP-20526
Related Id(s):

PR-12144

mnesia:sync_transaction/1,2,3 could return before all nodes had committed when the transaction used the asymmetric commit protocol. This happens, for example, when the transaction updates a table with the majority option, or updates several tables whose replicas differ in storage type or nodes. Synchronous transactions now always wait for all participants to commit.

Full runtime dependencies of mnesia-4.25.3.5

erts-9.0, kernel-5.3, stdlib-5.0

odbc-2.16.1.2 #

The odbc-2.16.1.2 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20537
Related Id(s):

PR-12117

Validate string parameter values before they are sent to the odbcserver port program, and harden the port program against malformed or oversized input, so bad input fails early with a clear error instead of corrupting the port program heap.

Full runtime dependencies of odbc-2.16.1.2

erts-6.0, kernel-3.0, stdlib-2.0

os_mon-2.11.2.1 #

The os_mon-2.11.2.1 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20582
Related Id(s):

ERIERL-1383, PR-12252

cpu_sup:util() failed on systems with a huge amount of logical processors.

Full runtime dependencies of os_mon-2.11.2.1

erts-14.0, kernel-9.0, sasl-4.2.1, stdlib-5.0

public_key-1.20.3.7 #

Note! The public_key-1.20.3.7 application cannot be applied independently of other applications on an arbitrary OTP 28 installation.

   On a full OTP 28 installation, also the following runtime
   dependency has to be satisfied:
   -- crypto-5.8 (first satisfied in OTP 28.3)
OTP-20499
Related Id(s):

PR-11849

Correct decoding of mldsa expanded key only

Full runtime dependencies of public_key-1.20.3.7

asn1-5.0, crypto-5.8, erts-13.0, kernel-8.0, stdlib-4.0

snmp-5.20.2.4 #

The snmp-5.20.2.4 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20429
Related Id(s):

GH-SA-9p2q-5p4x-rhpq, PR-12261, CVE-2026-116225

snmp_pdus now enforces the OBJECT IDENTIFIER limits given in RFC 2578, section 3.5, when decoding: at most 128 sub-identifiers per OID, and a maximum sub-identifier value of 2^32-1, which requires at most five BER content octets. A single sub-identifier spread over a large number of continuation octets was previously accepted, and the decoding time grew quadratically with its length — decoding one sub-identifier of 64 kB took roughly 230 ms of CPU, and 500 kB took over 13 seconds. Since OIDs are also decoded for messages that have not been authenticated, a peer could use this to make an agent or manager unresponsive.

OTP-20584
Related Id(s):

ERIERL-1362, ERIERL-1384, ERIERL-1385, PR-12274

The SNMP agent can once again complete engine-ID discovery that it initiates itself with snmpa:discovery/2,3,4,5,6. Since OTP 27.3.4.19, 28.5.0.8 and 29.1.2 (OTP-20427), the agent silently discarded the manager’s Report answering a stage-1 discovery request, because the Report carries the manager’s engine ID, which is not yet known to the agent. Discovery therefore timed out, the engine ID of the target was never learned, and no INFORM was sent to managers whose engine ID is not configured.

The agent now accepts such a Report, as allowed by RFC 3414, section 3.2, step 3a, provided it answers a discovery request still pending from the agent. The behaviour introduced by OTP-20427 for incoming messages is unchanged.

Full runtime dependencies of snmp-5.20.2.4

asn1-5.4, crypto-4.6, erts-12.0, kernel-8.0, mnesia-4.12, runtime_tools-1.8.14, stdlib-5.0

ssh-5.5.2.8 #

Note! The ssh-5.5.2.8 application cannot be applied independently of other applications on an arbitrary OTP 28 installation.

   On a full OTP 28 installation, also the following runtime
   dependency has to be satisfied:
   -- crypto-5.7 (first satisfied in OTP 28.1)
OTP-20460
Related Id(s):

PR-11827

When strict key exchange was negotiated and the peer sent another message before its first SSH_MSG_KEXINIT, the connection was closed with reason SSH_DISCONNECT_BY_APPLICATION and the description “Internal error”. Such a connection is now closed with reason SSH_DISCONNECT_KEY_EXCHANGE_FAILED, as for other key exchange failures.

Full runtime dependencies of ssh-5.5.2.8

crypto-5.7, erts-14.0, kernel-10.3, public_key-1.6.1, runtime_tools-1.15.1, stdlib-5.0, stdlib-6.0

ssl-11.6.0.8 #

Note! The ssl-11.6.0.8 application cannot be applied independently of other applications on an arbitrary OTP 28 installation.

   On a full OTP 28 installation, also the following runtime
   dependencies have to be satisfied:
   -- crypto-5.8 (first satisfied in OTP 28.3)
   -- public_key-1.20.3.1 (first satisfied in OTP 28.5.0.1)
OTP-20468
Related Id(s):

PR-11847

TLS client now enforces EdDSA curve binding in TLS-1.3 CertificateVerify selection.

OTP-20519
Related Id(s):

PR-11959

Server now verifies that the cipher suite in the second ClientHello (after a HelloRetryRequest) matches the one it selected in the HRR, aborting with illegal_parameter on mismatch

OTP-20524
Related Id(s):

PR-12108

Resend DTLS HelloRetryRequest on retransmitted ClientHello to avoid handshake hang or timeout.

Corner case coverage of TLS handshake parsing to improve error handling. DTLS handshake fragment reassembling safeguard for preserving handshake message boundaries.

Client Keyshare sanity check.

Added missing ocsp extension in paused handshake,

Stop claiming client supports unimplemented PSK only mode.

OTP-20538
Related Id(s):

PR-12120

Correct HelloRetryRequest handling, that is a TLS-1.3 client offers an ML-KEM group in supported_groups but “ “sends a key_share for a different group. The server, which only “ “accepts the ML-KEM group, must respond with a HelloRetryRequest and “ “the handshake must then complete with the ML-KEM group selected.

OTP-20563
Related Id(s):

ERIERL-1382, PR-12199

Make sure crypto:hash_equals/2 length error exception is caught generating appropriate TLS ALERT . Will not happen during valid connection attempts.

OTP-20565
Related Id(s):

PR-11250, CVE-2026-124286

Added missing hardening commit, making anonymous cipher suite handling stricter, for OTP 28 track that should have been included in OTP-28.5.0.3. It turned out to have more serious consequences than in the scenario that we considered when doing the hardening.

OTP-20572
Related Id(s):

PR-12238

Restating of verify_peer option in handshake could loose verify_fun option set in listen falling back to default.

OTP-20486
Related Id(s):

PR-11918

Add in-depth-defense for TLS-1.3 session tickets and TLS-1.3 client ALPN choice. And also decline resumption for runtime tightened configuration change.

Full runtime dependencies of ssl-11.6.0.8

crypto-5.8, erts-16.0, inets-5.10.7, kernel-10.3, public_key-1.20.3.1, runtime_tools-1.15.1, stdlib-7.0

stdlib-7.3.0.4 #

Note! The stdlib-7.3.0.4 application cannot be applied independently of other applications on an arbitrary OTP 28 installation.

   On a full OTP 28 installation, also the following runtime
   dependency has to be satisfied:
   -- erts-16.0.3 (first satisfied in OTP 28.0.3)
OTP-20462
Related Id(s):

ERIERL-1338, PR-11908

Fix race between ets:delete/1 and exiting process auto unfixing the table. Could cause emulator crash.

OTP-20472
Related Id(s):

GH-11889, PR-11898

Fixed Unicode NFC/NFKC normalization leaving a Hangul syllable decomposed when preceded by an L jamo or a prepend character.

OTP-20527
Related Id(s):

GH-8513, PR-11220

A bug occurred in the auto-repair when opening dets has been fixed.

OTP-20542
Related Id(s):

GH-12116, PR-12142

Fixed io_lib:bformat/2,3 to escape double quotes inside printable binaries when using ~p/~P, so its output matches io_lib:format/2,3.

OTP-20564
Related Id(s):

PR-12193

Several functions in STDLIB handled invalid UTF-8 in unicode:chardata/0 incorrectly. For example:

  • io_lib:format/3 and io_lib:bformat/3 with option chars_limit could crash or return wrong output for ~ts arguments containing invalid UTF-8. Invalid bytes are now handled as Latin-1, as when chars_limit is not given.
  • string:take/3,4 could return an internal error tuple as part of its result when given a list containing a binary with invalid UTF-8. A badarg exception is now raised instead.

Full runtime dependencies of stdlib-7.3.0.4

compiler-5.0, crypto-4.5, erts-16.0.3, kernel-10.0, sasl-3.0, syntax_tools-3.2.1

wx-2.5.4.2 #

The wx-2.5.4.2 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20567
Related Id(s):

PR-12226

Fixed vendor information in SBOM.

Full runtime dependencies of wx-2.5.4.2

erts-12.0, kernel-8.0, stdlib-5.0

xmerl-2.1.9.1 #

The xmerl-2.1.9.1 application can be applied independently of other applications on a full OTP 28 installation.

OTP-20523
Related Id(s):

PR-11967, CVE-2026-115747

A bug in the AArch64 (ARM64) JIT could crash the BEAM virtual machine when processing certain input. The flaw caused the runtime system to misuse a CPU register in some chained comparison operations, leading to a segmentation fault.

One way this was triggered was by parsing XML containing an oversized numeric character reference (for example, &#576460752303423488;) with xmerl_sax_parser. Any application that passed attacker-controlled input through an affected code path could be vulnerable to a denial-of-service crash.

Only AArch64 (ARM64) systems running the JIT were affected. The x86-64 JIT, interpreter (emu) builds, and 32-bit platforms were not affected.

OTP-20556
POTENTIAL INCOMPATIBILITY
 

An external DTD was automatically fetched by xmerl_scan which resulted in a scan of an untrusted DTD that may result in an out of memory crash.

xmerl_xcan has now got a new option {fetch_external_DTD, Boolean} which default set to false to protect against this. This result in an incompatibility if one took advantage of that xmerl_scan auto fetched the external DTD.

The secure way to use a DTD is to let fetch_external_DTD be false (default) and use doctype_DTD to provide the needed DTD in the call to xmerl_scan.

Full runtime dependencies of xmerl-2.1.9.1

erts-6.0, kernel-8.4, stdlib-2.5

Thanks To #

Alexandre Rodrigues, Björn Gustavsson, Felix Jankowski, George Guimarães, haoxian, k-patrik, Michal Kuratczyk, Miguel Rubinos Rodríguez, Phil Calvin