Vulnerability · Published Jan 21, 2020 · Assigned by mitre
CVE-2020-5202
Medium 5.5
In plain English
A medium-severity security flaw in the apt-cacher-ng package (Debian). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
apt-cacher-ng through 3.3 allows local users to obtain sensitive information by hijacking the hardcoded TCP port. The /usr/lib/apt-cacher-ng/acngtool program attempts to connect to apt-cacher-ng via TCP on localhost port 3142, even if the explicit SocketPath=/var/run/apt-cacher-ng/socket command-line option is passed. The cron job /etc/cron.daily/apt-cacher-ng (which is active by default) attempts this periodically. Because 3142 is an unprivileged port, any local user can try to bind to this port and will receive requests from acngtool. There can be sensitive data in these requests, e.g., if AdminAuth is enabled in /etc/apt-cacher-ng/security.conf. This sensitive data can leak to unprivileged local users that manage to bind to this port before the apt-cacher-ng daemon can.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | apt-cacher-ng | 3.3.1-1 | DEBIAN-CVE-2020-5202 |
| Debian:13 | apt-cacher-ng | 3.3.1-1 | DEBIAN-CVE-2020-5202 |
| Debian:14 | apt-cacher-ng | 3.3.1-1 | DEBIAN-CVE-2020-5202 |
Affected products (as reported)
References
- https://security-tracker.debian.org/tracker/CVE-2020-5202 x_refsource_MISC
- [oss-security] 20200120 CVE-2020-5202: apt-cacher-ng: a local unprivileged user can impersonate the apt-cacher-ng daemon, possible credentials leak mailing-list, x_refsource_MLIST
- [oss-security] 20200120 CVE-2020-5202: apt-cacher-ng: a local unprivileged user can impersonate the apt-cacher-ng daemon, possible credentials leak mailing-list, x_refsource_MLIST
- openSUSE-SU-2020:0124 vendor-advisory, x_refsource_SUSE
- openSUSE-SU-2020:0146 vendor-advisory, x_refsource_SUSE