CVE-2023-27538
Description
CVE-2023-27538: libcurl before 8.0.0 fails to check SSH host and key options when reusing connections, enabling authentication bypass.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
CVE-2023-27538: libcurl before 8.0.0 fails to check SSH host and key options when reusing connections, enabling authentication bypass.
Vulnerability
In libcurl prior to version 8.0.0, the connection reuse logic omits two SSH-specific settings from the configuration comparison: the SSH_HOST_PUBLIC_KEY_MD5 and SSH_KNOWNHOSTS options. This flaw allows a previously established SSH session to be reused for a new transfer even when these named options have been changed, which should have prevented such reuse. The affected versions are all libcurl releases before 8.0.0. [1]
Exploitation
An attacker who can influence the transfer parameters (e.g., by providing a crafted URL or by controlling the application's configuration) can exploit this omission. The attacker does not need credentials for the SSH endpoint if the reused connection was authenticated with different credentials or to a different host. The exact steps involve: (1) establishing an initial SSH connection with a certain set of options, (2) initiating a second transfer where the SSH host key or known hosts file are modified, and (3) libcurl mistakenly reusing the first connection without verifying the new SSH options, thereby bypassing authentication. [1]
Impact
Successful exploitation leads to authentication bypass. The attacker can leverage an existing SSH session that may have been set up with different credentials or to a different server than intended. This could enable unauthorized access to the target SSH service, potentially leading to information disclosure, data manipulation, or lateral movement. The privilege level attained corresponds to the authenticated privileges of the reused session. [1]
Mitigation
A fix is available in libcurl version 8.0.0 and later. The Gentoo security advisory [1] recommends upgrading to net-misc/curl-8.3.0-r2 or later. No workaround is known. Users should update libcurl as soon as possible.
AI Insight generated on May 25, 2026. Synthesized from this CVE's description and the cited reference URLs; citations are validated against the source bundle.
Affected products
26- osv-coords25 versionspkg:rpm/almalinux/curlpkg:rpm/almalinux/curl-minimalpkg:rpm/almalinux/libcurlpkg:rpm/almalinux/libcurl-develpkg:rpm/almalinux/libcurl-minimalpkg:rpm/opensuse/curl&distro=openSUSE%20Leap%2015.4pkg:rpm/opensuse/curl&distro=openSUSE%20Leap%20Micro%205.3pkg:rpm/opensuse/curl&distro=openSUSE%20Tumbleweedpkg:rpm/suse/curl&distro=SUSE%20Enterprise%20Storage%206pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20High%20Performance%20Computing%2015%20SP1-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.2pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Micro%205.3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Module%20for%20Basesystem%2015%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Real%20Time%2015%20SP3pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-ESPOSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP4-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%2015%20SP1-LTSSpkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP4pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2015%20SP1pkg:rpm/suse/curl&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP5pkg:rpm/suse/curl&distro=SUSE%20OpenStack%20Cloud%209pkg:rpm/suse/curl&distro=SUSE%20OpenStack%20Cloud%20Crowbar%209
< 7.76.1-26.el9+ 24 more
- (no CPE)range: < 7.76.1-26.el9
- (no CPE)range: < 7.76.1-26.el9
- (no CPE)range: < 7.76.1-26.el9
- (no CPE)range: < 7.76.1-26.el9
- (no CPE)range: < 7.76.1-26.el9
- (no CPE)range: < 7.79.1-150400.5.18.1
- (no CPE)range: < 7.79.1-150400.5.18.1
- (no CPE)range: < 8.0.1-1.1
- (no CPE)range: < 7.60.0-150000.51.1
- (no CPE)range: < 7.60.0-150000.51.1
- (no CPE)range: < 7.66.0-150200.4.52.1
- (no CPE)range: < 7.66.0-150200.4.52.1
- (no CPE)range: < 7.79.1-150400.5.18.1
- (no CPE)range: < 7.79.1-150400.5.18.1
- (no CPE)range: < 7.66.0-150200.4.52.1
- (no CPE)range: < 7.60.0-4.56.1
- (no CPE)range: < 7.60.0-4.56.1
- (no CPE)range: < 7.60.0-11.60.1
- (no CPE)range: < 7.60.0-150000.51.1
- (no CPE)range: < 7.60.0-4.56.1
- (no CPE)range: < 7.60.0-11.60.1
- (no CPE)range: < 7.60.0-150000.51.1
- (no CPE)range: < 7.60.0-11.60.1
- (no CPE)range: < 7.60.0-4.56.1
- (no CPE)range: < 7.60.0-4.56.1
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
4- security.gentoo.org/glsa/202310-12mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2023/04/msg00025.htmlmitremailing-list
- hackerone.com/reports/1898475mitre
- security.netapp.com/advisory/ntap-20230420-0010/mitre
News mentions
0No linked articles in our index yet.