Debian DSA-1738-1 : curl - arbitrary file access

Medium Nessus Plugin ID 35908


The remote Debian host is missing a security-related update.


David Kierznowski discovered that libcurl, a multi-protocol file transfer library, when configured to follow URL redirects automatically, does not question the new target location. As libcurl also supports file:// and scp:// URLs - depending on the setup - an untrusted server could use that to expose local files, overwrite local files or even execute arbitrary code via a malicious URL redirect.

This update introduces a new option called CURLOPT_REDIR_PROTOCOLS which by default does not include the scp and file protocol handlers.


Upgrade the curl packages.

For the oldstable distribution (etch) this problem has been fixed in version 7.15.5-1etch2.

For the stable distribution (lenny) this problem has been fixed in version 7.18.2-8lenny2.

See Also

Plugin Details

Severity: Medium

ID: 35908

File Name: debian_DSA-1738.nasl

Version: 1.12

Type: local

Agent: unix

Published: 2009/03/12

Updated: 2018/11/28

Dependencies: 12634

Risk Information

Risk Factor: Medium

CVSS v2.0

Base Score: 6.8

Temporal Score: 5.3

Vector: CVSS2#AV:N/AC:M/Au:N/C:P/I:P/A:P

Temporal Vector: CVSS2#E:POC/RL:OF/RC:C

Vulnerability Information

CPE: p-cpe:/a:debian:debian_linux:curl, cpe:/o:debian:debian_linux:4.0, cpe:/o:debian:debian_linux:5.0

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Available: true

Exploit Ease: Exploits are available

Patch Publication Date: 2009/03/11

Reference Information

CVE: CVE-2009-0037

BID: 33962

DSA: 1738

CWE: 352