Intel

AIKIDO-2026-638641

libcurl is vulnerable to Improper Certificate Validation

Improper Certificate ValidationCVE-2026-12064 Published 6 days ago

37

Low Risk

This Affects:

C++libcurl
7.81.0 - 8.20.0
Fixed in 8.21.0
Are you affected? Scan for Free

TL;DR

The curl command line tool leaves SSH host options unset when a URL has no scheme and --proto-default is sftp or scp. Those options include CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 and CURLOPT_SSH_KNOWNHOSTS. libcurl still connects with that default protocol, so the transfer accepts an unverified SSH host. The fix sets the SSH host options when the default protocol is sftp or scp.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range and you run the curl tool with --proto-default set to sftp or scp on a URL with no scheme.

Background info

libcurl is vulnerable to Improper Certificate Validation in versions 7.81.0 - 8.20.0.

How to fix this

Upgrade the curl.curl library to the patch version.

Are You Affected?

Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.

Free. No credit card required.

Aikido Platform