Cookie Injection Vulnerability in curl Package: CVE-2016-8615

curl Updated 02 Oct 2025

Summary

01/08/2018
N/A
Yes i
High
7.5

ALPINE-CVE-2016-8615: A flaw was found in curl before version 7.51. Affects curl versions < 7.51.0-r0. Fixed in 7.51.0-r0. 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 widely used command-line tool and library for transferring data with URLs. It supports various protocols including HTTP, HTTPS, FTP, and more. curl is known for its versatility and is commonly used in web applications and services. However, a vulnerability was discovered that allows malicious servers to inject cookies into a user's cookie jar, potentially compromising user sessions and data integrity.

Vulnerability Detail

A flaw was found in curl before version 7.51. If cookie state is written into a cookie jar file that is later read back and used for subsequent requests, a malicious HTTP server can inject new cookies for arbitrary domains into said cookie jar. This could lead to unauthorized access to user sessions or sensitive information, as the injected cookies may be used to impersonate users or perform actions on their behalf.

How To Fix

Minimum fixed version

7.51.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade curl

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

Workaround

As a temporary workaround, avoid using cookie jars or ensure that cookies are not written to disk. This can be done by managing cookies in memory only during the session.

Conclusion

The vulnerability CVE-2016-8615 in the curl package poses a significant risk by allowing malicious servers to inject cookies into a user's cookie jar. It is crucial to update to the patched versions of curl to mitigate this risk and ensure the security of user sessions.

See every vulnerability recorded for curl →

Share this vulnerability

FAQ

CVE-2016-8615 is a vulnerability in the curl package that allows malicious servers to inject cookies into a user's cookie jar, potentially compromising user sessions.

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

The CVSS score of this vulnerability is 7.5, indicating a high severity level.

If you cannot update curl immediately, consider using a workaround by avoiding the use of cookie jars or managing cookies in memory only.

You can visit Vulert at https://vulert.com, which monitors and alerts for open-source vulnerabilities in your software using just a manifest file.

Related vulnerabilities

Recent vulnerabilities recorded for curl.

How To Fix

Minimum fixed version

7.51.0-r0

This is the first release that contains the fix.

sudo apk add --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