Critical SSL Session ID Caching Vulnerability in curl Package

curl Updated 02 Oct 2025

Summary

03/02/2024
N/A
Yes i
Unrated
Not published

DEBIAN-CVE-2024-0853: curl inadvertently kept the SSL session ID for connections in its cache even when the verify status (*OCSP stapling*) test failed. Affects curl versions < 8.6.0-1. Fixed in 8.6.0-1. 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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

The curl package is a widely used command-line tool and library for transferring data with URLs. It supports various protocols including HTTP, HTTPS, FTP, and more, making it essential for web applications and services. The package is known for its versatility and ease of use, but it has recently been identified as vulnerable to a critical issue that affects its SSL session handling.

Vulnerability Detail

The vulnerability arises from curl's handling of SSL session IDs, where it inadvertently retains the session ID in its cache even when the OCSP stapling verification fails. This means that if a subsequent connection to the same hostname is made, it could succeed using the cached session ID, bypassing the necessary verification checks. This flaw could lead to potential security risks, including man-in-the-middle attacks, as the integrity of the SSL connection may not be guaranteed.

How To Fix

Minimum fixed version

8.6.0-1

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

As a temporary workaround, users can disable the use of cached SSL session IDs by modifying their curl commands to include the option '--no-sessionid'. This will prevent curl from using any cached session IDs, thereby enforcing a fresh verification for each connection.

Conclusion

In summary, the curl package has a critical vulnerability related to SSL session ID caching that can compromise the security of data transfers. Users are strongly advised to update to the latest patched version to mitigate risks. Additionally, temporary workarounds are available to enhance security until the update can be applied.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

The vulnerability can lead to insecure SSL connections, allowing attackers to potentially intercept or manipulate data transmitted over the network.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

Yes, not updating curl exposes your application to security risks, including potential man-in-the-middle attacks.

Versions of curl prior to 8.6.0-1 are affected by this vulnerability.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities in your software using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for curl.

How To Fix

Minimum fixed version

8.6.0-1

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