CVE-2023-28319
JSON

7.5high

UAF in SSH sha256 fingerprint check

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
2.28% (higher than 84% of CVEs)
Published
Last changed
Assigned by
hackerone
Also known as
CURL-CVE-2023-28319

Description

A use after free vulnerability exists in curl <v8.1.0 in the way libcurl offers a feature to verify an SSH server's public key using a SHA 256 hash. When this check fails, libcurl would free the memory for the fingerprint before it returns an error message containing the (now freed) hash. This flaw risks inserting sensitive heap-based data into the error message that might be shown to users or otherwise get leaked and revealed.

Affected

Product or packageVersionsReported by
https://github.com/curl/curlFixed in 8.1.0CVE List
https://github.com/curl/curl.gitfrom 7.81.0 before 8.1.0, from 3467e89bb97e6c87c77e82a046c59cb4b2d29a74 before 8e21b1a05f3c0ee098dbcb6c3d84cb61f102a122curl
haxx curlbefore 8.1.0NVD
apple macosfrom 11.0 before 11.7.9, from 12.0 before 12.6.8, from 13.0 before 13.5NVD
netapp clustered_data_ontapNot specifiedNVD
netapp ontap_antivirus_connectorNot specifiedNVD
netapp h300s_firmwareNot specifiedNVD
netapp h500s_firmwareNot specifiedNVD
netapp h700s_firmwareNot specifiedNVD
netapp h410s_firmwareNot specifiedNVD

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
curlmedium rating
NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Classification

CWE-416

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

What each source says

CVE List

A use after free vulnerability exists in curl <v8.1.0 in the way libcurl offers a feature to verify an SSH server's public key using a SHA 256 hash. When this check fails, libcurl would free the memory for the fingerprint before it returns an error message containing the (now freed) hash. This flaw risks inserting sensitive heap-based data into the error message that might be shown to users or otherwise get leaked and revealed.

curl

libcurl offers a feature to verify an SSH server's public key using a SHA 256 hash. When this check fails, libcurl would free the memory for the fingerprint before it returns an error message containing the (now freed) hash.

This flaw risks inserting sensitive heap-based data into the error message that might be shown to users or otherwise get leaked and revealed.

NVD (es)

Una vulnerabilidad de uso después de liberación existe en curl anterior a v8.1.0 en la forma en que libcurl ofrece una característica para verificar la clave pública de un servidor SSH utilizando un hash SHA 256. Cuando esta verificación falla, libcurl liberaría la memoria para la huella digital antes de que devuelva un mensaje de error que contiene el hash (ahora liberado). Este fallo conlleva el riesgo de insertar datos sensibles basados en el heap en el mensaje de error que podría mostrarse a los usuarios o de otro modo filtrarse y revelarse.

References

Sources

SourceRecordLicence
CVE ListCVE-2023-28319 changed 2025-01-15CVE Terms of Use
curlCURL-CVE-2023-28319 changed 2026-10-25MIT
NVDCVE-2023-28319 changed 2026-10-23Public domain