You are viewing a plain text version of this content. The canonical link for it is here.
Posted to announce@apache.org by Thomas Wolf <tw...@apache.org> on 2022/11/15 23:08:17 UTC

CVE-2022-45047: Apache MINA SSHD: Java unsafe deserialization vulnerability

Severity: important

Description:

Class org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider in Apache MINA SSHD <= 2.9.1 uses Java deserialization to load a serialized java.security.PrivateKey. The class is one of several implementations that an implementor using Apache MINA SSHD can choose for loading the host keys of an SSH server.

Mitigation:

For Apache MINA SSHD <= 2.9.1, do not use org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider to generate and later load your server's host key. Use separately generated host key files, for instance in OpenSSH format, and load them via a org.apache.sshd.common.keyprovider.FileKeyPairProvider instead. Or use a custom implementation instead of SimpleGeneratorHostKeyProvider that uses the OpenSSH format for storing and loading the host key (via classes OpenSSHKeyPairResourceWriter and OpenSSHKeyPairResourceParser).

The issue was fixed in Apache MINA SSHD 2.9.2. 

Credit:

The Apache MINA SSHD team would like to thank Zhang Zewei, NOFOCUS, for reporting this issue.


Fwd: CVE-2022-45047: Apache MINA SSHD: Java unsafe deserialization vulnerability

Posted by Thomas Wolf <t....@gmail.com>.
The new Apache MINA SSHD 2.9.2 release also fixes CVE-2022-45047.

-------- Forwarded Message --------
Subject: CVE-2022-45047: Apache MINA SSHD: Java unsafe deserialization 
vulnerability
Date: Tue, 15 Nov 2022 23:08:17 +0000
From: Thomas Wolf <tw...@apache.org>
Reply-To: dev@mina.apache.org
To: announce@apache.org, dev@mina.apache.org

Severity: important

Description:

Class org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider 
in Apache MINA SSHD <= 2.9.1 uses Java deserialization to load a 
serialized java.security.PrivateKey. The class is one of several 
implementations that an implementor using Apache MINA SSHD can choose 
for loading the host keys of an SSH server.

Mitigation:

For Apache MINA SSHD <= 2.9.1, do not use 
org.apache.sshd.server.keyprovider.SimpleGeneratorHostKeyProvider to 
generate and later load your server's host key. Use separately generated 
host key files, for instance in OpenSSH format, and load them via a 
org.apache.sshd.common.keyprovider.FileKeyPairProvider instead. Or use a 
custom implementation instead of SimpleGeneratorHostKeyProvider that 
uses the OpenSSH format for storing and loading the host key (via 
classes OpenSSHKeyPairResourceWriter and OpenSSHKeyPairResourceParser).

The issue was fixed in Apache MINA SSHD 2.9.2.
Credit:

The Apache MINA SSHD team would like to thank Zhang Zewei, NOFOCUS, for 
reporting this issue.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@mina.apache.org
For additional commands, e-mail: dev-help@mina.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@mina.apache.org
For additional commands, e-mail: users-help@mina.apache.org