proto-default skips SSH verification (curl curl)

CVE-2026-12064
HIGH 7.5

En bref

Source
NVD
EPSS
EPSS 0.41 % · centile 36 ()
État
PUBLISHED
Publiée
Mise à jour
Attribuée par
curl
Statut NVD
Modified

Description

When a user invokes curl using a schemeless URL combined with `--proto-default` sftp (or scp), a disconnect occurs between the tool layer and libcurl. The tool layer incorrectly infers the URL scheme, which erroneously bypasses the initialization of critical SSH security options like CURLOPT_SSH_HOST_PUBLIC_KEY_SHA256 and CURLOPT_SSH_KNOWNHOSTS. Conversely, the libcurl runtime successfully honors CURLOPT_DEFAULT_PROTOCOL and establishes the connection via SFTP/SCP as specified. Because the tool layer skipped the security configuration, these SSH host verification options are silently omitted, causing curl to connect to an unverified SSH remote host without throwing an error.

Faiblesses (CWE)

  • CWE-297 — Validation incorrecte d'un certificat dont l'hôte ne correspond pas
  • CWE-295 — Validation incorrecte de certificat

Références

Scores

VersionScoreVecteurÉvalué par
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NCISA-ADP
CVSS 3.1HIGH 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NNVD · 134c704f-9b21-4f2e-91b3-4a467353bcc0 (Secondary)

Références européennes

Avis du CERT-FR

Configurations affectées (CPE NVD)

Produits affectés

ProduitVersions
curl · curlaffected 7.81.0 < 8.14.2 ; affected 8.15.0 < 8.16.1 ; affected 8.17.0 < 8.20.1
curl · curlaffected 18270893abdb19f0ca170c118f8a2847dbd304be < ab3bb8cd8be8f9d4acb97da0418abc279182041e
curl · curlaffected 8.20.0 ; affected 8.19.0 ; affected 8.18.0 ; affected 8.17.0 ; affected 8.16.0 ; affected 8.15.0

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
CERT-FR (ANSSI)Licence Ouverte / Etalab 2.0
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD