CVE-2023-28319
Reported by hackerone · Published May 26, 2023
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.
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libcurl-devel | Amazon Linux | 8.2.1-1.amzn2.0.2, 8.0.1-1.amzn2023.0.1 |
| curl-minimal | Amazon Linux | 8.0.1-1.amzn2023.0.1 |
| curl | Alpine | 8.1.0-r0 |
| libcurl-minimal | Amazon Linux | 8.0.1-1.amzn2023.0.1 |
| libcurl | Amazon Linux | 8.2.1-1.amzn2.0.2, 8.0.1-1.amzn2023.0.1 |
| curl | Amazon Linux | 8.0.1-1.amzn2023.0.1 |
| curl | haxx | 8.1.0 |
| macos | apple | 13.5, 12.6.8, 11.7.9 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | https://github.com/curl/curl | Fixed in 8.1.0 |
| amazon:2 | libcurl-devel | 0 |
| amazon:2023 | curl-minimal | 0 |
| alpine | curl | 0 |
| amazon:2023 | libcurl-minimal | 0 |
| amazon:2023 | libcurl | 0 |
| amazon:2023 | libcurl-devel | 0 |
| amazon:2 | libcurl | 0 |
| amazon:2023 | curl | 0 |
| n/a | https://github.com/curl/curl | 8.1.0 |
| amazon:2 | curl | 0 |
Timeline
- May 24, 2023 PoC Published (2 in total, the first dated here)
- May 26, 2023 CVE Published
- May 27, 2023 EPSS Score (30 in total, the first dated here)
- Mar 10, 2026 Security Advisory (21 in total, the first dated here)
- Nov 22, 2026 Distribution Patch (17 in total, the first dated here)
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2023-28319
vulnetix vdb fixes CVE-2023-28319
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2023-28319/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- 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