blob: 7d7bc6922cdf5529f20a248f4dfb8b385b89e99c [file] [log] [blame]
<?xml version="1.0" encoding="utf-8"?>
<glsa id="200410-07">
<title>ed: Insecure temporary file handling</title>
The ed utility is vulnerable to symlink attacks, potentially allowing a
local user to overwrite or change rights on arbitrary files with the rights
of the user running ed, which could be the root user.
<product type="ebuild">ed</product>
<announced>October 09, 2004</announced>
<revised>October 09, 2004: 01</revised>
<package name="sys-apps/ed" auto="yes" arch="*">
<unaffected range="ge">0.2-r4</unaffected>
<vulnerable range="le">0.2-r3</vulnerable>
ed is a line-oriented text editor, used to create or modify text files,
both interactively and via shell scripts.
ed insecurely creates temporary files in world-writeable directories with
predictable names. Given that ed is used in various system shell scripts,
they are by extension affected by the same vulnerability.
<impact type="normal">
A local attacker could create symbolic links in the temporary files
directory, pointing to a valid file somewhere on the filesystem. When ed is
called, this would result in file access with the rights of the user
running the utility, which could be the root user.
There is no known workaround at this time.
All ed users should upgrade to the latest version:
# emerge sync
# emerge -pv ">=sys-apps/ed-0.2-r4"
# emerge ">=sys-apps/ed-0.2-r4"</code>
<uri link="">CVE-2000-1137</uri>
<metadata tag="requester" timestamp="Fri, 8 Oct 2004 21:10:12 +0000">
<metadata tag="bugReady" timestamp="Fri, 8 Oct 2004 21:10:49 +0000">
<metadata tag="submitter" timestamp="Sat, 9 Oct 2004 09:43:17 +0000">