Changelog

Version 2.1.8

A security hardening release: the agent turns off apt download retries while it patches apt-based hosts, with a switch in Settings.

Security

CVE-2026-109518 (apt): PatchMon patch runs no longer retry package downloads. A flaw in apt lets an on-path attacker, including a malicious mirror or proxy, who can tamper with HTTP package traffic swap in an unverified package and run code as root, but only when apt retries a redirected download, which Debian 12+ and Ubuntu 22.04+ do by default. The agent now runs every real apt-get upgrade and apt-get --only-upgrade install with -o Acquire::Retries=0. HTTPS mirrors reduce the exposure.

This protects PatchMon's own patch runs; it does not fix apt. Update apt on every host: PatchMon lists it as an available update like any other. With retries off, a transient mirror failure fails the patch run instead of being retried.

It is on by default. To change it, use Disable apt download retries in Settings > Agent Updates. Connected agents receive the change straight away, every agent picks up the current value when it starts, and each stores it as apt.disable_retries in config.yml; the server's value replaces a hand edit. The compliance scanner install always runs with retries off. On Univention Corporate Server, Patch all runs univention-upgrade, which this does not cover.

Upgrading

docker compose pull
docker compose up -d

No compose changes. A migration adds one settings column at startup. The apt change ships in the agent, so it applies once a host runs the v2.1.8 agent; hosts with auto-update turned off need a manual agent update.

Worth knowing

  • Update the agent before you patch apt: a host still on an older agent installs the apt fix with apt's default retries.
  • Manual and unattended apt runs are not covered: apt upgrade or unattended-upgrades on an unpatched host is exposed as before, and apt-get update keeps apt's normal retries.
  • Changes to this setting are not audit-logged: no settings change is. Anyone with the manage-settings permission can turn it off for every agent.

Every change in this release

Issue

PR

Change

#1228

Agent patch runs on apt-based hosts call apt with Acquire::Retries=0 (CVE-2026-109518). The compliance scanner install always does.

#1229

New Disable apt download retries switch in Settings > Agent Updates, on by default, pushed to agents and saved as apt.disable_retries in config.yml.

#1223

Server listens on plain TCP instead of Multipath TCP; GODEBUG=multipathtcp=2 opts back in.

What is coming next

Bug fixes are tracked in GitHub milestones. Feature requests live on feedback.patchmon.net, where you can propose an idea, vote on existing ones, and see what has been accepted onto the roadmap.

Questions about this release

This release has its own thread under New Release Discussions. Open a new issue for a reproducible bug not already covered.