Skip to content

CVE-2020-5202 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 T...

MediumCVSS 5.5 EPSS 0.47%
Published
Updated
Exploit status
No public exploit known
Technology
UbuntuDebian

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.

Upgrade path

9 packages: 4 fixed, 2 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/apt-cacher-ng(Ubuntu 16.04) = 0.8.5-1; = 0.8.6-1; = 0.8.7-1; = 0.8.8-1 +4 more No fix listed No fix yet
ubuntu/apt-cacher-ng(Ubuntu 18.04) = 3-5; = 3.1-1; = 3.1-1build1; All versions No fix listed No fix yet
apt-cacher-ng project apt-cacher-ng <= 3.3 after 3.3 Fixed
debian/apt-cacher-ng(Debian 12) < 3.3.1-1 3.3.1-1 Fixed
debian/apt-cacher-ng(Debian 13) < 3.3.1-1 3.3.1-1 Fixed
debian/apt-cacher-ng(Debian 14) < 3.3.1-1 3.3.1-1 Fixed
debian linux = 8.0; = 9.0; = 10.0 No fix listed Versions listed
openSUSE backports = sle-15-sp1 No fix listed Versions listed
openSUSE leap = 15.1 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
debian/apt-cacher-ng(Debian:12) < 3.3.1-1 3.3.1-1
debian/apt-cacher-ng(Debian:13) < 3.3.1-1 3.3.1-1
debian/apt-cacher-ng(Debian:14) < 3.3.1-1 3.3.1-1
apt-cacher-ng project apt-cacher-ng <= 3.3 No fix listed
debian linux = 8.0 No fix listed
debian linux = 9.0 No fix listed
debian linux = 10.0 No fix listed
openSUSE backports = sle-15-sp1 No fix listed
openSUSE leap = 15.1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:16.04) All versions No fix listed
ubuntu/apt-cacher-ng(Ubuntu:16.04) = 0.8.5-1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:16.04) = 0.8.6-1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:16.04) = 0.8.7-1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:16.04) = 0.8.8-1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:16.04) = 0.8.9-1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:16.04) = 0.8.9-1ubuntu1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:16.04) = 0.9.1-1ubuntu1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:18.04) All versions No fix listed
ubuntu/apt-cacher-ng(Ubuntu:18.04) = 3-5 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:18.04) = 3.1-1 No fix listed
ubuntu/apt-cacher-ng(Ubuntu:18.04) = 3.1-1build1 No fix listed

References