Medium severity · published Jan 21, 2020
CVE-2020-5202
apt-cacher-ng through 3.3 allows local users to obtain sensitive information by hijacking the hardcoded TCP port
5.5
CVSS
0.5%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.5% · higher than 40% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
AP
Apt-cacher-ng · Apt-cacher-ng Project
through 3.3 · source: NVD
BA
Backports · Opensuse
sle-15 · source: NVD
DL
Debian Linux · Debian
8.0; 9.0; 10.0 · source: NVD
LE
Leap · Opensuse
15.1 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2020-5202
CVE.org
https://www.cve.org/CVERecord?id=CVE-2020-5202
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00057.html
Mailing List
http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00065.html
Exploit
http://www.openwall.com/lists/oss-security/2020/01/20/4
Exploit
https://seclists.org/oss-sec/2020/q1/21
Patch
https://security-tracker.debian.org/tracker/CVE-2020-5202
More from Apt-cacher-ng
6.1
CVE-2017-7443
apt-cacher before 1.7.15 and apt-cacher-ng before 3.4 allow HTTP response splitting via encoded newline characters, related to lack of blocking for the %0[ad] regular expression
5.5
CVE-2019-18899
The apt-cacher-ng package of openSUSE Leap 15.1 runs operations in user owned directory /run/apt-cacher-ng with root privileges
5.4
CVE-2025-11147
Reflected Cross-site scripting (XSS) vulnerability in Apt-Cacher-NG
5.4
CVE-2025-11146
Reflected Cross-site scripting (XSS) vulnerability in Apt-Cacher-NG
