Description
log.c in Squid Analysis Report Generator (sarg) through 2.3.11 allows local privilege escalation. By default, it uses a fixed temporary directory /tmp/sarg. As the root user, sarg creates this directory or reuses an existing one in an insecure manner. An attacker can pre-create the directory, and place symlinks in it (after winning a /tmp/sarg/denied.int_unsort race condition). The outcome will be corrupted or newly created files in privileged file system locations.
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 | sarg | 2.4.0-1 | — |
| Debian 13 | sarg | 2.4.0-1 | — |
| Debian 12 | sarg | 2.4.0-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | sarg | No fix yet | — |
| Ubuntu 18.04 LTS | sarg | No fix yet | — |
| Ubuntu 16.04 LTS | sarg | No fix yet | — |
SUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| SUSE Package Hub 15 SP1 | sarg | 2.3.10-bp151.4.3.1 | openSUSE-SU-2020:0140-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Leap 15.1 | sarg | 2.3.10-lp151.3.3.1 | openSUSE-SU-2020:0117-1 |
Advisories 2
- openSUSE-SU-2020:0117-1 Security update for sarg SUSE / openSUSE Security Updates · Feb 4, 2026
- openSUSE-SU-2020:0140-1 Security update for sarg SUSE / openSUSE Security Updates · May 7, 2025
References
- https://bugzilla.suse.com/show_bug.cgi?id=1150554
- https://sourceforge.net/projects/sarg/
- [oss-security] 20200120 CVE-2019-18932: sarg: insecure usage of /tmp/sarg allows privilege escalation / DoS attack vector mailing-list
- [oss-security] CVE-2019-18932: sarg: insecure usage of /tmp/sarg allows privilege escalation / DoS attack vector mailing-list
- [oss-security] 20200127 Re: CVE-2019-18932: sarg: insecure usage of /tmp/sarg allows privilege escalation / DoS attack vector mailing-list
- openSUSE-SU-2020:0117 vendor-advisory
- openSUSE-SU-2020:0140 vendor-advisory
- GLSA-202007-32 vendor-advisory