CVE-2020-5202 Information disclosure in n/a

Medium 5.5 Published Updated

Local attackers can hijack a hardcoded TCP port to intercept sensitive data from apt-cacher-ng administrative requests, exposing credentials or configuration details.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2020-5202?

CVE-2020-5202 is a medium-severity vulnerability in Debian Debian Linux, published on 21 Jan 2020. It can only be exploited from the same machine or local network, with no action from the victim.

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.

Which versions are affected by CVE-2020-5202?

It affects 4 products.

Products include Apt-Cacher-Ng Project Apt-Cacher-Ng, Debian Debian Linux, Opensuse Backports, Opensuse Leap.

How do I fix CVE-2020-5202?

Apply the vendor's patch.

Is CVE-2020-5202 being exploited?

There is no known exploitation of CVE-2020-5202 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as DEBIAN-CVE-2020-5202, GHSA-ppjv-mwcc-539j, UBUNTU-CVE-2020-5202.

Is CVE-2020-5202 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free