Unsafe deserialization in Apache MINA SSHD
Critical severity
GitHub Reviewed
Published
Nov 16, 2022
to the GitHub Advisory Database
•
Updated Aug 18, 2023
Description
Published by the National Vulnerability Database
Nov 16, 2022
Published to the GitHub Advisory Database
Nov 16, 2022
Reviewed
Nov 21, 2022
Last updated
Aug 18, 2023
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.
Until version 2.1.0, the code affected by this vulnerability appeared in
org.apache.sshd:sshd-core
. Version 2.1.0 contains a commit where the code was moved to the packageorg.apache.sshd:sshd-common
, which did not exist until version 2.1.0.References