Vulnerability · Published Mar 30, 2023 · Assigned by hackerone
CVE-2023-27534
High 8.8
In plain English
A high-severity path traversal in https://github.com/curl/curl. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 2.4% (higher than 84% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:9 | curl | 7.76.1-26.el9 | ALSA-2023:6679 |
| AlmaLinux:9 | curl-minimal | 7.76.1-26.el9 | ALSA-2023:6679 |
| AlmaLinux:9 | libcurl | 7.76.1-26.el9 | ALSA-2023:6679 |
| AlmaLinux:9 | libcurl-devel | 7.76.1-26.el9 | ALSA-2023:6679 |
| AlmaLinux:9 | libcurl-minimal | 7.76.1-26.el9 | ALSA-2023:6679 |
| Alpine:v3.20 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27534 |
| Alpine:v3.21 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27534 |
| Alpine:v3.22 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27534 |
| Alpine:v3.23 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27534 |
| Alpine:v3.24 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27534 |
| Debian:12 | curl | 7.88.1-7 | DEBIAN-CVE-2023-27534 |
| Debian:13 | curl | 7.88.1-7 | DEBIAN-CVE-2023-27534 |
| Debian:14 | curl | 7.88.1-7 | DEBIAN-CVE-2023-27534 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.10 | UBUNTU-CVE-2023-27534 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.10 | USN-5964-1 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | Fixed in 8.0.0 |
Weakness: CWE-22 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
References
- https://hackerone.com/reports/1892351
- FEDORA-2023-7e7414e64d vendor-advisory
- https://security.netapp.com/advisory/ntap-20230420-0012/
- GLSA-202310-12 vendor-advisory
- [debian-lts-announce] 20240317 [SECURITY] [DLA 3763-1] curl security update mailing-list
- https://cert-portal.siemens.com/productcert/html/ssa-398330.html
- https://cert-portal.siemens.com/productcert/html/ssa-806742.html
- https://cert-portal.siemens.com/productcert/html/ssa-943925.html