CVE-2023-27534
Description
A path traversal vulnerability in curl's SFTP implementation before 8.0.0 allows attackers to bypass filtering or execute arbitrary code via crafted paths using the tilde character.
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
A path traversal vulnerability in curl's SFTP implementation before 8.0.0 allows attackers to bypass filtering or execute arbitrary code via crafted paths using the tilde character.
Vulnerability
A path traversal vulnerability exists in curl's SFTP implementation in versions prior to 8.0.0. The tilde (~) character is incorrectly replaced when used as a prefix in the first path element, beyond its intended use to indicate a path relative to the user's home directory. This allows an attacker to craft a path like /~2/foo while accessing a server with a specific user, leading to unintended directory traversal.
Exploitation
An attacker needs network access to an SFTP server and the ability to supply a crafted path to curl. By constructing a path such as /~2/foo, the tilde expansion is misapplied, causing curl to resolve the path to an unexpected location. No authentication is required beyond the normal SFTP session credentials.
Impact
Successful exploitation can bypass path filtering mechanisms or lead to arbitrary code execution, depending on how the resolved path is used by the application or server. The attacker may gain access to files outside the intended directory or execute commands with the privileges of the SFTP user.
Mitigation
The vulnerability is fixed in curl 8.0.0 and later. Users should upgrade to at least curl 8.3.0-r2 as recommended by the Gentoo security advisory [2]. No workaround is available [2].
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
30- osv-coords29 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%2012%20SP5-LTSSpkg: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%20Server%20LTSS%20Extended%20Security%2012%20SP5pkg: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%209pkg:rpm/suse/nghttp2&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP5-LTSSpkg:rpm/suse/nghttp2&distro=SUSE%20Linux%20Enterprise%20Server%20LTSS%20Extended%20Security%2012%20SP5
< 7.76.1-26.el9+ 28 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: < 8.0.1-11.117.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: < 8.0.1-11.117.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
- (no CPE)range: < 1.39.2-3.20.1
- (no CPE)range: < 1.39.2-3.20.1
Patches
0No patches discovered yet.
Vulnerability mechanics
No source-code context for this CVE — mechanics is only generated when we can read the actual fix diff. Without that, the four sections (root cause, attack vector, affected code, fix) would be speculation rather than analysis.
References
5- lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36NBD5YLJXXEDZLDGNFCERWRYJQ6LAQW/mitrevendor-advisory
- security.gentoo.org/glsa/202310-12mitrevendor-advisory
- lists.debian.org/debian-lts-announce/2024/03/msg00016.htmlmitremailing-list
- hackerone.com/reports/1892351mitre
- security.netapp.com/advisory/ntap-20230420-0012/mitre
News mentions
0No linked articles in our index yet.