Critical Vulnerabilities in python-asyncssh: Potential SSH Session Compromise
Summary
USN-7108-2: python-asyncssh vulnerabilities. Affects python-asyncssh versions < 1.11.1-1ubuntu0.1~esm2. Fixed in 1.11.1-1ubuntu0.1~esm2. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
python-asyncssh is a Python library that provides an implementation of the SSH protocol, allowing secure communication over unsecured networks. It is widely used for remote server management and secure file transfers. However, recent vulnerabilities have been identified that could allow attackers to exploit weaknesses in the library's handling of authentication messages, potentially compromising SSH sessions.
Vulnerability Detail
The vulnerabilities identified in python-asyncssh stem from improper handling of extension info messages and user authentication request messages. Discovered by researchers Fabian Bäumer, Marcus Brinkmann, and Jörg Schwenk, these issues could allow an attacker to intercept communications and downgrade authentication algorithms (CVE-2023-46445) or manipulate SSH client sessions through packet injection (CVE-2023-46446). This could lead to unauthorized access and control over remote systems.
How To Fix
Minimum fixed version
1.11.1-1ubuntu0.1~esm2
This is the first release that contains the fix.
sudo apt-get install --only-upgrade python-asyncssh
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
As a temporary measure, users should consider limiting access to SSH services and implementing additional security measures such as using VPNs or firewalls to restrict unauthorized access while awaiting the patch.
Conclusion
The vulnerabilities in python-asyncssh pose significant risks to secure communications over SSH. It is crucial for users to update to the patched version to mitigate these risks and ensure the integrity of their systems. Utilizing tools like Vulert can help monitor and manage vulnerabilities effectively.
See every vulnerability recorded for python-asyncssh →
FAQ
The main vulnerabilities involve improper handling of extension info messages and user authentication requests, which could allow attackers to downgrade authentication methods or inject malicious packets.
You can use Vulert, which monitors open-source vulnerabilities in real-time. By uploading your manifest file like package-lock.json to the Vulert playground, you can check for vulnerabilities without any signup.
Failing to address these vulnerabilities could lead to unauthorized access to SSH sessions, allowing attackers to control remote systems and potentially compromise sensitive data.
Yes, temporarily limit SSH access and use additional security measures such as VPNs or firewalls to protect against unauthorized access.
Detailed information about the vulnerabilities can be found in the official advisory linked in the vulnerability report, as well as on security-focused platforms.
References
Related vulnerabilities
Recent vulnerabilities recorded for python-asyncssh.