Emergency FortiOS Upgrade on 24 FortiGates – What I Learned


In late October Fortinet published a critical PSIRT advisory with fixed builds 7.2.14, 7.4.13 and 7.6.8. For a single firewall that’s an evening task. I had 24 FortiGates across different customers – models from 40F to 200F, one active-active HA cluster, devices on 7.2.x and 7.4.x, some several builds behind.

Most of them were done in a single day. Here’s the process and what went wrong.

Inventory first

Before touching anything I built a simple table: hostname, model, current version, target version, HA yes/no, management access (SSO or local). Two things fell out of it immediately:

  • Branch changes. Devices on 7.2.13 had two options: 7.2.14 in the same branch or a jump to 7.4.13. 7.2 is close to end of engineering support, so I moved them to 7.4.13. A branch change means more config conversion, so those devices got extra attention afterwards.
  • Devices too far behind. A couple of units were on 7.2.10 / 7.2.11. You can’t always jump straight to the target – the FortiGuard Upgrade Path Tool tells you which intermediate builds are mandatory. Those went into a separate, later window.

The per-device runbook

Every device went through the same five steps:

  1. Backup the config – and keep the current firmware image, so a rollback is a restore, not a search on the support portal.
  2. Check the upgrade path if the device is more than one build behind.
  3. Upgrade and reboot – roughly 10–15 minutes per unit, more on smaller models.
  4. Verify – internet, IPsec and SSL VPN, critical services, routing (BGP/OSPF neighbors where applicable), HA sync.
  5. Review logs – admin logins and VPN logins since the last known-good date. When the reason for the upgrade is an actively exploited CVE, you’re not done until you’ve checked whether someone got in before you patched.

After every upgrade I also ran:

get system status
diagnose debug config-error-log read

The second command lists configuration lines the new firmware refused to load. Empty output is what you want – especially after a branch change.

Customer communication

Each customer got their own email, not a mass mailing with everyone in BCC. It takes longer, but it lets you say exactly what will happen to their network (short outage vs. HA failover, what to test afterwards), and replies don’t end up in a shared thread.

The HA cluster

One customer runs an active-active FGCP cluster. With uninterruptible-upgrade enabled, FortiOS upgrades the secondary first, fails over, then upgrades the original primary.

Two things worth knowing:

  • session-pickup was disabled in that cluster. That means during failover, existing sessions drop – users notice a short reconnect. Check this before you promise “zero downtime”.
  • Who ends up primary. With override disable, the uptime difference decides first – but only if it’s more than 300 seconds. After an upgrade both units rebooted recently, so the difference was under 5 minutes and priority decided. The unit with the higher priority stayed primary, as intended.

After the upgrade the secondary showed out-of-sync for about 10 minutes (checksum mismatch on the root VDOM). It resolved on its own, without intervention. I’d still check it before leaving:

get system ha status
diagnose sys ha checksum cluster

If it doesn’t converge within ~15 minutes, then it’s time to look at diagnose sys ha checksum recalculate.

The bug: admin SSO broken on 7.6.8

A few devices that were already on 7.4.12 were moved to the newest branch, 7.6.8. The upgrade itself went fine. The next morning, admin login via SAML SSO didn’t:

Single Sign-On Failed

…with a redirect to /error/saml. It turned out to be a known bug in 7.6.8 affecting administrator SSO (SAML, FortiCloud SSO, Security Fabric SSO). VPN user SSO was unaffected, and so were 7.2.14 and 7.4.13. The SAML config itself was unchanged after the upgrade – config-error-log was clean. The crash log confirmed it:

diagnose debug crashlog read

…showing a violation related to the SAML SP metadata file.

There was no workaround except using a different admin authentication method. The options were:

  • (a) log in with a local admin / RADIUS / TACACS+ and wait for the fixed build (announced for 7.6.9), or
  • (b) downgrade to 7.4.13 and restore the pre-upgrade backup.

Because I had a working local break-glass account on every device, option (a) was a non-event. Without it, those firewalls would have been reachable only via console.

Lessons learned

Pick a mature build, not the newest one. The advisory fixed the vulnerability in all three branches. 7.4.13 was the boring, well-tested choice. Moving to 7.6.8 bought nothing for the customer and cost me a morning of troubleshooting. For production, I now default to the most mature branch that contains the fix.

Always keep a local break-glass admin. SSO is great until the SSO code path breaks. A local admin with a strong password, restricted by trusted hosts and local-in policy, is your insurance.

Your monitoring lies for a while. One device still showed the old version in monitoring hours after the upgrade – it simply hadn’t been polled yet. Trust the device (get system status), not the dashboard.

Not every box can follow. Some devices couldn’t be upgraded in this window – too far behind, or an older model. Write them down with a reason and a plan; “we’ll do it later” without a ticket means never.

Use the upgrade as an audit. You’re logged into every firewall anyway. I used the opportunity to check local-in policies, admin accounts and HA settings – and found more to fix than the firmware.

The checklist

[ ] inventory: model, version, target, HA, admin auth
[ ] upgrade path checked for devices > 1 build behind
[ ] customer notified individually
[ ] config backup + current firmware image saved
[ ] upgrade, reboot
[ ] verify: internet, VPN, routing, HA checksum
[ ] config-error-log read is empty
[ ] admin + VPN logs reviewed for suspicious logins
[ ] local break-glass admin works
[ ] documentation / ticket updated

Boring, repeatable, and that’s exactly the point.