{"id":"CVE-2026-105236","revision":"a246a35dec5744e2b5397f2c66b1b876","records":[{"revision":"a246a35dec5744e2b5397f2c66b1b876","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-105236","aliases":[],"title":"TLS 1.2 session resumption in ssl crosses SNI virtual-host client-certificate trust boundaries","description":"Improper Certificate Validation vulnerability in the ssl application in Erlang/OTP allows a client that holds a certificate trusted by one SNI virtual host to authenticate to a second SNI virtual host on the same listener by resuming its TLS 1.2 session there.\n\nA server that serves several SNI names from one listen socket through sni_fun or sni_hosts keeps one pre-TLS 1.3 session cache per listener and does not bind a cached session to the SNI name or client trust policy that established it. When an SNI option set switches to verify_peer without naming reuse_sessions, ssl_config:update_options/3 inherits the base listener's reuse_sessions value of true, so the default that disables reuse for client-authenticating servers does not apply. On an abbreviated handshake ssl_session:is_resumable/4 checks only that the cached session uses one of the current server certificates and carries some peer certificate, and never revalidates that certificate against the CA selected for the requested name. The names must share a server certificate, which is common with wildcard or multi-SAN certificates. TLS 1.3 does not use this cache and is not affected.\n\nThis issue affects OTP from OTP\u00A018.0 before OTP\u00A027.3.4.19, OTP\u00A028.5.0.8, and OTP\u00A029.1.2, corresponding to ssl from 7.0 before 11.2.12.14, 11.6.0.7, and 11.7.8.","state":0,"publishedAt":"2026-10-14T16:55:51.495+00:00","modifiedAt":"2026-10-16T20:09:49.566+00:00","affected":[{"ecosystem":"Vendor product","name":"otp","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"cpes\": [\n                        \"cpe:2.3:a:erlang:erlang\\\\/otp:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"ssl_gen_statem\",\n                        \"ssl_config\",\n                        \"ssl_session\",\n                        \"ssl_handshake\"\n                    ],\n                    \"packageName\": \"otp\",\n                    \"packageURL\": \"pkg:software-id/erlang.org/otp\",\n                    \"product\": \"OTP\",\n                    \"programFiles\": [\n                        \"lib/ssl/src/ssl_gen_statem.erl\",\n                        \"lib/ssl/src/ssl_config.erl\",\n                        \"lib/ssl/src/ssl_session.erl\",\n                        \"lib/ssl/src/ssl_handshake.erl\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"ssl_gen_statem:handle_sni_extension/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:handle_sni_hostname/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:update_ssl_options_from_sni/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:fallback_options/2\"\n                        },\n                        {\n                            \"name\": \"ssl_config:update_options/3\"\n                        },\n                        {\n                            \"name\": \"ssl_config:opt_reuse_sessions/3\"\n                        },\n                        {\n                            \"name\": \"ssl_session:server_select_session/5\"\n                        },\n                        {\n                            \"name\": \"ssl_session:is_resumable/4\"\n                        },\n                        {\n                            \"name\": \"ssl_session:reusable_options/2\"\n                        },\n                        {\n                            \"name\": \"ssl_handshake:select_session/8\"\n                        }\n                    ],\n                    \"vendor\": \"Erlang\",\n                    \"versions\": [\n                        {\n                            \"changes\": [\n                                {\n                                    \"at\": \"27.3.4.19\",\n                                    \"status\": \"unaffected\"\n                                },\n                                {\n                                    \"at\": \"28.5.0.8\",\n                                    \"status\": \"unaffected\"\n                                },\n                                {\n                                    \"at\": \"29.1.2\",\n                                    \"status\": \"unaffected\"\n                                }\n                            ],\n                            \"lessThan\": \"*\",\n                            \"status\": \"affected\",\n                            \"version\": \"18.0\",\n                            \"versionType\": \"otp\"\n                        }\n                    ]\n                }"},{"ecosystem":"Vendor product","name":"ssl","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"cpes\": [\n                        \"cpe:2.3:a:erlang:erlang\\\\/otp:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"ssl_gen_statem\",\n                        \"ssl_config\",\n                        \"ssl_session\",\n                        \"ssl_handshake\"\n                    ],\n                    \"packageName\": \"ssl\",\n                    \"packageURL\": \"pkg:otp/ssl?repository_url=https:%2F%2Fgithub.com%2Ferlang%2Fotp&vcs_url=git%2Bhttps:%2F%2Fgithub.com%2Ferlang%2Fotp.git\",\n                    \"product\": \"OTP\",\n                    \"programFiles\": [\n                        \"src/ssl_gen_statem.erl\",\n                        \"src/ssl_config.erl\",\n                        \"src/ssl_session.erl\",\n                        \"src/ssl_handshake.erl\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"ssl_gen_statem:handle_sni_extension/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:handle_sni_hostname/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:update_ssl_options_from_sni/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:fallback_options/2\"\n                        },\n                        {\n                            \"name\": \"ssl_config:update_options/3\"\n                        },\n                        {\n                            \"name\": \"ssl_config:opt_reuse_sessions/3\"\n                        },\n                        {\n                            \"name\": \"ssl_session:server_select_session/5\"\n                        },\n                        {\n                            \"name\": \"ssl_session:is_resumable/4\"\n                        },\n                        {\n                            \"name\": \"ssl_session:reusable_options/2\"\n                        },\n                        {\n                            \"name\": \"ssl_handshake:select_session/8\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/erlang/otp\",\n                    \"vendor\": \"Erlang\",\n                    \"versions\": [\n                        {\n                            \"changes\": [\n                                {\n                                    \"at\": \"11.2.12.14\",\n                                    \"status\": \"unaffected\"\n                                },\n                                {\n                                    \"at\": \"11.6.0.7\",\n                                    \"status\": \"unaffected\"\n                                },\n                                {\n                                    \"at\": \"11.7.8\",\n                                    \"status\": \"unaffected\"\n                                }\n                            ],\n                            \"lessThan\": \"*\",\n                            \"status\": \"affected\",\n                            \"version\": \"7.0\",\n                            \"versionType\": \"otp\"\n                        }\n                    ]\n                }"},{"ecosystem":"https://github.com","name":"erlang/otp","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"collectionURL\": \"https://github.com\",\n                    \"cpes\": [\n                        \"cpe:2.3:a:erlang:erlang\\\\/otp:*:*:*:*:*:*:*:*\"\n                    ],\n                    \"defaultStatus\": \"unaffected\",\n                    \"modules\": [\n                        \"ssl_gen_statem\",\n                        \"ssl_config\",\n                        \"ssl_session\",\n                        \"ssl_handshake\"\n                    ],\n                    \"packageName\": \"erlang/otp\",\n                    \"packageURL\": \"pkg:github/erlang/otp\",\n                    \"product\": \"OTP\",\n                    \"programFiles\": [\n                        \"lib/ssl/src/ssl_gen_statem.erl\",\n                        \"lib/ssl/src/ssl_config.erl\",\n                        \"lib/ssl/src/ssl_session.erl\",\n                        \"lib/ssl/src/ssl_handshake.erl\"\n                    ],\n                    \"programRoutines\": [\n                        {\n                            \"name\": \"ssl_gen_statem:handle_sni_extension/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:handle_sni_hostname/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:update_ssl_options_from_sni/2\"\n                        },\n                        {\n                            \"name\": \"ssl_gen_statem:fallback_options/2\"\n                        },\n                        {\n                            \"name\": \"ssl_config:update_options/3\"\n                        },\n                        {\n                            \"name\": \"ssl_config:opt_reuse_sessions/3\"\n                        },\n                        {\n                            \"name\": \"ssl_session:server_select_session/5\"\n                        },\n                        {\n                            \"name\": \"ssl_session:is_resumable/4\"\n                        },\n                        {\n                            \"name\": \"ssl_session:reusable_options/2\"\n                        },\n                        {\n                            \"name\": \"ssl_handshake:select_session/8\"\n                        }\n                    ],\n                    \"repo\": \"https://github.com/erlang/otp\",\n                    \"vendor\": \"Erlang\",\n                    \"versions\": [\n                        {\n                            \"changes\": [\n                                {\n                                    \"at\": \"0c20f3683b3c81fd30b46047195be9b3d2c69d76\",\n                                    \"status\": \"unaffected\"\n                                },\n                                {\n                                    \"at\": \"4d76adbf39d547a931048544df09c3c087e56618\",\n                                    \"status\": \"unaffected\"\n                                },\n                                {\n                                    \"at\": \"10ee925d0fee8413f1170cc21bfcf123c8d22454\",\n                                    \"status\": \"unaffected\"\n                                }\n                            ],\n                            \"lessThan\": \"*\",\n                            \"status\": \"affected\",\n                            \"version\": \"4fe38c4b8b2c8024afb60990e598ff823743fd54\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N","score":6.3,"severity":"MEDIUM"}],"references":["https://github.com/erlang/otp/security/advisories/GHSA-2g23-cgjh-34gq","https://cna.erlef.org/cves/CVE-2026-105236.html","https://osv.dev/vulnerability/EEF-CVE-2026-105236","https://www.erlang.org/doc/system/versions.html#order-of-versions","https://github.com/erlang/otp/commit/4fe38c4b8b2c8024afb60990e598ff823743fd54","https://github.com/erlang/otp/commit/0c20f3683b3c81fd30b46047195be9b3d2c69d76","https://github.com/erlang/otp/commit/4d76adbf39d547a931048544df09c3c087e56618","https://github.com/erlang/otp/commit/10ee925d0fee8413f1170cc21bfcf123c8d22454"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-105236","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-105236","identifiers":["CVE-2026-105236"]},"retained":false,"historicalAffected":[]}],"coverage":[]}