CVE Catalog

CVE-2026-9547

HighCVSS 7.4
Published: Updated: Translated: NVD NIST

Exploitation Probability (EPSS)

Low risk
0.38%

30th percentile - higher than 30% of all known CVEs

Summary

A vulnerability in libcurl allows accepting an untrusted server during SCP or SFTP transfers when using the CURLOPT_SSH_KEYFUNCTION callback. The server can present a host key type different from the one recorded in the known_hosts file, and the callback mechanism fails to enforce rejection, allowing the connection to succeed without warning.

Risk Assessment

The risk involves a potential man-in-the-middle attack where an attacker can impersonate a trusted server, leading to interception or modification of transmitted data.

Recommendation

It is recommended to immediately update libcurl to a version that fixes this vulnerability. Until updated, avoid using CURLOPT_SSH_KEYFUNCTION with SCP and SFTP protocols or manually verify host keys.

Other vulnerabilities in libcurl

See all
Original NVD description (English source)

When a libcurl-based application performs transfers via `SCP://` or `SFTP://` and utilizes the `CURLOPT_SSH_KEYFUNCTION` callback, it may silently accept an untrusted server. This vulnerability occurs when a server presents a host key type that does not match the specific key type already recorded for that host in the `known_hosts` file. Instead of rejecting the mismatch, the callback mechanism fails to properly enforce the restriction, allowing the connection to succeed without warning and risking a potential man-in-the-middle attack.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS