Vulnerability · Published May 26, 2023 · Assigned by hackerone
CVE-2023-28319
High 7.5
In plain English
A high-severity use-after-free 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 2.5% (higher than 85% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official 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 packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | curl | 8.1.0-r0 | ALPINE-CVE-2023-28319 |
| Alpine:v3.21 | curl | 8.1.0-r0 | ALPINE-CVE-2023-28319 |
| Alpine:v3.22 | curl | 8.1.0-r0 | ALPINE-CVE-2023-28319 |
| Alpine:v3.23 | curl | 8.1.0-r0 | ALPINE-CVE-2023-28319 |
| Alpine:v3.24 | curl | 8.1.0-r0 | ALPINE-CVE-2023-28319 |
| Debian:12 | curl | 7.88.1-10 | DEBIAN-CVE-2023-28319 |
| Debian:13 | curl | 7.88.1-10 | DEBIAN-CVE-2023-28319 |
| Debian:14 | curl | 7.88.1-10 | DEBIAN-CVE-2023-28319 |
| Ubuntu:22.04:LTS | curl | 7.81.0-1ubuntu1.20 | UBUNTU-CVE-2023-28319 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | Fixed in 8.1.0 |
Weakness: CWE-416 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
References
- https://hackerone.com/reports/1913733
- https://security.netapp.com/advisory/ntap-20230609-0009/
- https://support.apple.com/kb/HT213843
- https://support.apple.com/kb/HT213844
- https://support.apple.com/kb/HT213845
- 20230725 APPLE-SA-2023-07-24-6 macOS Big Sur 11.7.9 mailing-list
- 20230725 APPLE-SA-2023-07-24-5 macOS Monterey 12.6.8 mailing-list
- 20230725 APPLE-SA-2023-07-24-4 macOS Ventura 13.5 mailing-list
- GLSA-202310-12 vendor-advisory