Unchecked TLS/SSL Certificate Host Name in curl

curl Updated 02 Oct 2025

Summary

19/12/2013
N/A
Yes i
Unrated
Not published

DSA-2824-1: curl - unchecked tls/ssl certificate host name. Affects curl versions < 7.26.0-1+wheezy7. Fixed in 7.26.0-1+wheezy7. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Curl is a popular file retrieval tool used for transferring data with URLs. It supports various protocols, including HTTP, HTTPS, FTP, and more. The vulnerability in question affects the libcurl GnuTLS backend used by curl. This backend is responsible for handling TLS/SSL connections. The issue arises when digital signature verification is disabled, leading to the skipping of verifying the Common Name (CN) and Subject Alternative Name (SAN) fields in TLS/SSL certificates.

Vulnerability Detail

The vulnerability allows an attacker to bypass the verification of the host name in TLS/SSL certificates. This means that even if the certificate presented by the server does not match the expected host name, curl would still establish a connection without raising any warnings or errors. This could potentially allow an attacker to perform man-in-the-middle attacks, intercept sensitive data, or impersonate a trusted server.

How To Fix

Minimum fixed version

7.26.0-1+wheezy7

This is the first release that contains the fix.

sudo apt-get install --only-upgrade curl

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

There is no specific workaround mentioned for this vulnerability. However, users can mitigate the risk by ensuring that digital signature verification is enabled in the curl configuration. Additionally, it is crucial to regularly update the curl package to the latest version to stay protected against known vulnerabilities.

Conclusion

The unchecked TLS/SSL certificate host name vulnerability in curl can pose significant security risks if digital signature verification is disabled. It is crucial to upgrade to the fixed versions of curl and ensure that digital signature verification is enabled. Regularly updating the curl package and staying informed about security advisories is essential to maintain a secure environment. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

Curl is a command-line tool and library for transferring data with URLs. It supports various protocols and is widely used for automation, scripting, and web development.

The vulnerability allows an attacker to bypass host name verification in TLS/SSL certificates, potentially leading to man-in-the-middle attacks, data interception, or impersonation of trusted servers.

The default configuration of the curl package is not affected by this vulnerability since digital signature verification is enabled by default. However, versions prior to 7.26.0-1+wheezy7 for the stable distribution (wheezy) and versions prior to 7.34.0-1 for the unstable distribution (sid) are vulnerable if digital signature verification is disabled.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert monitors and alerts in real-time for open-source vulnerabilities without requiring access to the code or installation.

You can find more information about this vulnerability in the Debian Security Advisory DSA-2824-1 (https://storage.googleapis.com/debian-osv/dsa-osv/DSA-2824-1.json).

Related vulnerabilities

Recent vulnerabilities recorded for curl.

How To Fix

Minimum fixed version

7.26.0-1+wheezy7

This is the first release that contains the fix.

sudo apt-get install --only-upgrade curl

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback