Lookup for vulnerable packages by Package URL.

Purlpkg:pypi/asyncssh@2.14.1
Typepypi
Namespace
Nameasyncssh
Version2.14.1
Qualifiers
Subpath
Is_vulnerabletrue
Next_non_vulnerable_versionnull
Latest_non_vulnerable_versionnull
Affected_by_vulnerabilities
0
url VCID-gqsu-zfqa-k7fj
vulnerability_id VCID-gqsu-zfqa-k7fj
summary
AsyncSSH vulnerable to Prefix Truncation Attack (a.k.a. Terrapin Attack) against ChaCha20-Poly1305 and Encrypt-then-MAC
### Summary

AsyncSSH v2.14.1 and earlier is vulnerable to a novel prefix truncation attack (a.k.a. Terrapin attack), which allows a man-in-the-middle attacker to strip an arbitrary number of messages right after the initial key exchange, breaking SSH extension negotiation (RFC8308) in the process and thus downgrading connection security.

### Mitigations

To mitigate this protocol vulnerability, OpenSSH suggested a so-called "strict kex" which alters the SSH handshake to ensure a Man-in-the-Middle attacker cannot introduce unauthenticated messages as well as convey sequence number manipulation across handshakes. Support for strict key exchange has been added to AsyncSSH in the patched version. 

**Warning: To take effect, both the client and server must support this countermeasure.** 

As a stop-gap measure, peers may also (temporarily) disable the affected algorithms and use unaffected alternatives like AES-GCM instead until patches are available.

### Details

The SSH specifications of ChaCha20-Poly1305 (chacha20-poly1305@openssh.com) and Encrypt-then-MAC (*-etm@openssh.com MACs) is vulnerable against an arbitrary prefix truncation attack (a.k.a. Terrapin attack). This allows for an extension negotiation downgrade by stripping the SSH_MSG_EXT_INFO sent after the first message after SSH_MSG_NEWKEYS, downgrading security, and disabling attack countermeasures in some versions of OpenSSH. When targeting Encrypt-then-MAC, this attack requires the use of a CBC cipher to be practically exploitable due to the internal workings of the cipher mode. Additionally, this novel attack technique can be used to exploit previously unexploitable implementation flaws in a Man-in-the-Middle scenario.

The attack works by an attacker injecting an arbitrary number of SSH_MSG_IGNORE messages during the initial key exchange and consequently removing the same number of messages just after the initial key exchange has concluded. This is possible due to missing authentication of the excess SSH_MSG_IGNORE messages and the fact that the implicit sequence numbers used within the SSH protocol are only checked after the initial key exchange.

In the case of ChaCha20-Poly1305, the attack is guaranteed to work on every connection as this cipher does not maintain an internal state other than the message's sequence number. In the case of Encrypt-Then-MAC, practical exploitation requires the use of a CBC cipher; while theoretical integrity is broken for all ciphers when using this mode, message processing will fail at the application layer for CTR and stream ciphers.

