Recent CVEs are a good reason to check how current your UniFi OS console is. This guide covers patching the operating system, keeping UniFi OS Server up to date, and moving to a fresh CloudSOE image. The image runs on Ubuntu 26.04 LTS on both AWS and Azure. It doesn’t include PHP, so the PHP2Shell advisory doesn’t apply.

UniFi OS Server was installed with Ubiquiti’s official installer. It runs as rootless podman containers under the uosserver user, managed by the uosserver systemd service. It has its own updater (uosserver-updater.service). Ubuntu’s apt patches the OS and podman, but never UniFi OS Server itself.

What you can upgrade in place

ComponentIn place?How
Operating system (Ubuntu 26.04 packages, kernel)Yesapt update && apt upgrade, then reboot if asked (below)
Container runtime (podman, uidmap, slirp4netns)YesUbuntu archive packages, updated by apt upgrade. Restart uosserver afterwards
UniFi OS ServerYesUbiquiti’s built-in updater, or the console’s update settings (below)
UniFi applications inside the console (Network and others)YesUpdated from the console UI

Before you start: back up

1. Snapshot the disk

The whole console state lives on the instance’s disk, so a snapshot is a complete rollback:

  • AWS: EC2 → Volumes → select the instance’s root volume → Actions → Create snapshot.
  • Azure: the VM → Disks → select the OS disk → Create snapshot.

2. Download a console backup

In the UniFi OS console, open the system settings and download a backup to your own machine. In current releases this is under Settings → Control Plane → Backups. A backup kept only on the console doesn’t help if the instance is lost. The Network application also has its own backups under its settings, and it’s worth downloading one of those too.

Update the operating system

sudo apt update
sudo apt upgrade

If podman was updated, restart the console so its containers run on the new runtime. A reboot does the same thing:

sudo systemctl restart uosserver

Check whether a reboot is needed (usually after a kernel update):

[ -f /var/run/reboot-required ] && cat /var/run/reboot-required
sudo reboot

After a reboot, uosserver starts on its own and brings the console containers back. The one-time uosserver-firstboot service does not run again, because its marker /var/lib/uosserver-firstboot.done already exists. Give the console a few minutes, then check everything works.

Automatic security updates

The CloudSOE build leaves Ubuntu’s standard unattended-upgrades setup as it is. Ubuntu cloud images normally have it turned on for security updates, but it never reboots for you. Check it with:

systemctl status unattended-upgrades
cat /etc/apt/apt.conf.d/20auto-upgrades

Held packages

The image doesn’t hold any packages. If you added holds yourself, list them so you know what apt upgrade will skip:

apt-mark showhold

Don’t run an in-place release upgrade (do-release-upgrade) on this image. To move to a newer Ubuntu release, use a fresh image.

Upgrade UniFi OS Server

Know what you’re running

sudo uosserver status                    # console status
cat /etc/cloudsoe-support.txt            # CloudSOE image build and version

The console UI also shows the UniFi OS version and the versions of its applications.

Let the built-in updater do it

You don’t install UniFi OS Server versions by hand. Ubiquiti’s uosserver-updater service delivers new releases from Ubiquiti’s own release channel. Check that it’s running and see what it last did:

sudo systemctl status uosserver-updater
sudo journalctl -u uosserver-updater --no-pager -n 100

To check for an update or start one yourself, use the console’s update settings (Settings → Control Plane → Updates in current releases). Update the UniFi applications (such as Network) from the same place.

Before a UniFi OS update:

  1. Read Ubiquiti’s release notes for the version you’re moving to.
  2. Take a snapshot and download a backup.
  3. Expect the console and device management to be unavailable for a few minutes while the containers are replaced. Devices keep passing traffic while the console restarts.

If the version looks stuck, or the updater journal shows repeated failures, check free disk space first. UniFi OS Server needs around 20 GB free:

df -h /

If the updater still can’t get through, a fresh CloudSOE image with your backup restored is a clean way forward.

Move to a fresh CloudSOE image

A fresh image gets you the current UniFi OS Server release on a freshly patched OS. You build the new console next to the old one, restore your backup, then switch over.

1. Back up the old console

Download a fresh console backup (and a Network application backup) as described in Before you start. Note the old console’s UniFi OS and Network versions: the new console should run the same or a newer version.

2. Launch the latest image

Launch a new instance from the current CloudSOE UniFi OS Server listing: AWS guide or Azure guide. Open the same ports as on the old console.

3. Restore the backup

Browse to https://<new-ip>:11443. In the first-time setup wizard, choose to restore from a backup and upload the file you downloaded. If you’ve already finished the wizard, restore from the console’s backup settings instead. Sign in with the same Ubiquiti account you used on the old console.

4. Point your devices at the new console

Your devices still send inform traffic to the old address. Pick one:

  • Move the address (best). On AWS, move the Elastic IP from the old instance to the new one (EC2 → Elastic IPs → Associate). On Azure, move the static public IP to the new VM’s network interface. If devices inform to a DNS name, update the DNS record instead. Devices reconnect with no other change.
  • Re-inform the devices. If the address has to change, SSH to each device and point it at the new console:
set-inform http://<new-ip>:8080/inform

Adopted devices use the device SSH credentials set in your console, not ubnt/ubnt.

5. Retire the old instance

Once every device shows as Online on the new console, stop the old instance. Stopping it keeps devices from flapping between two consoles. After a few days, terminate or delete it, and clean up the snapshots you no longer need.

Check everything works

On the instance:

sudo systemctl status uosserver uosserver-updater
sudo uosserver status
sudo journalctl -u uosserver --no-pager -n 50

From your own machine (an Azure VM often can’t reach its own public IP), check the management UI. A 200 or a redirect means the console is up:

curl -skI https://<public-ip>:11443/

Finally, log in to the console and confirm that the UniFi OS and application versions are the ones you expected and that your devices show as Online.

Next steps