5.9medium
FTP too eager connection reuse
- Severity
- 5.9medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 1.80% (higher than 79% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- hackerone
- Also known as
- CURL-CVE-2023-27535
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
| Product or package | Versions | Reported by |
|---|---|---|
| https://github.com/curl/curl | Fixed in 8.0.0 | CVE List |
| https://github.com/curl/curl.git | from 7.13.0 before 8.0.0, from 177dbc7be07125582ddb7416dba7140b88ab9f62 before 8f4608468b890dce2dad9f91d5607ee7e9c1aba1 | curl |
| haxx libcurl | from 7.13.0 up to 7.88.1 | NVD |
| fedoraproject fedora | 36 | NVD |
| debian debian_linux | 10.0 | NVD |
| netapp active_iq_unified_manager | Not specified | NVD |
| netapp ontap_9 | Not specified | NVD |
| netapp h300s_firmware | Not specified | NVD |
| netapp h500s_firmware | Not specified | NVD |
| netapp h700s_firmware | Not specified | NVD |
| netapp h410s_firmware | Not specified | NVD |
| splunk universal_forwarder | from 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0 | NVD |
All scores
| CISA-ADP | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| curl | medium rating | |
| NVD | 5.9medium CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
What each source says
CVE List
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.
curl
libcurl would reuse a previously created FTP connection even when one or more options had been changed that could have made the effective user a different one, thus leading to doing the second transfer with the wrong credentials.
libcurl keeps previously used connections in a connection pool for subsequent
transfers to reuse if one of them matches the setup. However, several FTP
settings were left out from the configuration match checks, making them match
too easily. The settings in questions are CURLOPT_FTP_ACCOUNT,
CURLOPT_FTP_ALTERNATIVE_TO_USER, CURLOPT_FTP_SSL_CCC and CURLOPT_USE_SSL
level.
NVD (es)
Existe una vulnerabilidad de omisión de autenticación en libcurl anterior a 8.0.0 en la función de reutilización de conexiones FTP que puede resultar en el uso de credenciales incorrectas durante transferencias posteriores. Las conexiones creadas previamente se mantienen en un grupo de conexiones para su reutilización si coinciden con la configuración actual. Sin embargo, ciertas configuraciones FTP como CURLOPT_FTP_ACCOUNT, CURLOPT_FTP_ALTERNATIVE_TO_USER, CURLOPT_FTP_SSL_CCC y CURLOPT_USE_SSL no se incluyeron en las comprobaciones de coincidencia de configuración, lo que provocó que coincidieran con demasiada facilidad. Esto podría llevar a libcurl a usar las credenciales incorrectas al realizar una transferencia, lo que podría permitir el acceso no autorizado a información sensible.
References
| https://hackerone.com/reports/1892780 | exploit, third-party-advisory | |
| https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/36NBD5YLJXXEDZLDGNFCERWRYJQ6LAQW/ | mailing-list, third-party-advisory, vendor-advisory | |
| https://security.netapp.com/advisory/ntap-20230420-0010/ | third-party-advisory | |
| https://lists.debian.org/debian-lts-announce/2023/04/msg00025.html | mailing-list, third-party-advisory | |
| https://security.gentoo.org/glsa/202310-12 | third-party-advisory, 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 | ||
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-27535 changed 2026-10-14 | CVE Terms of Use |
| curl | CURL-CVE-2023-27535 changed 2026-10-25 | MIT |
| NVD | CVE-2023-27535 changed 2026-10-24 | Public domain |