For more details and a pre-print of the associated research paper, see [https://terrapin-attack.com](https://terrapin-attack.com). This website is not affiliated with AsyncSSH in any way.

 ### Impact

This attack targets the specification of ChaCha20-Poly1305 (chacha20-poly1305@openssh.com) and Encrypt-then-MAC (*-etm@openssh.com), which are widely adopted by well-known SSH implementations and can be considered de-facto standard. These algorithms can be practically exploited; however, in the case of Encrypt-Then-MAC, we additionally require the use of a CBC cipher. As a consequence, this attack works against all well-behaving SSH implementations supporting either of those algorithms and can be used to downgrade (but not fully strip) connection security in case SSH extension negotiation (RFC8308) is supported. The attack may also enable attackers to exploit certain implementation flaws in a man-in-the-middle (MitM) scenario.
references
0
reference_url https://github.com/ronf/asyncssh/commit/0bc73254f41acb140187e0c89606311f88de5b7b
reference_id
reference_type
scores
url https://github.com/ronf/asyncssh/commit/0bc73254f41acb140187e0c89606311f88de5b7b
1
reference_url https://github.com/ronf/asyncssh/commit/69f5a41b458b29367a65fe469c2b0255b5db210a
reference_id
reference_type
scores
url https://github.com/ronf/asyncssh/commit/69f5a41b458b29367a65fe469c2b0255b5db210a
2
reference_url https://github.com/advisories/GHSA-hfmc-7525-mj55
reference_id GHSA-hfmc-7525-mj55
reference_type
scores
url https://github.com/advisories/GHSA-hfmc-7525-mj55
3
reference_url https://github.com/ronf/asyncssh/security/advisories/GHSA-hfmc-7525-mj55
reference_id GHSA-hfmc-7525-mj55
reference_type
scores
url https://github.com/ronf/asyncssh/security/advisories/GHSA-hfmc-7525-mj55
fixed_packages
0
url pkg:pypi/asyncssh@2.14.2
purl pkg:pypi/asyncssh@2.14.2
is_vulnerable false
affected_by_vulnerabilities
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/asyncssh@2.14.2
aliases GHSA-hfmc-7525-mj55, GMS-2023-6499
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-gqsu-zfqa-k7fj
Fixing_vulnerabilities
0
url VCID-1dnz-zrf1-87dm
vulnerability_id VCID-1dnz-zrf1-87dm
summary An issue in AsyncSSH v2.14.0 and earlier allows attackers to control the remote end of an SSH client session via packet injection/removal and shell emulation.
references
0
reference_url https://github.com/pypa/advisory-database/tree/main/vulns/asyncssh/PYSEC-2023-239.yaml
reference_id
reference_type
scores
url https://github.com/pypa/advisory-database/tree/main/vulns/asyncssh/PYSEC-2023-239.yaml
1
reference_url https://github.com/ronf/asyncssh
reference_id
reference_type
scores
url https://github.com/ronf/asyncssh
2
reference_url https://github.com/ronf/asyncssh/blob/develop/docs/changes.rst
reference_id
reference_type
scores
url https://github.com/ronf/asyncssh/blob/develop/docs/changes.rst
3
reference_url https://github.com/ronf/asyncssh/commit/83e43f5ea3470a8617fc388c72b062c7136efd7e
reference_id
reference_type
scores
url https://github.com/ronf/asyncssh/commit/83e43f5ea3470a8617fc388c72b062c7136efd7e
4
reference_url https://github.com/ronf/asyncssh/security/advisories/GHSA-c35q-ffpf-5qpm
reference_id
reference_type
scores
0
value 6.8
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:N
url https://github.com/ronf/asyncssh/security/advisories/GHSA-c35q-ffpf-5qpm
5
reference_url https://lists.debian.org/debian-lts-announce/2024/09/msg00042.html
reference_id
reference_type
scores
url https://lists.debian.org/debian-lts-announce/2024/09/msg00042.html
6
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ME34ROZWMDK5KLMZKTSA422XVJZ7IMTE
reference_id
reference_type
scores
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ME34ROZWMDK5KLMZKTSA422XVJZ7IMTE
7
reference_url https://security.netapp.com/advisory/ntap-20231222-0001
reference_id
reference_type
scores
url https://security.netapp.com/advisory/ntap-20231222-0001
8
reference_url https://www.terrapin-attack.com
reference_id
reference_type
scores
url https://www.terrapin-attack.com
9
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-46446
reference_id CVE-2023-46446
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-46446
10
reference_url https://github.com/advisories/GHSA-c35q-ffpf-5qpm
reference_id GHSA-c35q-ffpf-5qpm
reference_type
scores
url https://github.com/advisories/GHSA-c35q-ffpf-5qpm
fixed_packages
0
url pkg:pypi/asyncssh@2.14.1
purl pkg:pypi/asyncssh@2.14.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-gqsu-zfqa-k7fj
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/asyncssh@2.14.1
aliases CVE-2023-46446, GHSA-c35q-ffpf-5qpm, PYSEC-2023-239
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-1dnz-zrf1-87dm
1
url VCID-dpm4-k8e6-rfbp
vulnerability_id VCID-dpm4-k8e6-rfbp
summary An issue in AsyncSSH v2.14.0 and earlier allows attackers to control the extension info message (RFC 8308) via a man-in-the-middle attack.
references
0
reference_url https://github.com/pypa/advisory-database/tree/main/vulns/asyncssh/PYSEC-2023-237.yaml
reference_id
reference_type
scores
url https://github.com/pypa/advisory-database/tree/main/vulns/asyncssh/PYSEC-2023-237.yaml
1
reference_url https://github.com/ronf/asyncssh
reference_id
reference_type
scores
url https://github.com/ronf/asyncssh
2
reference_url https://github.com/ronf/asyncssh/blob/develop/docs/changes.rst
reference_id
reference_type
scores
url https://github.com/ronf/asyncssh/blob/develop/docs/changes.rst
3
reference_url https://github.com/ronf/asyncssh/commit/83e43f5ea3470a8617fc388c72b062c7136efd7e
reference_id
reference_type
scores
url https://github.com/ronf/asyncssh/commit/83e43f5ea3470a8617fc388c72b062c7136efd7e
4
reference_url https://github.com/ronf/asyncssh/security/advisories/GHSA-cfc2-wr2v-gxm5
reference_id
reference_type
scores
0
value 5.9
scoring_system cvssv3.1
scoring_elements CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
url https://github.com/ronf/asyncssh/security/advisories/GHSA-cfc2-wr2v-gxm5
5
reference_url https://lists.debian.org/debian-lts-announce/2024/09/msg00042.html
reference_id
reference_type
scores
url https://lists.debian.org/debian-lts-announce/2024/09/msg00042.html
6
reference_url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ME34ROZWMDK5KLMZKTSA422XVJZ7IMTE
reference_id
reference_type
scores
url https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/ME34ROZWMDK5KLMZKTSA422XVJZ7IMTE
7
reference_url https://security.netapp.com/advisory/ntap-20231222-0001
reference_id
reference_type
scores
url https://security.netapp.com/advisory/ntap-20231222-0001
8
reference_url https://www.terrapin-attack.com
reference_id
reference_type
scores
url https://www.terrapin-attack.com
9
reference_url https://nvd.nist.gov/vuln/detail/CVE-2023-46445
reference_id CVE-2023-46445
reference_type
scores
url https://nvd.nist.gov/vuln/detail/CVE-2023-46445
10
reference_url https://github.com/advisories/GHSA-cfc2-wr2v-gxm5
reference_id GHSA-cfc2-wr2v-gxm5
reference_type
scores
url https://github.com/advisories/GHSA-cfc2-wr2v-gxm5
fixed_packages
0
url pkg:pypi/asyncssh@2.14.1
purl pkg:pypi/asyncssh@2.14.1
is_vulnerable true
affected_by_vulnerabilities
0
vulnerability VCID-gqsu-zfqa-k7fj
resource_url http://public2.vulnerablecode.io/packages/pkg:pypi/asyncssh@2.14.1
aliases CVE-2023-46445, GHSA-cfc2-wr2v-gxm5, PYSEC-2023-237
risk_score null
exploitability null
weighted_severity null
resource_url http://public2.vulnerablecode.io/vulnerabilities/VCID-dpm4-k8e6-rfbp
Risk_scorenull
Resource_urlhttp://public2.vulnerablecode.io/packages/pkg:pypi/asyncssh@2.14.1