GNU wget 1.5.3 chmod symlink Vulnerability

BID:1299

Info

GNU wget 1.5.3 chmod symlink Vulnerability

Bugtraq ID: 1299
Class: Unknown
CVE:
Remote: No
Local: Yes
Published: Feb 02 1999 12:00AM
Updated: Feb 02 1999 12:00AM
Credit: Posted to BugTraq Feb 02, 1999 by Const Kaplinsky <[email protected]>
Vulnerable: GNU wget 1.5.3
+ Debian Linux 2.2 sparc
+ Debian Linux 2.2 powerpc
+ Debian Linux 2.2 IA-32
+ Debian Linux 2.2 arm
+ Debian Linux 2.2 alpha
+ Debian Linux 2.2 68k
Not Vulnerable:

Discussion

GNU wget 1.5.3 chmod symlink Vulnerability

GNU Wget is a freely available network utility to retrieve files from the World Wide Web, using HTTP (Hyper Text Transfer Protocol) and FTP (File Transfer Protocol), the two most widely used Internet protocols. When invoked with the -N option, it tries to chmod downloaded symlinks, but actually permissions are changed at target files. There is the potential to chmod target files to world-writable.

Exploit / POC

GNU wget 1.5.3 chmod symlink Vulnerability

Currently the SecurityFocus staff are not aware of any exploits for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].

Solution / Fix

GNU wget 1.5.3 chmod symlink Vulnerability

Solution:
Currently the SecurityFocus staff are not aware of any vendor supplied patches for this issue. If you feel we are in error or are aware of more recent information, please mail us at: [email protected].

Applying the following patch will ensure that symlink targets are not chmod'd:

- if (f->perms && dlthis)
+ if (f->perms && f->type == FT_PLAINFILE && dlthis)

References

GNU wget 1.5.3 chmod symlink Vulnerability

References:
© CVE.report 2026 |

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report