[openssh-commits] [openssh] 12/18: upstream: close a path where a client that triggered

git+noreply at mindrot.org git+noreply at mindrot.org
Wed Nov 25 19:56:07 AEDT 2026


This is an automated email from the git hooks/post-receive script.

djm pushed a commit to branch master
in repository openssh.

commit 3868ac7e524dbec8ecef620ff0206db85c9f47d5
Author: djm at openbsd.org <djm at openbsd.org>
AuthorDate: Wed Nov 25 08:11:39 2026 +0000

    upstream: close a path where a client that triggered
    
    SSH_BUG_SIGTYPE could use RSA/SHA1 is spite of PubkeyAcceptedAlgorithms
    disallowing its use. For this circumvention to be successful, a RSA key must
    have been configured for the target user.
    
    This comes at the cost of breaking bug-compatibility with OpenSSH <7.2
    when used with ssh-agent.
    
    Anthropic ANT-2026-H3ABLIMM
    
    OpenBSD-Commit-ID: 8a61880651c3f4010130b53d45f3c40cadf3fb3d
---
 auth2-pubkey.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/auth2-pubkey.c b/auth2-pubkey.c
index dbbe6ecdd..17e2aaec5 100644
--- a/auth2-pubkey.c
+++ b/auth2-pubkey.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-pubkey.c,v 1.133 2026/10/30 09:04:01 djm Exp $ */
+/* $OpenBSD: auth2-pubkey.c,v 1.134 2026/11/25 08:11:39 djm Exp $ */
 /*
  * Copyright (c) 2000 Markus Friedl.  All rights reserved.
  * Copyright (c) 2010 Damien Miller.  All rights reserved.
@@ -239,8 +239,7 @@ userauth_pubkey(struct ssh *ssh, const char *method)
 		authenticated = 0;
 		if (mm_user_key_allowed(ssh, pw, key, 1, &authopts) &&
 		    mm_sshkey_verify(key, sig, slen,
-		    sshbuf_ptr(b), sshbuf_len(b),
-		    (ssh->compat & SSH_BUG_SIGTYPE) == 0 ? pkalg : NULL,
+		    sshbuf_ptr(b), sshbuf_len(b), pkalg,
 		    ssh->compat, &sig_details) == 0) {
 			authenticated = 1;
 		}

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list