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 package | Versions | Reported by |
|---|---|---|
| https://github.com/curl/curl | Fixed in 8.1.0 | CVE List |
| https://github.com/curl/curl.git | from 7.81.0 before 8.1.0, from 3467e89bb97e6c87c77e82a046c59cb4b2d29a74 before 8e21b1a05f3c0ee098dbcb6c3d84cb61f102a122 | curl |
| haxx curl | before 8.1.0 | NVD |
| apple macos | from 11.0 before 11.7.9, from 12.0 before 12.6.8, from 13.0 before 13.5 | NVD |
| netapp clustered_data_ontap | Not specified | NVD |
| netapp ontap_antivirus_connector | 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 |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| curl | medium rating | |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
Classification
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
| https://hackerone.com/reports/1913733 | exploit, patch, third-party-advisory | |
| https://security.netapp.com/advisory/ntap-20230609-0009/ | third-party-advisory | |
| https://support.apple.com/kb/HT213843 | third-party-advisory | |
| https://support.apple.com/kb/HT213844 | third-party-advisory | |
| https://support.apple.com/kb/HT213845 | third-party-advisory | |
| http://seclists.org/fulldisclosure/2023/Jul/52 | mailing-list, third-party-advisory | |
| http://seclists.org/fulldisclosure/2023/Jul/48 | mailing-list, third-party-advisory | |
| http://seclists.org/fulldisclosure/2023/Jul/47 | mailing-list, third-party-advisory | |
| https://security.gentoo.org/glsa/202310-12 | third-party-advisory, vendor-advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-28319 changed 2025-01-15 | CVE Terms of Use |
| curl | CURL-CVE-2023-28319 changed 2026-10-25 | MIT |
| NVD | CVE-2023-28319 changed 2026-10-23 | Public domain |