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.
https://www.tenable.com/security/tns-2016-21
https://security.gentoo.org/glsa/201701-47
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2016-8615
https://access.redhat.com/errata/RHSA-2018:2486