{"id":28,"date":"2026-11-11T09:41:05","date_gmt":"2026-11-11T14:41:05","guid":{"rendered":"https:\/\/highcomputing.link\/?p=28"},"modified":"2026-11-11T09:41:05","modified_gmt":"2026-11-11T14:41:05","slug":"the-dumbest-way-to-break-into-ssh-cve-2026-123158","status":"publish","type":"post","link":"https:\/\/highcomputing.link\/?p=28","title":{"rendered":"The Dumbest Way to Break Into SSH (CVE-2026-123158)"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Every once in a while, a critical security vulnerability drops that makes you laugh before you check your fleet. It isn&#8217;t a complex cryptographic flaw or an esoteric memory corruption zero-day. It\u2019s an accidental comedy of errors where two completely reasonable safety features collided and accidentally left the front door wide open.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Enter <strong>CVE-2026-123158<\/strong>, also known as &#8220;SSHHole.&#8221;<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">The Two &#8220;Smart&#8221; Ideas<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">To understand how this broke, you only need to know how two separate systems tried to be safe:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li><strong>The Classic Lockout Trick:<\/strong> For decades, Unix systems have disabled password logins on specific accounts by putting a single asterisk (<code>*<\/code>) in their <code>\/etc\/shadow<\/code> file. The idea is simple: no real password ever hashes down to just <code>*<\/code>. If you can\u2019t generate that string, you can\u2019t log in with a password. It&#8217;s the standard way to enforce key-only access or lock a system account.<\/li>\n\n\n\n<li><strong>The Defensive Limit:<\/strong> Over in <code>musl libc<\/code>\u2014the lightweight C library popular on minimal distributions like Alpine Linux\u2014developers wanted to protect against CPU-exhaustion attacks. They capped password length checks at 256 characters. If someone feeds in a password longer than that, it fails immediately. And rather than returning a null value that might crash lazy software, it returns a safe error code: <code>*<\/code>.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">The Facepalm Moment<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Picture what happens when someone attempts to log into a locked, key-only account using a random 257-character password:<\/p>\n\n\n\n<ol start=\"1\" class=\"wp-block-list\">\n<li>OpenSSH hands the long password to the system to check.<\/li>\n\n\n\n<li>The library sees 257 characters, rejects it for being too long, and returns its error string: <code>*<\/code>.<\/li>\n\n\n\n<li>OpenSSH takes that return value (<code>*<\/code>), looks at the account&#8217;s stored password field (<code>*<\/code>), and sees an exact match.<\/li>\n\n\n\n<li>OpenSSH assumes the password is correct and drops the attacker straight into a shell.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><code>*<\/code> equals <code>*<\/code>. Access granted.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Who Actually Needs to Worry?<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If your servers run Debian, Ubuntu, Fedora, or RHEL, you&#8217;re fine. Those distros use <code>glibc<\/code>, which doesn&#8217;t have this behavior.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">This flaw lives almost exclusively in the <strong>Alpine Linux<\/strong> and embedded world. The crosshairs land on setups where:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>You&#8217;re running Alpine or another <code>musl<\/code>-based distro.<\/li>\n\n\n\n<li><code>PasswordAuthentication yes<\/code> is enabled in <code>sshd_config<\/code>.<\/li>\n\n\n\n<li>An account (like a default cloud user or service account) has its password disabled with <code>*<\/code> under the assumption that keys are required.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">On an Alpine cloud VM where the default user has passwordless administrative rights, feeding in 257 characters handed out instant root privileges without needing an SSH key at all.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">What to Do<\/h3>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Update your packages:<\/strong> Upstream patched this immediately by making SSH reject stored hashes shorter than four characters. If you run Alpine boxes, update <code>openssh<\/code> and bounce the daemon (package managers don&#8217;t restart running services for you).<\/li>\n\n\n\n<li><strong>Hard-disable password auth:<\/strong> Never rely on an account simply &#8220;not having a password&#8221; as your only defense. Explicitly set <code>PasswordAuthentication no<\/code> in your <code>\/etc\/ssh\/sshd_config<\/code>.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Sometimes the scariest vulnerabilities aren&#8217;t high-level math\u2014they\u2019re just software accidentally agreeing with itself.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Every once in a while, a critical security vulnerability drops that makes you laugh before you check your fleet. It isn&#8217;t a complex cryptographic flaw or an esoteric memory corruption zero-day. It\u2019s an accidental comedy of errors where two completely reasonable safety features collided and accidentally left the front door wide open. Enter CVE-2026-123158, also [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-container-style":"default","site-container-layout":"default","site-sidebar-layout":"default","disable-article-header":"default","disable-site-header":"default","disable-site-footer":"default","disable-content-area-spacing":"default","_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_hide_featured_image":false,"_jetpack_featured_image_duplicate_dismissed":0,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[1],"tags":[],"class_list":["post-28","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/highcomputing.link\/index.php?rest_route=\/wp\/v2\/posts\/28","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/highcomputing.link\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/highcomputing.link\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/highcomputing.link\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/highcomputing.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=28"}],"version-history":[{"count":1,"href":"https:\/\/highcomputing.link\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions"}],"predecessor-version":[{"id":29,"href":"https:\/\/highcomputing.link\/index.php?rest_route=\/wp\/v2\/posts\/28\/revisions\/29"}],"wp:attachment":[{"href":"https:\/\/highcomputing.link\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=28"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/highcomputing.link\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=28"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/highcomputing.link\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=28"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}