v0.4.5 — security, command-builder, CLI and Web UI audit fixes
Version 0.4.5 resolves findings from a multi-pass security and correctness
audit across the command builder, live patcher, guest CLI tools, Web UI,
packaging, and documentation.
Host and guest boundary hardening
- Unpacked OCI rootfs confinement:
pve-microvm-template,pve-oci-import,
andbuild-exo-template.shresolve unpacked directory paths strictly inside
the guest rootfs while supporting merged-/usr(sbin -> usr/sbin) and
/var/runsymlinks. Build cleanup decodesfindmnthex escapes as raw
bytes, fails closed when mount state cannot be verified, and blocks
mkfs.ext4if any mount remains under the work tree. Standard and full
template builds execute package managers inside a host-root chroot and
require trusted base images. - VM-bound SSH agent forwarding:
pve-microvm-ssh-agentreplaces the open
socatvsock listener with a non-blockingAF_VSOCKselectorsrelay that
accepts connections only fromCID == VMID + 1000, monitors the target
microVM's live QEMU(pid, starttime)and hostSSH_AUTH_SOCKinode,
propagates half-closes without EOF CPU spin, and closes lock file descriptors
before detaching. - Locked
0700share state:pve-microvm-shareandpve-microvm-9p
enforce0700non-symlink runtime directories (upgrading pre-existing0755
directories on package configure), requireqm statusto confirm a stopped
VM before changing shares, verify(pid, starttime)before signalling
virtiofsd, and locate/usr/libexec/virtiofsdon stock Debian/Proxmox
hosts. - Web UI input validation and actions: Create µVM validates and
shell-quotes every field, checks/cluster/nextid, and opens a copyable
command dialog with aSys.Console-gated Open Node Shell action.
PVE.window.ClonereceivesguestType: 'qemu'inCmdMenuand
TemplateMenu, Serial Console invokesopenConsoleWindow('xtermjs', 'kvm', ...), and Options renders(n/a for microvm)without mutating
store records.
Command builder, live patcher and CLI fixes
MicroVM.pmandQemuServer.pmschema:pve-microvm-patchregisters
virtio-meminQemuServer.pm(qm set <vmid> --virtio-mem <MiB>).
MicroVM.pmenforces 2 MiB block alignment and at least 256 MiB of base RAM,
switchesvmem0tomemory-backend-memfd,share=onwhenvirtiofsis
active, usesvirtio-balloon-deviceon NetBSD MMIO guests (rejecting
PCIe-only options), expands PVEx86-64-v2/v2-AES/v3/v4qemu64flag
sets plusphys-bits/guest-phys-bits/custom CPU models, tokenisesargs
once with balanced-quote validation, sorts drives deterministically by bus
and numeric index afterscsi0, escapes commas, and leaves caller$conf
unmutated.- Atomic, serialised patching:
pve-microvm-patchserialisesapplyand
revertunderflock, replaces Perl modules, backups, and UI files via
fsynced sibling temp files, validates</head>and active<script>tags in
index.html.tpl, and watches/usr/share/pve-manager/index.html.tplwith a
dpkgfile trigger sopve-managerupgrades re-apply the UI hook. - Template, import and ephemeral runner fixes:
pve-microvm-template
restores the missingOSvloader download, skips package and first-boot
setup under--profile minimal, sets--agent 0when the guest agent is
disabled, honours explicit--no-*flags after--profile, and reads
qm config --current 1in--list.pve-oci-importrefuses to overwrite an
existingscsi0unless--replace-rootis passed.build-exo-template.sh
removes its hardcoded root password and configures key-only SSH and the
direct/dev/vport1p1guest-agent unit.pve-microvm-runseparatesstderr
warnings fromqm guest execJSONstdout, adds--timeout, maps signalled
guest exits to128 + signal, and attaches directly to the serial socket in
interactive (-it) mode.
Packaging, kernel initrd and verification
Makefileanddebian/rulesshare oneinstall-internaltarget;python3
is declared inDependsandvirtiofsdinRecommends. Release CI verifies
that the Git tag matchesdebian/changelog, enforcesREQUIRE_KERNEL=1
(vmlinuz,initrd, andbuild.configpresent in the.deb), and checks
theorasSHA-256 digest.kernel/build-kernel.shchecks static BusyBox applets compatible with Ubuntu
24.04 before downloading Linux, downloads tarballs atomically, cleans its
work directory on exit, and updates the initrd/initto parserootwait
andinit=before waiting on root devices while failing closed if an
explicitroot=device does not appear.- The local regression suite passes 106/106 checks (
make testand paired
Valgrind CPU/allocation passes). The shipped guest kernel remains Linux
6.12.113 with AppArmor selected by default; running guests do not need to
restart when upgrading the host package unless picking up new QEMU device or
kernel flags. See the audit summary.