CVE-2020-5202
publishedapt-cacher-ng: local unprivileged user can impersonate the apt-cacher-ng daemon leading to credentials leak
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| SUSE / openSUSE | openSUSE-Leap-15.1 | apt-cacher-ngx86_64 | Advisory build | 3.1-lp151.3.3.1 | OPENSUSE-SU-2020:0124-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
5- openSUSE-SU-2020:0124 http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00057.html
- openSUSE-SU-2020:0146 http://lists.opensuse.org/opensuse-security-announce/2020-01/msg00065.html
- [oss-security] 20200120 CVE-2020-5202: apt-cacher-ng: a local unprivileged user can impersonate the apt-cacher-ng daemon, possible credentials leak http://www.openwall.com/lists/oss-security/2020/01/20/4
- [oss-security] 20200120 CVE-2020-5202: apt-cacher-ng: a local unprivileged user can impersonate the apt-cacher-ng daemon, possible credentials leak https://seclists.org/oss-sec/2020/q1/21
- https://security-tracker.debian.org/tracker/CVE-2020-5202
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- 2a574d699efd8d2fc3c5f067cc1480bb597c723aab03f79eef7d9d59b32e80bb
- Ingested
- 23 Sep 2026, 07:51:02 UTC
- Source record
- Official CVE record