CVE DatabaseCVE-2019-6693
한국어 권고문 →
CVE-2019-66936.5/MEDIUMCISA KEVCWE-798CWE-798

Fortinet FortiOS Hard-coded Cryptographic Key in Configuration Backup Vulnerability (CVE-2019-6693) Advisory

⚡ Jump to Patch
Affected Vendors
fortinet
Affected Components
fortios
Published Date
2019-11-21
CVSS v3.1
6.5
MEDIUM
EPSS (30d)
6.6%
FIRST.org
CISA KEV
Exploited

Executive & SecOps Summary

SECOPS ASSESSMENT
Affected Scope

FortiOS versions 6.0.4 and below, and 5.6.8 and below, when configuration backups are taken without a custom password

Impact

An attacker with access to the backup file can decrypt sensitive data, including user passwords, private key passphrases, and High Availability (HA) passwords, using the hard-coded key

Mitigation

Upgrade FortiOS to patched versions and enforce custom password encryption for all configuration backups

Affected Products & Version Scope

FortiOS versions 6.0.0 through 6.0.4, and 5.6.0 through 5.6.8 (when backups are created without a custom password)

Remediation & Live Workaround Commands

PATCH & WORKAROUND

1. Official Patch & Version Upgrade Commands

Fortinet recommends upgrading FortiOS to version 6.0.5 or higher, or 5.6.9 or higher. Use the following CLI commands to verify the current version and perform an upgrade via TFTP:

bash
# Check current FortiOS version details
get system status

# Restore/Upgrade firmware image securely from a TFTP server
execute restore image tftp FGT_60D-v6-build0366-FORTINET.out 192.168.1.99

2. Temporary Workaround & Hardening Configuration

If an immediate upgrade is not feasible, you must enforce custom password encryption whenever generating configuration backups to prevent the use of the hard-coded key.

bash
# Generate a backup file encrypted with a strong custom password via CLI
execute backup config flash /var/backup/fortios_secure.conf custom_password_123!

# Restrict administrative access to trusted IP ranges only
config system admin
    edit 'admin'
        set trusthost1 10.10.10.0 255.255.255.0
    next
end

3. Log Audit & IoC Verification Commands

Audit administrative logs to detect unauthorized configuration backup downloads or access anomalies.

bash
# Filter and display system logs related to backup operations
show log eventfilter
execute log filter category 1
execute log filter field subtype system
execute log display | grep -i 'backup'
Interactive SecOps Remediation Checklist
0/4 (0%)
Recommended Security Control & Mitigation Partner
NordLayer / Zero-Trust Network Access
Due to active exploitation (CISA KEV), immediately upgrade FortiOS to v6.0.5/v5.6.9 or higher and enforce custom password encryption on all backups.

Stop Exposing VPN Ports to the Internet — Switch to Zero-Trust Access

Eliminate public-facing VPN concentrators and firewall management ports with identity-first Zero-Trust Network Access.

90% Attack Surface Reduction · Hardware-Free

Technical Root Cause & Exploitation Mechanics

1. Vulnerability Overview & Root Cause

This vulnerability (CVE-2019-6693) arises from the use of a hard-coded cryptographic key within Fortinet FortiOS to encrypt sensitive data inside configuration backup files. When administrators generate a backup without explicitly defining a custom password, FortiOS defaults to using a static, built-in cryptographic key to obfuscate sensitive parameters. This design flaw allows anyone who obtains the backup file and possesses knowledge of the hard-coded key to reverse the encryption.

2. Exploitation Mechanics & Attack Scenario

The exploitation begins when an attacker gains read access to a FortiOS configuration backup file (.conf). This can be achieved through compromised low-privilege administrator accounts, insecure backup storage servers, or accidental exposure of configuration files. Using publicly known decryption scripts or tools containing the extracted hard-coded key, the attacker decrypts the backup file. This exposes sensitive credentials, such as user passwords (excluding the super-administrator password), SSL/TLS private key passphrases, and High Availability (HA) cluster pre-shared keys, enabling lateral movement and full network compromise.

3. Infrastructure & Business Impact

As a vulnerability listed in CISA's Known Exploited Vulnerabilities (KEV) catalog, CVE-2019-6693 poses a severe and active threat to enterprise networks. Exposure of SSL private keys allows attackers to perform man-in-the-middle (MitM) attacks or decrypt intercepted network traffic. Furthermore, compromised user credentials can facilitate unauthorized VPN access, bypassing perimeter defenses and leading to potential ransomware deployment or data exfiltration.

Official Vendor Advisories & References

NVD Original English Description

Use of a hard-coded cryptographic key to cipher sensitive data in FortiOS configuration backup file may allow an attacker with access to the backup file to decipher the sensitive data, via knowledge of the hard-coded key. The aforementioned sensitive data includes users' passwords (except the administrator's password), private keys' passphrases and High Availability password (when set).

Frequently Asked SecOps Questions (CVE-2019-6693)

FAQ

Q1. How critical is CVE-2019-6693 and is it actively exploited in the wild?

CVE-2019-6693 is rated CVSS 6.5 (MEDIUM) with a 30-day EPSS exploitation probability of 6.6%. It is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog, requiring immediate emergency remediation.

Q2. Which vendors and products are affected by CVE-2019-6693?

Primary impacted vendors include fortinet across fortios. Scope summary: FortiOS versions 6.0.0 through 6.0.4, and 5.6.0 through 5.6.8 (when backups are created without a custom password)

Q3. What temporary mitigations or workarounds exist for CVE-2019-6693 before patching?

[Mitigation] Upgrade FortiOS to patched versions and enforce custom password encryption for all configuration backups Follow the CLI remediation commands and interactive SecOps checklist on this page to restrict exposure prior to your maintenance window.

SECOPS WORKBENCH INTEGRATION

Generate an Internal Engineering Notice or CISO Report for CVE-2019-6693

Instantly format this advisory into an executive CISO summary or engineering patch ticket.

Generate Report →

🔗 Related Advisories in Similar Stack (fortinet)

View Category →
SecOps Advisory Dispatch & RSS Feed

Subscribe to Daily Vulnerability Briefings & KEV Alerts

Concise morning briefings for SecOps, DevSecOps, and SRE teams covering newly exploited CVEs and mitigation priorities.

Slack / Teams / RSS Feed:
PatchKO
CVE-2019-6693 Fortinet FortiOS Hard-coded Cryptographic Key in Configuration Backup Vulnerability (CVE-2019-6693) Advisory (CVSS 6.5) - Patch & Workaround | CVE Pulse