Vulnerability · Published Mar 30, 2023 · Assigned by hackerone
CVE-2023-27535
Medium 5.9
In plain English
A medium-severity security flaw 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 1.8% (higher than 79% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
An authentication bypass vulnerability exists in libcurl <8.0.0 in the FTP connection reuse feature that can result in wrong credentials being used during subsequent transfers. Previously created connections are kept in a connection pool for reuse if they match the current setup. However, certain FTP settings such as CURLOPT_FTP_ACCOUNT, CURLOPT_FTP_ALTERNATIVE_TO_USER, CURLOPT_FTP_SSL_CCC, and CURLOPT_USE_SSL were not included in the configuration match checks, causing them to match too easily. This could lead to libcurl using the wrong credentials when performing a transfer, potentially allowing unauthorized access to sensitive information.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| AlmaLinux:8 | curl | 7.61.1-30.el8_8.2 | ALSA-2023:3106 |
| AlmaLinux:9 | curl | 7.76.1-23.el9_2.1 | ALSA-2023:2650 |
| AlmaLinux:9 | curl-minimal | 7.76.1-23.el9_2.1 | ALSA-2023:2650 |
| AlmaLinux:8 | libcurl | 7.61.1-30.el8_8.2 | ALSA-2023:3106 |
| AlmaLinux:9 | libcurl | 7.76.1-23.el9_2.1 | ALSA-2023:2650 |
| AlmaLinux:8 | libcurl-devel | 7.61.1-30.el8_8.2 | ALSA-2023:3106 |
| AlmaLinux:9 | libcurl-devel | 7.76.1-23.el9_2.1 | ALSA-2023:2650 |
| AlmaLinux:8 | libcurl-minimal | 7.61.1-30.el8_8.2 | ALSA-2023:3106 |
| AlmaLinux:9 | libcurl-minimal | 7.76.1-23.el9_2.1 | ALSA-2023:2650 |
| Alpine:v3.20 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27535 |
| Alpine:v3.21 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27535 |
| Alpine:v3.22 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27535 |
| Alpine:v3.23 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27535 |
| Alpine:v3.24 | curl | 8.0.0-r0 | ALPINE-CVE-2023-27535 |
| Debian:12 | curl | 7.88.1-7 | DEBIAN-CVE-2023-27535 |
| Debian:13 | curl | 7.88.1-7 | DEBIAN-CVE-2023-27535 |
| Debian:14 | curl | 7.88.1-7 | DEBIAN-CVE-2023-27535 |
| Rocky Linux:8 | curl | 0:7.61.1-30.el8_8.2 | RLSA-2023:3106 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.10 | UBUNTU-CVE-2023-27535 |
| 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-305 · Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://hackerone.com/reports/1892780
- FEDORA-2023-7e7414e64d vendor-advisory
- https://security.netapp.com/advisory/ntap-20230420-0010/
- [debian-lts-announce] 20230421 [SECURITY] [DLA 3398-1] curl security update mailing-list
- GLSA-202310-12 vendor-advisory
- 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