FortiOS configuration backups

CVE-2019-6693: FortiOS hard-coded key exposes secrets in config backups

FortiOS encrypts stored passwords with a hard-coded key, so anyone holding a config file can decrypt them. Fixed in 2020 as an opt-in setting, added to CISA KEV in June 2025 and flagged as used in ransomware campaigns.

Published Updated Fortinet advisory FG-IR-19-007

ExploitedYes, in CISA KEVAdded 25 Jun 2025
Ransomware useKnownPer CISA
SeverityMEDIUMCVSS 3.1 6.5
EPSS6.6%Chance of exploitation in 30 days
Public exploitNone reported
FixAvailable

Affected and fixed versions

Product / branchFixed in
FortiOS 6.2.06.2.1 or later, then enable private-data-encryption
FortiOS 6.0.0 to 6.0.66.0.7 or later, then enable private-data-encryption
FortiOS 5.6.10 and below5.6.11 or later, then enable private-data-encryption

Always confirm against the vendor advisory, which lists every fixed hotfix.

What it is

FortiOS encrypts some secrets in its configuration (the “ENC” values) with a key that is the same on every device and built into the firmware. Anyone who gets a configuration file or an unprotected backup can decrypt those values. Fortinet lists the administrator password as excluded. The CVE record lists user passwords, private key passphrases and the High Availability password.

This is not remote code execution, and the attacker needs the file first. Fortinet rates it medium (CVSS 4.3). It matters because CISA added it to KEV on 2025-06-25 and marks it as known to be used in ransomware campaigns. The public detail is thin. The Hacker News reports that multiple security vendors tied Akira ransomware actors to the flaw for initial access, and AhnLab ASEC lists it among the vulnerabilities Akira uses. Neither source describes how a config file was obtained, so treat the exact attack chain as unconfirmed.

The same advisory also covers CVE-2020-9289, the equivalent flaw in FortiManager and FortiAnalyzer.

Am I affected?

FortiOS is affected if it runs one of these (the CVE record lists slightly different boundaries; this page follows Fortinet’s advisory):

  • 6.2.0
  • 6.0.0 to 6.0.6
  • 5.6.10 and below

Fixed releases (5.6.11, 6.0.7, 6.2.1 and later) don’t fix this by themselves. They add a password-based encryption option that is off by default. A device on a newer release is still exposed until you enable it.

Check the setting:

show full-configuration system global | grep private-data-encryption

FIPS-CC devices are not affected, because they override the encryption method.

Also ask where your configuration files and backups live. The flaw only matters if someone other than you can read them.

What to do

1. Upgrade to 5.6.11, 6.0.7, 6.2.1 or later. Fortinet’s solution is a release that supports the new option, so in practice move to a currently supported branch.

2. Enable private-data-encryption, per Fortinet:

config system global
    set private-data-encryption enable
end

Fortinet warns that on FortiGates managed by FortiManager, or in HA, this can cause install errors and split-brain on older builds. These are fixed in FortiManager 6.2.7 and later, and FortiGate 6.2.6, 6.4.4 and 6.6.0 and later. Fortinet says you can compare keys with the exec private-encryption-key commands; check its advisory for the exact syntax before using them.

3. Protect every backup. Always set a password on configuration backups, and don’t share configs on forums or other unsafe channels.

4. If a config or backup may have leaked, treat what it held as exposed: rotate user passwords, private key passphrases and the HA password, plus any other secrets stored on the device (LDAP and RADIUS bind accounts, VPN pre-shared keys). Rotating the administrator password is sensible but is not covered by this flaw.

Detection

Nothing in the firewall logs shows a backup being decrypted offline, so detection is about the file and what follows.

  • Backup access: review who downloaded or exported configurations, and where copies sit (shares, ticket attachments, email, cloud storage, repositories).
  • Admin and VPN logins: look for sign-ins with the affected local accounts from unexpected addresses, especially after a config was shared or lost.
  • Follow-on activity: Akira activity described by AhnLab ASEC includes a new account hidden in SpecialAccounts, tools such as AnyDesk, RustDesk, Ngrok and Rclone, and .akira encrypted files with an akira_readme.txt note. Hunt for those on hosts reachable from the firewall.

Indicators of compromise

Checked the Fortinet advisory, CISA, AhnLab ASEC and The Hacker News. None publish indicators for this CVE. Because it is an offline weakness, there is no exploit traffic to match on the firewall.

No indicators of compromise have been published for this CVE yet. We'll add them here if the vendor or a researcher releases any. Until then, use the behaviour in Detection.

Sources

Spotted a mistake on this page? Tell us, and we'll fix it.

Page changelog

  • Full analysis published.

KEV status, EPSS score and vendor data refreshed automatically, last on 24 Nov 2026.

Get alerts

A notification when we publish a new analysis or a covered vendor gets a new actively exploited CVE. No account, no email.

Tell us what you think

What do you rely on here, what's missing, which vendor should we add? Every message is read by the editor.

Write to us

contact-us@patchtonight.com