All reports
Medium

curl: use after free in SSH sha256 fingerprint check

Affected versions

Affected versions
Unknown
Fixed version
Not reported

Exploitation

CVE-2023-28319

Probability of exploitation in the next 30 days: 2.49%

FIRST EPSS · 2026-11-23

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.

A use-after-free flaw was found in the Curl package. This flaw risks inserting sensitive heap-based data into the error message that users might see or is otherwise leaked and revealed.