CVE-2023-27534: Path Traversal

Published Mar 16, 2023
·
Updated

A path traversal vulnerability exists in curl <8.0.0 SFTP implementation causes the tilde (~) character to be wrongly replaced when used as a prefix in the first path element in addition to its intended use as the first element to indicate a path relative to the user's home directory. Attackers can exploit this flaw to bypass filtering or execute arbitrary code by crafting a path like /~2/foo while accessing a server with a specific user.

Other sources

A path traversal vulnerability exists in curl <8.0.0 SFTP implementation causes the tilde (~) character to be wrongly replaced when used as a prefix in the first path element, in addition to its intended use as the first element to indicate a path relative to the user's home directory. Attackers can exploit this flaw to bypass filtering or execute arbitrary code by crafting a path like /~2/foo while accessing a server with a specific user.

cURL libcurl could allow a remote attacker to obtain sensitive information, caused by a SFTP path ~ resolving discrepancy flaw. By sending a specially crafted request using a tilde (~) character, an attacker could exploit this vulnerability to obtain sensitive information from other directory, and use this information to launch further attacks against the affected system.

IBM

curl supports SFTP transfers. curl's SFTP implementation offers a special feature in the path component of URLs: a tilde (~) character as the first path element in the path to denotes a path relative to the user's home directory. This is supported because of wording in the once proposed to-become RFC draft that was to dictate how SFTP URLs work. Due to a bug, the handling of the tilde in SFTP path did however not only replace it when it is used stand-alone as the first path element but also wrongly when used as a mere prefix in the first element. Using a path like /~2/foo when accessing a server using the user dan (with home directory /home/dan) would then quite suprisingly access the file /home/dan2/foo. This can be taken advantage of to circumvent filtering or worse.

Red Hat

Affected Software

34 affected componentsFixes available
IBM IBM® Engineering Requirements Management DOORS<=9.7.2.7
IBM IBM® Engineering Requirements Management DOORS Web Access<=9.7.2.7
haxx curl>=7.18.0<=7.88.1
Fedoraproject Fedora=36
NetApp Active Iq Unified Manager Vmware Vsphere
Broadcom Brocade Fabric Operating System Firmware
NetApp H300s Firmware
NetApp H300s
NetApp H500s Firmware
NetApp H500s
NetApp H700s Firmware
NetApp H700s
NetApp H410s Firmware
NetApp H410s
All of the following
NetApp H300s Firmware
NetApp H300s
All of the following
NetApp H500s Firmware
NetApp H500s
All of the following
NetApp H700s Firmware
NetApp H700s
All of the following
NetApp H410s Firmware
NetApp H410s
Splunk Universal Forwarder>=8.2.0<8.2.12
Splunk Universal Forwarder>=9.0.0<9.0.6
Splunk Universal Forwarder=9.1.0
redhat/curl<8.0.0
8.0.0
Microsoft azl3 cmake 3.21.4-10
Microsoft azl3 cmake 3.28.2-1
Microsoft azl3 tensorflow 2.16.1-1
Microsoft cbl2 cmake 3.21.4-12
Microsoft cbl2 mysql 8.0.34-1
Microsoft cbl2 rust 1.72.0-2
Microsoft azl3 tensorflow 2.11.1-1
Microsoft cbl2 curl 8.0.1-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/curl to a version that resolves this vulnerability.

    Fixed in 8.0.0

Event History

Mar 16, 2023
Data Sourced
via Red Hat·02:59 PM
DescriptionSeverityAffected Software
Mar 30, 2023
CVE Published
via MITRE·12:00 AM
Data Sourced
via MITRE·12:00 AM
DescriptionWeakness
Apr 1, 2023
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverityWeakness

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-27534?

The severity of CVE-2023-27534 is high with a severity value of 8.8.

2

How does the path traversal vulnerability in CVE-2023-27534 impact curl <8.0.0 SFTP implementation?

The path traversal vulnerability in CVE-2023-27534 allows attackers to wrongly replace the tilde (~) character when used as a prefix in the first path element, causing potential unauthorized access to files outside the intended directory.

3

Which software versions are affected by CVE-2023-27534?

The curl versions prior to 8.0.0 and between 7.18.0 and 7.88.1 are affected by CVE-2023-27534.

4

How can I fix the path traversal vulnerability in curl <8.0.0?

To fix the path traversal vulnerability in curl <8.0.0, you should update curl to version 8.0.0 or higher.

5

Where can I find more information about CVE-2023-27534?

You can find more information about CVE-2023-27534 in the provided references: [link1](https://datatracker.ietf.org/doc/html/draft-ietf-secsh-scp-sftp-ssh-uri-04), [link2](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2180434), [link3](https://bugzilla.redhat.com/show_bug.cgi/show_bug.cgi?id=2180436).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203