CVE-2023-27534
Reported by hackerone · Published March 30, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libcurl-devel | Amazon Linux | 8.0.1-1.amzn2023, 8.0.1-1.amzn2.0.1 |
| curl | haxx | 7.88.1 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | Fixed in 8.0.0 |
| amazon:2 | libcurl-devel | 0 |
| amazon:2023 | libcurl-devel | 0 |
| n/a | https://github.com/curl/curl | 8.0.0 |
| amazon:2 | libcurl | 0 |
| amazon:2023 | libcurl | 0 |
| alpine | curl | 0, 0, 0 |
| amazon:2023 | libcurl-minimal | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | curl | 0 |
| Siemens | SIMATIC S7-1500 CPU 1518F-4 PN/DP MFP | 3.1.0 |
| amazon:2023 | curl-minimal | 0 |
| Siemens | SIPLUS S7-1500 CPU 1518-4 PN/DP MFP | 3.1.0 |
| amazon:2 | curl | 0 |
Timeline
- Mar 20, 2023 PoC Published (3 in total, the first dated here)
- Mar 30, 2023 CVE Published
- Mar 31, 2023 EPSS Score (30 in total, the first dated here)
- Jun 2, 2026 Security Advisory (16 in total, the first dated here)
- Jul 2, 2026 Distribution Patch (13 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-27534
vulnetix vdb fixes CVE-2023-27534
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-27534/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2023-7e7414e64d vendor-advisory
- 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 url
- https://cert-portal.siemens.com/productcert/html/ssa-806742.html url
- https://cert-portal.siemens.com/productcert/html/ssa-943925.html url