CVE-2025-15224: libssh key passphrase bypass without agent set
This flaw only exists when libcurl is built to use the libssh backend, not the libssh2 based one. This problem happened because libssh has a somewhat surprising API choice where they fall back to agent authentication.
It should be noted that the authentication still only succeeds if the local SSH agent actually has the correct passphrase.
Other sources
When doing SSH-based transfers using either SCP or SFTP, and asked to do public key authentication, curl would wrongly still ask and authenticate using a locally running SSH agent.
— Ubuntu
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
debian/curlto a version that resolves this vulnerability.Fixed in 8.18.0-1 - Upgrade
Upgrade
ubuntu/curlto a version that resolves this vulnerability.Fixed in 7.58.0-2ubuntu3.24+esm7 - Upgrade
Upgrade
ubuntu/curlto a version that resolves this vulnerability.Fixed in 7.68.0-1ubuntu2.25+esm2 - Upgrade
Upgrade
ubuntu/curlto a version that resolves this vulnerability.Fixed in 7.81.0-1ubuntu1.22 - Upgrade
Upgrade
ubuntu/curlto a version that resolves this vulnerability.Fixed in 8.5.0-2ubuntu10.7
Event History
Frequently Asked Questions
What is the severity of CVE-2025-15224?
CVE-2025-15224 is rated as a medium severity vulnerability.
How do I fix CVE-2025-15224?
To fix CVE-2025-15224, update your curl application to the latest version that has addressed this vulnerability.
What impact does CVE-2025-15224 have on SSH-based transfers?
CVE-2025-15224 can lead to incorrect public key authentication process during SSH-based transfers using SCP or SFTP.
Which versions of curl are affected by CVE-2025-15224?
CVE-2025-15224 affects specific versions of curl that have not implemented the fix for this vulnerability.
Can CVE-2025-15224 be exploited remotely?
CVE-2025-15224 does not appear to allow for remote exploitation but affects the authentication method when used locally.