{"containers":{"cna":{"affected":[{"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["ssl_handshake","ssl"],"packageName":"ssl","packageURL":"pkg:otp/ssl?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git","product":"OTP","programFiles":["src/ssl_handshake.erl","src/ssl.erl"],"programRoutines":[{"name":"ssl_handshake:verify_signature/5"},{"name":"ssl_handshake:verify_server_key/5"},{"name":"ssl_handshake:decode_server_key/3"},{"name":"ssl:connect/2"},{"name":"ssl:connect/3"},{"name":"ssl:connect/4"}],"repo":"https://github.com/erlang/otp","vendor":"Erlang","versions":[{"changes":[{"at":"11.2.12.10","status":"unaffected"},{"at":"11.6.0.8","status":"unaffected"},{"at":"11.7.3","status":"unaffected"}],"lessThan":"*","status":"affected","version":"5.3.4","versionType":"otp"}]},{"cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["ssl_handshake","ssl"],"packageName":"otp","packageURL":"pkg:software-id/erlang.org/otp","product":"OTP","programFiles":["lib/ssl/src/ssl_handshake.erl","lib/ssl/src/ssl.erl"],"programRoutines":[{"name":"ssl_handshake:verify_signature/5"},{"name":"ssl_handshake:verify_server_key/5"},{"name":"ssl_handshake:decode_server_key/3"},{"name":"ssl:connect/2"},{"name":"ssl:connect/3"},{"name":"ssl:connect/4"}],"vendor":"Erlang","versions":[{"changes":[{"at":"27.3.4.14","status":"unaffected"},{"at":"28.5.0.9","status":"unaffected"},{"at":"29.0.3","status":"unaffected"}],"lessThan":"*","status":"affected","version":"17.0","versionType":"otp"}]},{"collectionURL":"https://github.com","cpes":["cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*"],"defaultStatus":"unaffected","modules":["ssl_handshake","ssl"],"packageName":"erlang/otp","packageURL":"pkg:github/erlang/otp","product":"OTP","programFiles":["lib/ssl/src/ssl_handshake.erl","lib/ssl/src/ssl.erl"],"programRoutines":[{"name":"ssl_handshake:verify_signature/5"},{"name":"ssl_handshake:verify_server_key/5"},{"name":"ssl_handshake:decode_server_key/3"},{"name":"ssl:connect/2"},{"name":"ssl:connect/3"},{"name":"ssl:connect/4"}],"repo":"https://github.com/erlang/otp","vendor":"Erlang","versions":[{"changes":[{"at":"74782afedd9090bad0ab1dede237a2389e94743f","status":"unaffected"},{"at":"d9a931963d3d49c7f73ea509221c9c66737977c7","status":"unaffected"}],"lessThan":"*","status":"affected","version":"938a5246a52d30897b4f47439352da4425ea6fc5","versionType":"git"}]}],"configurations":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>The vulnerability affects clients whose connection can use TLS 1.2 or DTLS 1.2. The default <code>ssl:connect</code> options allow TLS 1.2. Clients restricted to TLS 1.3 are not affected. Cipher suites that do not use a <code>ServerKeyExchange</code> message (the <code>rsa</code>, <code>ecdh_rsa</code> and <code>ecdh_ecdsa</code> key exchanges) are not affected. Servers are not affected. Exploitation requires an on-path (adversary-in-the-middle) attacker between the client and the intended server.</p>"},{"base64":false,"type":"text/markdown","value":"The vulnerability affects clients whose connection can use TLS 1.2 or DTLS 1.2. The default `ssl:connect` options allow TLS 1.2. Clients restricted to TLS 1.3 are not affected. Cipher suites that do not use a `ServerKeyExchange` message (the `rsa`, `ecdh_rsa` and `ecdh_ecdsa` key exchanges) are not affected. Servers are not affected. Exploitation requires an on-path (adversary-in-the-middle) attacker between the client and the intended server."}],"value":"The vulnerability affects clients whose connection can use TLS 1.2 or DTLS 1.2. The default ssl:connect options allow TLS 1.2. Clients restricted to TLS 1.3 are not affected. Cipher suites that do not use a ServerKeyExchange message (the rsa, ecdh_rsa and ecdh_ecdsa key exchanges) are not affected. Servers are not affected. Exploitation requires an on-path (adversary-in-the-middle) attacker between the client and the intended server."}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"27.3.4.14","versionStartIncluding":"17.0","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"28.5.0.9","versionStartIncluding":"28.0","vulnerable":true},{"criteria":"cpe:2.3:a:erlang:erlang\\/otp:*:*:*:*:*:*:*:*","versionEndExcluding":"29.0.3","versionStartIncluding":"29.0","vulnerable":true}],"negate":false,"operator":"OR"}],"operator":"AND"}],"credits":[{"lang":"en","type":"finder","value":"Phillip Calvin"},{"lang":"en","type":"reporter","value":"Phillip Calvin"},{"lang":"en","type":"coordinator","value":"Jonatan Männchen / EEF"},{"lang":"en","type":"remediation developer","value":"Ingela Anderton Andin"}],"dateAssigned":"2026-11-16T02:00:55.000Z","datePublic":"2026-11-24T15:12:01.000Z","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Improper Verification of Cryptographic Signature vulnerability in Erlang OTP <code>ssl</code> (<code>ssl_handshake</code> module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.</p>\n<p>When a server sends no <code>Certificate</code> message and a <code>ServerKeyExchange</code> without a signature, <code>ssl_handshake:decode_server_key/3</code> reports the signature algorithm as <code>anon</code>, and <code>ssl_handshake:verify_signature/5</code> returns <code>true</code> for <code>anon</code> without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the <code>ecdhe_rsa</code>, <code>ecdhe_ecdsa</code>, <code>dhe_rsa</code> and <code>dhe_dss</code> key exchanges with a cipher suite the client offered. Certificate path validation, <code>verify_fun</code> and the hostname check do not run, and <code>ssl:connect/3</code> returns <code>{ok, Socket}</code> with <code>{verify, verify_peer}</code> set. The TLS 1.3 client is not affected.</p>\n<p>This issue affects OTP from OTP&nbsp;17.0 before OTP&nbsp;27.3.4.14, OTP&nbsp;28.5.0.9, and OTP&nbsp;29.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3.</p>"},{"base64":false,"type":"text/markdown","value":"Improper Verification of Cryptographic Signature vulnerability in Erlang OTP `ssl` (`ssl_handshake` module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.\n\nWhen a server sends no `Certificate` message and a `ServerKeyExchange` without a signature, `ssl_handshake:decode_server_key/3` reports the signature algorithm as `anon`, and `ssl_handshake:verify_signature/5` returns `true` for `anon` without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the `ecdhe_rsa`, `ecdhe_ecdsa`, `dhe_rsa` and `dhe_dss` key exchanges with a cipher suite the client offered. Certificate path validation, `verify_fun` and the hostname check do not run, and `ssl:connect/3` returns `{ok, Socket}` with `{verify, verify_peer}` set. The TLS 1.3 client is not affected.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.9, and OTP 29.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3."}],"value":"Improper Verification of Cryptographic Signature vulnerability in Erlang OTP ssl (ssl_handshake module) allows an on-path attacker to impersonate any server to a TLS 1.2 or DTLS client.\n\nWhen a server sends no Certificate message and a ServerKeyExchange without a signature, ssl_handshake:decode_server_key/3 reports the signature algorithm as anon, and ssl_handshake:verify_signature/5 returns true for anon without a public key. The client does not require a certificate for a certificate-authenticated key exchange, so the handshake completes for the ecdhe_rsa, ecdhe_ecdsa, dhe_rsa and dhe_dss key exchanges with a cipher suite the client offered. Certificate path validation, verify_fun and the hostname check do not run, and ssl:connect/3 returns {ok, Socket} with {verify, verify_peer} set. The TLS 1.3 client is not affected.\n\nThis issue affects OTP from OTP 17.0 before OTP 27.3.4.14, OTP 28.5.0.9, and OTP 29.0.3, corresponding to ssl from 5.3.4 before 11.2.12.10, 11.6.0.8, and 11.7.3."}],"impacts":[{"capecId":"CAPEC-475","descriptions":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>An on-path attacker can impersonate any server to an affected client, then read and modify all application data on the connection. Certificate path validation, <code>verify_fun</code> and the hostname check do not run.</p>"},{"base64":false,"type":"text/markdown","value":"An on-path attacker can impersonate any server to an affected client, then read and modify all application data on the connection. Certificate path validation, `verify_fun` and the hostname check do not run."}],"value":"An on-path attacker can impersonate any server to an affected client, then read and modify all application data on the connection. Certificate path validation, verify_fun and the hostname check do not run."}]}],"metrics":[{"cvssV4_0":{"Automatable":"NOT_DEFINED","Recovery":"NOT_DEFINED","Safety":"NOT_DEFINED","attackComplexity":"LOW","attackRequirements":"PRESENT","attackVector":"NETWORK","baseScore":9.1,"baseSeverity":"CRITICAL","privilegesRequired":"NONE","providerUrgency":"NOT_DEFINED","subAvailabilityImpact":"NONE","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","userInteraction":"NONE","valueDensity":"NOT_DEFINED","vectorString":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N","version":"4.0","vulnAvailabilityImpact":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnerabilityResponseEffort":"NOT_DEFINED"},"format":"CVSS","scenarios":[{"lang":"en","value":"GENERAL"}]}],"problemTypes":[{"descriptions":[{"cweId":"CWE-347","description":"CWE-347 Improper Verification of Cryptographic Signature","lang":"en","type":"CWE"}]}],"providerMetadata":{"dateUpdated":"2026-11-24T15:12:02.452Z","orgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","shortName":"EEF"},"references":[{"name":"TLS 1.2 Client Completes Handshake Without a Server Certificate","tags":["vendor-advisory","related"],"url":"https://github.com/erlang/otp/security/advisories/GHSA-7mff-v332-665j"},{"name":"EEF CNA record for CVE-2026-124286","tags":["related"],"url":"https://cna.erlef.org/cves/CVE-2026-124286.html"},{"name":"OSV record EEF-CVE-2026-124286","tags":["related"],"url":"https://osv.dev/vulnerability/EEF-CVE-2026-124286"},{"name":"Erlang/OTP version ordering","tags":["x_version-scheme"],"url":"https://www.erlang.org/doc/system/versions.html#order-of-versions"},{"name":"Introducing commit 938a524 in erlang/otp","tags":["related"],"url":"https://github.com/erlang/otp/commit/938a5246a52d30897b4f47439352da4425ea6fc5"},{"name":"Fix commit 74782af in erlang/otp","tags":["patch"],"url":"https://github.com/erlang/otp/commit/74782afedd9090bad0ab1dede237a2389e94743f"},{"name":"Fix commit d9a9319 in erlang/otp","tags":["patch"],"url":"https://github.com/erlang/otp/commit/d9a931963d3d49c7f73ea509221c9c66737977c7"}],"source":{"discovery":"EXTERNAL"},"title":"TLS 1.2 Client Completes Handshake Without a Server Certificate","workarounds":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p>Restrict TLS client connections to TLS 1.3 by setting <code>versions</code> to <code>['tlsv1.3']</code> in the client's <code>ssl</code> options.</p>\n<p>If a client must use TLS 1.2, offer only the static RSA key exchange cipher suites. These suites have no <code>ServerKeyExchange</code> message. They provide no forward secrecy, and many servers do not accept them.</p>\n<pre><code class=\"language-erlang\">RsaOnly = ssl:filter_cipher_suites(\n    ssl:cipher_suites(all, 'tlsv1.2'),\n    [{key_exchange, fun(rsa) -&gt; true; (_) -&gt; false end}]\n),\nOpts = [\n    {verify, verify_peer},\n    {cacerts, public_key:cacerts_get()},\n    {versions, ['tlsv1.2']},\n    {ciphers, RsaOnly},\n    {server_name_indication, \"www.example.com\"},\n    {customize_hostname_check, [\n        {match_fun, public_key:pkix_verify_hostname_match_fun(https)}\n    ]}\n].\n</code></pre>"},{"base64":false,"type":"text/markdown","value":"Restrict TLS client connections to TLS 1.3 by setting `versions` to `['tlsv1.3']` in the client's `ssl` options.\n\nIf a client must use TLS 1.2, offer only the static RSA key exchange cipher suites. These suites have no `ServerKeyExchange` message. They provide no forward secrecy, and many servers do not accept them.\n\n```erlang\nRsaOnly = ssl:filter_cipher_suites(\n    ssl:cipher_suites(all, 'tlsv1.2'),\n    [{key_exchange, fun(rsa) -> true; (_) -> false end}]\n),\nOpts = [\n    {verify, verify_peer},\n    {cacerts, public_key:cacerts_get()},\n    {versions, ['tlsv1.2']},\n    {ciphers, RsaOnly},\n    {server_name_indication, \"www.example.com\"},\n    {customize_hostname_check, [\n        {match_fun, public_key:pkix_verify_hostname_match_fun(https)}\n    ]}\n].\n```"}],"value":"Restrict TLS client connections to TLS 1.3 by setting versions to ['tlsv1.3'] in the client's ssl options.\n\nIf a client must use TLS 1.2, offer only the static RSA key exchange cipher suites. These suites have no ServerKeyExchange message. They provide no forward secrecy, and many servers do not accept them.\n\nRsaOnly = ssl:filter_cipher_suites(\n    ssl:cipher_suites(all, 'tlsv1.2'),\n    [{key_exchange, fun(rsa) -> true; (_) -> false end}]\n),\nOpts = [\n    {verify, verify_peer},\n    {cacerts, public_key:cacerts_get()},\n    {versions, ['tlsv1.2']},\n    {ciphers, RsaOnly},\n    {server_name_indication, \"www.example.com\"},\n    {customize_hostname_check, [\n        {match_fun, public_key:pkix_verify_hostname_match_fun(https)}\n    ]}\n]."}],"x_proofOfConcept":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<ol>\n<li>Start a TCP server that answers a TLS 1.2 <code>ClientHello</code> with a <code>ServerHello</code> that selects an offered <code>ECDHE_RSA</code> suite (for example <code>TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256</code>), then a <code>ServerKeyExchange</code> with x25519 parameters and no signature, then <code>ServerHelloDone</code>. Send no <code>Certificate</code> message. The <code>UnauthenticatedECDH</code> test of the BoringSSL test runner (BoGo) provides such a server.</li>\n<li>Connect with <code>ssl:connect/3</code> and the options <code>{verify, verify_peer}</code>, <code>{cacerts, public_key:cacerts_get()}</code>, <code>{server_name_indication, \"www.example.com\"}</code> and <code>{customize_hostname_check, [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]}</code>.</li>\n<li>On the server, derive the session keys from its own ECDH key pair and the client's <code>ClientKeyExchange</code>, then send <code>ChangeCipherSpec</code> and <code>Finished</code>.</li>\n<li><code>ssl:connect/3</code> returns <code>{ok, Socket}</code>, and the server decrypts the application data that the client sends. A fixed client aborts with a fatal alert after step 1.</li>\n</ol>"},{"base64":false,"type":"text/markdown","value":"1. Start a TCP server that answers a TLS 1.2 `ClientHello` with a `ServerHello` that selects an offered `ECDHE_RSA` suite (for example `TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256`), then a `ServerKeyExchange` with x25519 parameters and no signature, then `ServerHelloDone`. Send no `Certificate` message. The `UnauthenticatedECDH` test of the BoringSSL test runner (BoGo) provides such a server.\n2. Connect with `ssl:connect/3` and the options `{verify, verify_peer}`, `{cacerts, public_key:cacerts_get()}`, `{server_name_indication, \"www.example.com\"}` and `{customize_hostname_check, [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]}`.\n3. On the server, derive the session keys from its own ECDH key pair and the client's `ClientKeyExchange`, then send `ChangeCipherSpec` and `Finished`.\n4. `ssl:connect/3` returns `{ok, Socket}`, and the server decrypts the application data that the client sends. A fixed client aborts with a fatal alert after step 1."}],"value":"* Start a TCP server that answers a TLS 1.2 ClientHello with a ServerHello that selects an offered ECDHE_RSA suite (for example TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256), then a ServerKeyExchange with x25519 parameters and no signature, then ServerHelloDone. Send no Certificate message. The UnauthenticatedECDH test of the BoringSSL test runner (BoGo) provides such a server.\n* Connect with ssl:connect/3 and the options {verify, verify_peer}, {cacerts, public_key:cacerts_get()}, {server_name_indication, \"www.example.com\"} and {customize_hostname_check, [{match_fun, public_key:pkix_verify_hostname_match_fun(https)}]}.\n* On the server, derive the session keys from its own ECDH key pair and the client's ClientKeyExchange, then send ChangeCipherSpec and Finished.\n* ssl:connect/3 returns {ok, Socket}, and the server decrypts the application data that the client sends. A fixed client aborts with a fatal alert after step 1."}],"x_technicalAnalysis":[{"lang":"en","supportingMedia":[{"base64":false,"type":"text/html","value":"<p><strong>1. Signature decoding.</strong> <code>ssl_handshake:decode_server_key/3</code> splits the <code>ServerKeyExchange</code> body into the key exchange parameters and a signature. The internal <code>dec_server_key_signature/3</code> maps an empty remainder, a zero-length signature, and the TLS 1.2 <code>anonymous</code> signature algorithm with an empty signature to the signature algorithm <code>anon</code>. It does this for every key exchange algorithm, not only for the anonymous ones.</p>\n<p><strong>2. Signature verification.</strong> In the <code>certify</code> state the client calls <code>ssl_handshake:verify_server_key/5</code> for the non-anonymous key exchanges. No <code>Certificate</code> message arrived, so the stored public key is <code>undefined</code>. <code>ssl_handshake:verify_signature/5</code> has a clause that returns <code>true</code> for the <code>anon</code> signature algorithm with any key, and that clause matches.</p>\n<p><strong>3. Handshake completion.</strong> The client does not check that it received a certificate before it handles <code>ServerHelloDone</code>. It derives the master secret from the unauthenticated (EC)DH parameters and sends <code>ClientKeyExchange</code>, <code>ChangeCipherSpec</code> and <code>Finished</code>. The attacker holds the (EC)DH private key and completes the handshake. <code>ssl:connect/3</code> returns <code>{ok, Socket}</code>, and <code>ssl:peercert/1</code> returns <code>{error, no_peercert}</code> on that socket.</p>"},{"base64":false,"type":"text/markdown","value":"**1. Signature decoding.** `ssl_handshake:decode_server_key/3` splits the `ServerKeyExchange` body into the key exchange parameters and a signature. The internal `dec_server_key_signature/3` maps an empty remainder, a zero-length signature, and the TLS 1.2 `anonymous` signature algorithm with an empty signature to the signature algorithm `anon`. It does this for every key exchange algorithm, not only for the anonymous ones.\n\n**2. Signature verification.** In the `certify` state the client calls `ssl_handshake:verify_server_key/5` for the non-anonymous key exchanges. No `Certificate` message arrived, so the stored public key is `undefined`. `ssl_handshake:verify_signature/5` has a clause that returns `true` for the `anon` signature algorithm with any key, and that clause matches.\n\n**3. Handshake completion.** The client does not check that it received a certificate before it handles `ServerHelloDone`. It derives the master secret from the unauthenticated (EC)DH parameters and sends `ClientKeyExchange`, `ChangeCipherSpec` and `Finished`. The attacker holds the (EC)DH private key and completes the handshake. `ssl:connect/3` returns `{ok, Socket}`, and `ssl:peercert/1` returns `{error, no_peercert}` on that socket."}],"value":"1. Signature decoding. ssl_handshake:decode_server_key/3 splits the ServerKeyExchange body into the key exchange parameters and a signature. The internal dec_server_key_signature/3 maps an empty remainder, a zero-length signature, and the TLS 1.2 anonymous signature algorithm with an empty signature to the signature algorithm anon. It does this for every key exchange algorithm, not only for the anonymous ones.\n\n2. Signature verification. In the certify state the client calls ssl_handshake:verify_server_key/5 for the non-anonymous key exchanges. No Certificate message arrived, so the stored public key is undefined. ssl_handshake:verify_signature/5 has a clause that returns true for the anon signature algorithm with any key, and that clause matches.\n\n3. Handshake completion. The client does not check that it received a certificate before it handles ServerHelloDone. It derives the master secret from the unauthenticated (EC)DH parameters and sends ClientKeyExchange, ChangeCipherSpec and Finished. The attacker holds the (EC)DH private key and completes the handshake. ssl:connect/3 returns {ok, Socket}, and ssl:peercert/1 returns {error, no_peercert} on that socket."}]}},"cveMetadata":{"assignerOrgId":"6b3ad84c-e1a6-4bf7-a703-f496b71e49db","assignerShortName":"EEF","cveId":"CVE-2026-124286","datePublished":"2026-11-24T15:12:02.452Z","dateReserved":"2026-11-12T20:33:15.864Z","dateUpdated":"2026-11-24T15:12:02.452Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"}