CVE-2023-27534

curl: SFTP path ~ resolving discrepancy

Published Mar 30, 2023 CVSS 3.1 · 8.8 High EPSS 2.4% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Debian DLA Debian DLA DLA-3763-1 curl security update
Debian DLA Debian DLA DLA-4213-1 curl regression update
EUVD EUVD EUVD-2023-31289 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.
Ubuntu USN Ubuntu USN USN-5964-1 curl vulnerabilities
History