PT-2016-7521 · Curl+3 · Curl+3

Andrej Nemec

·

Published

2016-11-02

·

Updated

2026-05-18

·

CVE-2016-8615

CVSS v3.1

7.5

High

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Name of the Vulnerable Software and Affected Versions curl versions prior to 7.51
Description A problem has been discovered where a malicious HTTP server can inject new cookies for arbitrary domains into a cookie jar file. This occurs when the cookie state is written into the cookie jar file and later read back for subsequent requests. The issue is related to the function that loads cookies into memory, which uses the fgets() function to read the specified file into a fixed-size buffer in a line-by-line manner. If the buffer is too small, it truncates the output, allowing a very long cookie sent by a malicious server to be stored in the file and potentially crafted to be treated as a different cookie for another server.
Recommendations For versions prior to 7.51, consider disabling the use of cookie jar files until a patch is available. As a temporary workaround, restrict the use of the fgets() function when loading cookies into memory to minimize the risk of exploitation. Avoid using cookie jar files that may have been compromised by a malicious HTTP server.

Fix

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2016-2231
CLEANSTART-2026-AY18527
CLEANSTART-2026-BW46578
CLEANSTART-2026-DI23929
CLEANSTART-2026-LQ42192
CLEANSTART-2026-OF85770
CVE-2016-8615
DLA-711-1
DSA-3705-1
MGASA-2018-0053
OPENSUSE-SU-2016_2768-1
OPENSUSE-SU-2024:10303-1
RHSA-2018:3558
SUSE-SU-2016:2699-1
SUSE-SU-2016:2700-1
SUSE-SU-2016:2714-1
SUSE-SU-2017:2699-1
SUSE-SU-2017:2700-1
USN-3123-1

Affected Products

Alt Linux
Suse
Ubuntu
Curl