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
| Ecosystem | Package | Affected versions |
|---|---|---|
| PyPI | paramiko | From 2.0.0 before 2.0.8 (fixed in 2.0.8) |
| PyPI | paramiko | From 2.1.0 before 2.1.5 (fixed in 2.1.5) |
| PyPI | paramiko | From 2.2.0 before 2.2.3 (fixed in 2.2.3) |
| PyPI | paramiko | From 2.3.0 before 2.3.2 (fixed in 2.3.2) |
| PyPI | paramiko | From 2.4.0 before 2.4.1 (fixed in 2.4.1) |
| PyPI | paramiko | From 1.18.0 before 1.18.5 (fixed in 1.18.5) |
| PyPI | paramiko | All versions before 1.17.6 (fixed in 1.17.6) |
References
- https://nvd.nist.gov/vuln/detail/CVE-2018-7750
- https://github.com/paramiko/paramiko/issues/1175
- https://github.com/paramiko/paramiko/commit/fa29bd8446c8eab237f5187d28787727b4610516
- https://github.com/paramiko/paramiko/commit/e9dfd854bdaf8af15d7834f7502a0451d217bb8c
- https://www.exploit-db.com/exploits/45712
- https://web.archive.org/web/20190831123128/http://www.securityfocus.com/bid/103713
- https://usn.ubuntu.com/3603-2
- https://usn.ubuntu.com/3603-1
- https://lists.debian.org/debian-lts-announce/2021/12/msg00025.html
- https://lists.debian.org/debian-lts-announce/2018/10/msg00018.html
- https://github.com/pypa/advisory-database/tree/main/vulns/paramiko/PYSEC-2018-19.yaml
- https://github.com/paramiko/paramiko/blob/master/sites/www/changelog.rst
- https://github.com/paramiko/paramiko/blob/e861c7697622774071ce73b46ffe8817eacdedfa/sites/www/changelog.rst?plain=1#L759-L763
- https://github.com/paramiko/paramiko
- https://github.com/advisories/GHSA-232r-66cg-79px
- https://access.redhat.com/errata/RHSA-2018:1972
- https://access.redhat.com/errata/RHSA-2018:1525
- https://access.redhat.com/errata/RHSA-2018:1328
- https://access.redhat.com/errata/RHSA-2018:1274
- https://access.redhat.com/errata/RHSA-2018:1213
- https://access.redhat.com/errata/RHSA-2018:1125
- https://access.redhat.com/errata/RHSA-2018:1124
- https://access.redhat.com/errata/RHSA-2018:0646
- https://access.redhat.com/errata/RHSA-2018:0591
- http://www.securityfocus.com/bid/103713