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.
https://www.cisa.gov/news-events/ics-advisories/icsa-24-165-06
https://support.apple.com/kb/HT213845
https://support.apple.com/kb/HT213844
https://support.apple.com/kb/HT213843
https://security.netapp.com/advisory/ntap-20230609-0009/
https://security.gentoo.org/glsa/202310-12
https://hackerone.com/reports/1913733
http://seclists.org/fulldisclosure/2023/Jul/52