5.3 CVE-2025-15079
Enriched by CISA Patch Exploit
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.
https://nvd.nist.gov/vuln/detail/CVE-2025-15079
Categories
CWE-297 : Improper Validation of Certificate with Host Mismatch
The product communicates with a host that provides a certificate, but the product does not properly ensure that the certificate is actually associated with that host. Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.) Set up an untrusted endpoint (e.g. a server) with which the product will connect. Create a test certificate that uses an invalid hostname but is signed by a trusted CA and provide this certificate from the untrusted endpoint. If the product performs any operations instead of disconnecting and reporting an error, then this indicates that the hostname is not being checked and the test certificate has been accepted. When Certificate Pinning is being used in a mobile application, consider using a tool such as Spinner [REF-955]. This methodology might be extensible to other technologies. Fully check the hostname of the certificate and provide the user with adequate information about the nature of the problem and how to proceed. If certificate pinning is being used, ensure that all relevant properties of the certificate are fully validated before the certificate is pinned, including the hostname. Mobile banking application does not verify hostname, leading to financial loss. Mobile application for printing documents does not verify hostname, allowing attackers to read sensitive documents. Software for electronic checking does not verify hostname, leading to financial loss. Cloud-support library written in Python uses incorrect regular expression when matching hostname. Web browser does not correctly handle '' character (NUL) in Common Name, allowing spoofing of https sites. Database program truncates the Common Name during hostname verification, allowing spoofing. Incorrect handling of '' character (NUL) in hostname verification allows spoofing. Mail server's incorrect handling of '' character (NUL) in hostname verification allows spoofing. LDAP server's incorrect handling of '' character (NUL) in hostname verification allows spoofing. Payment processing module does not verify hostname when connecting to PayPal using PHP fsockopen function. Smartphone device does not verify hostname, allowing spoofing of mail services. E-commerce module does not verify hostname when connecting to payment site. Chat application does not validate hostname, leading to loss of privacy. Application uses third-party library that does not validate hostname. Cloud storage management application does not validate hostname. Java library uses JSSE SSLSocket and SSLEngine classes, which do not verify the hostname. SOAP platform does not verify the hostname. PHP library for payments does not verify the hostname. Merchant SDK for payments does not verify the hostname. Web browser does not validate Common Name, allowing spoofing of https sites.
References
2499f714-1537-4658-8207-48ae4bb9eae9 Patch Exploit
| https://curl.se/docs/CVE-2025-15079.html Vendor Advisory Patch |
| https://curl.se/docs/CVE-2025-15079.json Vendor Advisory |
| https://hackerone.com/reports/3477116 Exploit Issue Tracking Third Party Advisory |
af854a3a-2127-422b-91ae-364da2661108 Patch Exploit
| http://www.openwall.com/lists/oss-security/2026/01/07/6 Mailing List Third Party Advisory Patch |
AFFECTED (from MITRE)
| Vendor | Product | Versions |
|---|---|---|
| curl | curl |
|
| © 2022 The MITRE Corporation. This work is reproduced and distributed with the permission of The MITRE Corporation. | ||
CPE
| cpe | start | end |
|---|---|---|
| Configuration 1 | ||
| cpe:2.3:a:haxx:curl:*:*:*:*:*:*:*:* | >= 7.58.0 | < 8.18.0 |
REMEDIATION
Patch
| Url |
|---|
| https://curl.se/docs/CVE-2025-15079.html |
| http://www.openwall.com/lists/oss-security/2026/01/07/6 |
EXPLOITS
Exploit-db.com
| id | description | date | |
|---|---|---|---|
| No known exploits | |||
POC Github
| Url |
|---|
| No known exploits |
Other Nist (github, ...)
| Url |
|---|
| https://hackerone.com/reports/3477116 |
CAPEC
Common Attack Pattern Enumerations and Classifications
| id | description | severity |
|---|---|---|
| No entry | ||
Cybersecurity needs ?
Strengthen software security from the outset with our DevSecOps expertise
Integrate security right from the start of the software development cycle for more robust applications and greater customer confidence.
Our team of DevSecOps experts can help you secure your APIs, data pipelines, CI/CD chains, Docker containers and Kubernetes deployments.
