---
id: CVE-2025-15079
title: |-
  When doing SSH-based transfers using either SCP or SFTP, and setting the
  known_hosts file, libcurl could still mistakenly accept connecting to hosts
  *not present* in the specified file if they were added as recognized in the
  libssh *glob…
summary: |-
  When doing SSH-based transfers using either SCP or SFTP, and setting the
  known_hosts file, libcurl could still mistakenly accept connecting to hosts
  *not present* in the specified file if they were added as recognized in the
  libssh *glob…
severity: medium
cvss: 5.3
cvssVector: 'CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:N/A:N'
cwe:
  - CWE-297
vendor: haxx
product: curl
affected:
  - 'curl >= 7.58.0, < 8.18.0'
patched:
  - curl 8.18.0
published: '2026-01-08'
updated: '2026-09-15'
sourceUpdated: '2026-09-15T07:16:24.467'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-15079'
references:
  - url: 'https://curl.se/docs/CVE-2025-15079.html'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://curl.se/docs/CVE-2025-15079.json'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'https://hackerone.com/reports/3477116'
    label: 2499f714-1537-4658-8207-48ae4bb9eae9
  - url: 'http://www.openwall.com/lists/oss-security/2026/01/07/6'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
  - cve.org
  - exploit-available
exploitAvailable: true
ssvc:
  exploitation: poc
  automatable: 'no'
  technicalImpact: partial
  timestamp: '2026-01-08T14:45:34.542278Z'
epss: 0.00537
epssPercentile: 0.44227
ingestedAt: '2026-09-15T07:33:29.260Z'
---

## Overview

When doing SSH-based transfers using either SCP or SFTP, and setting the
known_hosts file, libcurl could still mistakenly accept connecting to hosts
*not present* in the specified file if they were added as recognized in the
libssh *global* known_hosts file.

## Affected

- `curl >= 7.58.0, < 8.18.0`

## Remediation

Upgrade past the affected range:

- `curl 8.18.0`
