
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2025-15224 is an improper authentication vulnerability in curl, named "libssh key passphrase bypass without agent set," in which curl incorrectly falls back to authenticating via a locally running SSH agent when performing SCP or SFTP transfers that were explicitly configured to use public key authentication. It affects curl versions 7.58.0 through 8.17.0 (inclusive) and was introduced via the libssh backend; builds using the libssh2 backend are not affected. The vulnerability was reported on December 28, 2025, by Harry Sintonen, and publicly disclosed alongside the release of curl 8.18.0 on January 7, 2026. It carries a CVSS v3.1 base score of 3.1 (Low) (curl Advisory, Openwall OSS-Sec).
The root cause is classified as CWE-287 (Improper Authentication) and stems from a surprising API behavior in the libssh library, which silently falls back to SSH agent authentication when public key authentication is requested. When curl is built with the libssh backend and a user specifies public key authentication for SCP or SFTP transfers, libssh's fallback mechanism causes curl to query a locally running SSH agent instead of strictly enforcing the requested authentication method. Exploitation requires that the local SSH agent actually holds the correct key/passphrase for the target server — the agent authentication will only succeed if the agent has the appropriate credentials. This flaw affects both the curl command-line tool and libcurl-based applications (curl Advisory, Openwall OSS-Sec).
The primary impact is a low-severity integrity issue: an attacker or misconfigured environment could cause curl to authenticate to an SSH server using an unintended method (SSH agent) rather than the explicitly configured public key, potentially bypassing intended authentication controls for SCP/SFTP file transfers. There is no confidentiality or availability impact. The scope is limited to scenarios where a local SSH agent is running and holds valid credentials for the target server, making real-world exploitation highly constrained (curl Advisory, Feedly).
ssh-agent) is running on the client system and has the correct private key loaded for the target SSH server.curl --key /path/to/key sftp://user@host/file). Due to the libssh API fallback behavior, curl will also attempt authentication via the running SSH agent.ssh-agent process on the client system during curl SCP/SFTP operations where agent use was not intended or configured.The primary fix is to upgrade curl to version 8.18.0 or later, which corrects the libssh fallback behavior. Three alternative mitigations are available for environments that cannot immediately upgrade: (A) rebuild curl using the libssh2 backend instead of libssh, (B) avoid using SFTP or SCP protocols with curl, or (C) ensure no SSH agent is running in environments where curl performs SCP/SFTP transfers. IBM has also released a patch for affected IBM MQ Operator and Queue Manager container images (curl Advisory, IBM Advisory).
The curl project lead Daniel Stenberg announced the release of curl 8.18.0 and the advisory on his blog and via the oss-security mailing list on January 7, 2026. The vulnerability was rated Low severity by the curl security team, and the advisory noted it is not considered a C language mistake but rather a consequence of a surprising libssh API design choice. Community and media coverage was limited given the low severity, with Linux distribution security teams (SUSE, Mageia, Ubuntu, Amazon Linux) issuing routine update advisories (Daniel Stenberg Blog, Openwall OSS-Sec).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."