CVE catalog

CVE-2020-5202

apt-cacher-ng: CVE-2020-5202

[CVE catalog]

Severity
Medium · CVSS 5.5CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
Published
Source
[NVD] · [CVE record]
EPSS
0.47% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianapt-cacher-ngsid3.7.5-1.3fixed
Debianapt-cacher-ngforky3.7.5-1.3fixed
Debianapt-cacher-ngtrixie3.7.5-1fixed
Debianapt-cacher-ngbookworm3.7.4-1fixed
Ubuntuapt-cacher-ng16.040.8.5-1vulnerable
Ubuntuapt-cacher-ng16.040.8.6-1vulnerable
Ubuntuapt-cacher-ng16.040.8.7-1vulnerable
Ubuntuapt-cacher-ng16.040.8.8-1vulnerable
Ubuntuapt-cacher-ng16.040.8.9-1vulnerable
Ubuntuapt-cacher-ng16.040.8.9-1ubuntu1vulnerable
Ubuntuapt-cacher-ng16.040.9.1-1ubuntu1vulnerable
Ubuntuapt-cacher-ng18.043-5vulnerable
Ubuntuapt-cacher-ng18.043.1-1vulnerable
Ubuntuapt-cacher-ng18.043.1-1build1vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianapt-cacher-ngsourcesid3.3.1-1not yet assignedNot reportedNot reported
Debianapt-cacher-ngsourceforky3.3.1-1not yet assignedNot reportedNot reported
Debianapt-cacher-ngsourcetrixie3.3.1-1not yet assignedNot reportedNot reported
Debianapt-cacher-ngsourcebookworm3.3.1-1not yet assignedNot reportedNot reported

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • Source package: [apt-cacher-ng]

    Details (2)
    • 3.7.4-1+b2 · amd64 · bookworm

      Fixed · Fixed: 3.3.1-1

      dsa · apt-cacher-ng · debian · bookworm; dsa · apt-cacher-ng · debian · 12

    • 3.7.4-1+b2 · arm64 · bookworm

      Fixed · Fixed: 3.3.1-1

      dsa · apt-cacher-ng · debian · bookworm; dsa · apt-cacher-ng · debian · 12

[Debian 13 (Trixie)]

  • Source package: [apt-cacher-ng]

    Details (2)
    • 3.7.5-1 · amd64 · trixie

      Fixed · Fixed: 3.3.1-1

      dsa · apt-cacher-ng · debian · 13

    • 3.7.5-1+b1 · arm64 · trixie

      Fixed · Fixed: 3.3.1-1

      dsa · apt-cacher-ng · debian · 13

Observed:

References