Newline injection in network configuration via parser misalignment
Affected packages
libpve-common-perl, libpve-network-api-perl, proxmox-backup-manager, proxmox-datacenter-manager, pmg-api
Details
Inconsistent handling of CR bytes in API parameters/network configuration options allowed an authenticated attacker with privileges that allow modifying the host network configuration to inject options that are interpreted as arbitrary additional lines by ifupdown2.
As additional defense in depth the meta-characters used by the optional mako templating support in ifupdown2 were also forbidden inside comments for network interfaces. Templating is not used for the network configuration files in Proxmox products, but could be activated by installing the python3-mako package.
Fixed in
- libpve-common-perl >= 9.2.9
- libpve-network-api-perl >= 1.6.9
- proxmox-backup-server >= 4.2.12-1
- proxmox-datacenter-manger >= 1.1.10
- pmg-api >= 9.1.7
This page reproduces the official Proxmox forum post (opens in a new tab). The original is authoritative.