CVE-2025-15224: libssh key passphrase bypass without agent set

Published Dec 31, 2025
·
Updated

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

8 affected componentsFixes available
curl
IBM API Connect<=V10.0.8.0 - V10.0.8.9
haxx curl>=7.58.0<8.18.0
debian/curl<=7.88.1-10+deb12u15, <=7.88.1-10+deb12u5, <=8.14.1-2+deb13u7
8.18.0-1
ubuntu/curl<7.58.0-2ubuntu3.24+esm7
7.58.0-2ubuntu3.24+esm7
ubuntu/curl<7.68.0-1ubuntu2.25+esm2
7.68.0-1ubuntu2.25+esm2
ubuntu/curl<7.81.0-1ubuntu1.22
7.81.0-1ubuntu1.22
ubuntu/curl<8.5.0-2ubuntu10.7
8.5.0-2ubuntu10.7

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade debian/curl to a version that resolves this vulnerability.

    Fixed in 8.18.0-1
  2. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 7.58.0-2ubuntu3.24+esm7
  3. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 7.68.0-1ubuntu2.25+esm2
  4. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 7.81.0-1ubuntu1.22
  5. Upgrade

    Upgrade ubuntu/curl to a version that resolves this vulnerability.

    Fixed in 8.5.0-2ubuntu10.7

Event History

Dec 31, 2025
Data Sourced
via Red Hat·04:09 AM
DescriptionSeverityAffected Software
Jan 6, 2026
CVE Published
via Ubuntu·12:00 AM
Data Sourced
via Ubuntu·12:00 AM
RemedyDescriptionSeverityAffected Software
Data Sourced
via OSV·07:00 AM
DescriptionSeverityAffected Software
Jan 8, 2026
CVE Published
via MITRE·10:08 AM
Data Sourced
via MITRE·10:08 AM
DescriptionWeakness
Data Sourced
via NVD·10:15 AM
Description
Data Sourced
via NVD·03:15 PM
SeverityWeakness
Jan 20, 2026
Data Sourced
via NVD·02:47 PM
RemedyAffected Software
May 15, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jul 7, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 15, 2026
Updated
via NVD·07:16 AM
Weakness

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-15224?

CVE-2025-15224 is rated as a medium severity vulnerability.

2

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.

3

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.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203