CVE-2018-0494

MEDIUM

GNU Wget < 1.19.5 - Cookie Injection via HTTP Response Continuation Line

Title source: llm
STIX 2.1

Exploitation Summary

EIP tracks 1 public exploit for CVE-2018-0494. PoCs published by Harry Sintonen.

AI-analyzed exploit summary This advisory describes a cookie injection vulnerability in GNU Wget (CVE-2018-0494) where a malicious server can inject arbitrary cookies into the cookie jar file due to improper input validation in Set-Cookie parsing. The proof-of-concept demonstrates how an attacker can manipulate cookie values to hijack sessions.

Description

GNU Wget before 1.19.5 is prone to a cookie injection vulnerability in the resp_new function in http.c via a \r\n sequence in a continuation line.

Exploits (1)

exploitdb WRITEUP
by Harry Sintonen · textlocallinux
https://www.exploit-db.com/exploits/44601

This advisory describes a cookie injection vulnerability in GNU Wget (CVE-2018-0494) where a malicious server can inject arbitrary cookies into the cookie jar file due to improper input validation in Set-Cookie parsing. The proof-of-concept demonstrates how an attacker can manipulate cookie values to hijack sessions.

Classification
Writeup 100%
Attack Type
Auth Bypass
Complexity
Moderate
Reliability
Reliable
Target: GNU Wget 1.7 through 1.19.4
No auth needed
Prerequisites: Victim must use wget with --save-cookies and --load-cookies options · Attacker-controlled server to serve malicious Set-Cookie header
devstral-2 · analyzed Feb 16, 2026 Full analysis →

References (13)

Core 13
Core References
Exploit, Third Party Advisory x_refsource_misc
https://sintonen.fi/advisories/gnu-wget-cookie-injection.txt
Third Party Advisory vendor-advisory x_refsource_redhat
https://access.redhat.com/errata/RHSA-2018:3052
Broken Link x_refsource_misc
https://savannah.gnu.org/bugs/?53763
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201806-01
Third Party Advisory vendor-advisory x_refsource_debian
https://www.debian.org/security/2018/dsa-4195
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/104129
Third Party Advisory, VDB Entry vdb-entry x_refsource_sectrack
http://www.securitytracker.com/id/1040838
Exploit, Third Party Advisory, VDB Entry exploit x_refsource_exploit-db
https://www.exploit-db.com/exploits/44601/
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3643-2/
Mailing List, Third Party Advisory mailing-list x_refsource_mlist
https://lists.debian.org/debian-lts-announce/2018/05/msg00006.html
Patch, Third Party Advisory x_refsource_misc
https://lists.gnu.org/archive/html/bug-wget/2018-05/msg00020.html
Third Party Advisory vendor-advisory x_refsource_ubuntu
https://usn.ubuntu.com/3643-1/

Scores

CVSS v3 6.5
EPSS 0.1725
EPSS Percentile 96.7%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N

Details

CWE
CWE-20
Status published
Products (12)
canonical/ubuntu_linux 12.04
canonical/ubuntu_linux 14.04
canonical/ubuntu_linux 16.04
canonical/ubuntu_linux 17.10
canonical/ubuntu_linux 18.04
debian/debian_linux 7.0
debian/debian_linux 8.0
debian/debian_linux 9.0
gnu/wget < 1.19.5
redhat/enterprise_linux_desktop 7.0
... and 2 more
Published May 06, 2018
Tracked Since Feb 18, 2026