CVE-2023-27535
JSON

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 packageVersionsReported by
https://github.com/curl/curlFixed in 8.0.0CVE List
https://github.com/curl/curl.gitfrom 7.13.0 before 8.0.0, from 177dbc7be07125582ddb7416dba7140b88ab9f62 before 8f4608468b890dce2dad9f91d5607ee7e9c1aba1curl
haxx libcurlfrom 7.13.0 up to 7.88.1NVD
fedoraproject fedora36NVD
debian debian_linux10.0NVD
netapp active_iq_unified_managerNot specifiedNVD
netapp ontap_9Not specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD
netapp h410s_firmwareNot specifiedNVD
splunk universal_forwarderfrom 8.2.0 before 8.2.12, from 9.0.0 before 9.0.6, 9.1.0NVD

All scores

CISA-ADP5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
curlmedium rating
NVD5.9medium CVSS:3.1CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-287CWE-305

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial.

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

Sources

SourceRecordLicence
CVE ListCVE-2023-27535 changed 2026-10-14CVE Terms of Use
curlCURL-CVE-2023-27535 changed 2026-10-25MIT
NVDCVE-2023-27535 changed 2026-10-24Public domain