CVE-2023-27534
Published: 20 March 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.
Priority
Status
Package | Release | Status |
---|---|---|
curl Launchpad, Ubuntu, Debian |
bionic |
Released
(7.58.0-2ubuntu3.24)
|
focal |
Released
(7.68.0-1ubuntu2.18)
|
|
jammy |
Released
(7.81.0-1ubuntu1.10)
|
|
kinetic |
Released
(7.85.0-1ubuntu0.5)
|
|
lunar |
Released
(7.88.1-6ubuntu2)
|
|
trusty |
Not vulnerable
(code not present)
|
|
upstream |
Pending
(8.0.0)
|
|
xenial |
Not vulnerable
(code not present)
|
|
Patches: upstream: https://github.com/curl/curl/commit/4e2b52b5f7a3bf50a |
Severity score breakdown
Parameter | Value |
---|---|
Base score | 8.8 |
Attack vector | Network |
Attack complexity | Low |
Privileges required | Low |
User interaction | None |
Scope | Unchanged |
Confidentiality | High |
Integrity impact | High |
Availability impact | High |
Vector | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |