CVE-2021-24016
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAn improper neutralization of formula elements in a csv file in Fortinet FortiManager version 6.4.3 and below, 6.2.7 and below allows attacker to execute arbitrary commands via crafted IPv4 field in policy name, when exported as excel file and opened unsafely on the victim host.
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceFortiManager versions 6.4.3 and below, 6.2.7 and below contain an improper neutralization of formula elements in CSV exports. An attacker with sufficient privileges to create or modify policy objects can insert crafted IPv4 field values containing spreadsheet formula syntax (e.g., =CMD) into policy names. When the policy table is exported as an Excel-compatible CSV file and opened by a victim, the formula executes, allowing arbitrary command execution on the victim's host.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data< 6.2.8>= 6.4.0, < 6.4.4CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Local
- Complexity
- High
- Privileges
- High
- User interaction
- Required
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:U/C:H/I:H/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Check FortiManager versionRun `get system status` in FortiManager CLI or check System > Settings > FortiManager in the GUI to view the firmware versionAffected if Version is below 6.2.8, or between 6.4.0 and 6.4.3 inclusive
-
Identify users with policy modification privilegesReview user accounts and their profiles in FortiManager GUI under User & Device > User Definition or `diagnose sys admin list` in CLIAffected if Any user account has write access to policy packages (creates/modify privilege)
-
Examine policy objects for formula injection syntaxIn FortiManager CLI, run `diagnose fw policy list` or use the GUI to view Policy & Objects > Firewall Policy, then search policy names for characters: =, +, -, @, or leading tabs/spacesAffected if Any policy name contains spreadsheet formula syntax such as =CMD, =+cmd, or similar patterns typically used in CSV injection
-
Review recent CSV exportsCheck the FortiManager file system under /tmp or /var/log for recently generated CSV files, or ask users if they have exported policy tables to CSVAffected if CSV exports of policy tables exist and were opened in spreadsheet software without Protected View enabled
You are affected if FortiManager version is below 6.2.8 or between 6.4.0 and 6.4.3, AND any user with policy modification privileges exists, AND policy objects contain formula-like syntax in their names that could have been exported to CSV.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped6.2.86.4.4
Upgrade FortiManager to version 6.4.4, 6.2.8, or later to patch the formula injection vulnerability. Additionally, warn users to avoid opening untrusted exported files and enable Protected View in Excel as a defense-in-depth measure.
FortiManager 6.2.8 or later (6.2 branch) / 6.4.4 or later (6.4 branch)
- 1. Identify the current FortiManager version by navigating to System Settings > Dashboard > Status or using 'get system status' in CLI
- 2. If running version 6.2.x and below 6.2.8: Plan upgrade to FortiManager 6.2.8 or later stable 6.2.x release
- 3. If running version 6.4.0 through 6.4.3: Plan upgrade to FortiManager 6.4.4 or later stable 6.4.x release
- 4. Before upgrading, backup the FortiManager configuration using 'execute backup full-config' via FTP/SCP or FMG
- 5. Review Fortinet release notes for the target version to understand any behavioral changes or migration requirements
- 6. Execute the upgrade via FortiManager web UI (System Settings > Firmware) or CLI using 'execute restore image' with the new firmware file
- 7. After upgrade, verify the system is operational and all services are running correctly
- 8. As a workaround for unpatched versions: Do not export policy tables to CSV/Excel, or open exported files in a sandboxed environment
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $5,120.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2021-24016 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2021-24016 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data