ADVISORIES

GitHub Advisory Database

GHSA-232r-66cg-79px

Paramiko not properly checking authentication before processing other requests

Details

transport.py in the SSH server implementation of Paramiko before 1.17.6, 1.18.x before 1.18.5, 2.0.x before 2.0.8, 2.1.x before 2.1.5, 2.2.x before 2.2.3, 2.3.x before 2.3.2, and 2.4.x before 2.4.1 does not properly check whether authentication is completed before processing other requests, as demonstrated by channel-open. A customized SSH client can simply skip the authentication step.

Affected packages

EcosystemPackageAffected versions
PyPIparamiko
From 2.0.0 before 2.0.8 (fixed in 2.0.8)
PyPIparamiko
From 2.1.0 before 2.1.5 (fixed in 2.1.5)
PyPIparamiko
From 2.2.0 before 2.2.3 (fixed in 2.2.3)
PyPIparamiko
From 2.3.0 before 2.3.2 (fixed in 2.3.2)
PyPIparamiko
From 2.4.0 before 2.4.1 (fixed in 2.4.1)
PyPIparamiko
From 1.18.0 before 1.18.5 (fixed in 1.18.5)
PyPIparamiko
All versions before 1.17.6 (fixed in 1.17.6)

References