portage-ng / portage / sys-apps / ed / 1.22.4
portage-ng glsa
2 advisories reference sys-apps/ed · none place version 1.22.4 in a vulnerable range
▸ GLSA 200809-15 GNU ed: User-assisted execution of arbitrary code this version unaffected normal remote 2008-09-23

A buffer overflow vulnerability in ed may allow for the remote execution of arbitrary code.

Announced
2008-09-23
Revised
2008-09-23
Access
remote
Bugs
#236521
Advisory
https://security.gentoo.org/glsa/200809-15

Affected packages

PackageArchVulnerableUnaffected
sys-apps/ed*< 1.0>= 1.0

Background

GNU ed is a basic line editor. red is a restricted version of ed that does not allow shell command execution.

Description

Alfredo Ortega from Core Security Technologies reported a heap-based buffer overflow in the strip_escapes() function when processing overly long filenames.

Impact

A remote attacker could entice a user to process specially crafted commands with ed or red, possibly resulting in the execution of arbitrary code with the privileges of the user running the application.

Workaround

There is no known workaround at this time.

Resolution

All GNU ed users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/ed-1.0"

References

▸ GLSA 200410-07 ed: Insecure temporary file handling this version unaffected normal local 2004-10-09

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.

Announced
2004-10-09
Revised
2004-10-09
Access
local
Bugs
#66400
Advisory
https://security.gentoo.org/glsa/200410-07

Affected packages

PackageArchVulnerableUnaffected
sys-apps/ed*<= 0.2-r3>= 0.2-r4

Background

ed is a line-oriented text editor, used to create or modify text files, both interactively and via shell scripts.

Description

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

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.

Workaround

There is no known workaround at this time.

Resolution

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"

References