Description
The (1) gendef.sh, (2) doc/fixinfo.sh, and (3) contrib/gdiffmk/tests/runtests.in scripts in GNU troff (aka groff) 1.21 and earlier allow local users to overwrite arbitrary files via a symlink attack on a gro#####.tmp or /tmp/##### temporary file.
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | groff | 1.20.1-5 | — |
| Debian 13 | groff | 1.20.1-5 | — |
| Debian 12 | groff | 1.20.1-5 | — |
References
- [oss-security] 20090814 Re: CVE id request: groff (pdfroff) mailing-list
- [oss-security] 20090814 Re: CVE id request: groff (pdfroff) mailing-list
- http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/groff/groff-1.20.1-owl-tmp.diff.diff?r1=1.1%3Br2=1.2%3Bf=h
- MDVSA-2013:085 vendor-advisory
- http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/groff/groff-1.20.1-owl-tmp.diff
- MDVSA-2013:086 vendor-advisory