CVE-2024-40584
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 special elements used in an OS command ('OS Command Injection') vulnerability [CWE-78] in Fortinet FortiAnalyzer version 7.4.0 through 7.4.3, 7.2.0 through 7.2.5, 7.0.0 through 7.0.13, 6.4.0 through 6.4.15 and 6.2.2 through 6.2.13, Fortinet FortiManager version 7.4.0 through 7.4.3, 7.2.0 through 7.2.5, 7.0.0 through 7.0.13, 6.4.0 through 6.4.15 and 6.2.2 through 6.2.13, Fortinet FortiAnalyzer BigData version 7.4.0, 7.2.0 through 7.2.7, 7.0.1 through 7.0.6, 6.4.5 through 6.4.7 and 6.2.5, Fortinet FortiAnalyzer Cloud version 7.4.1 through 7.4.3, 7.2.1 through 7.2.5, 7.0.1 through 7.0.13 and 6.4.1 through 6.4.7 and Fortinet FortiManager Cloud version 7.4.1 through 7.4.3, 7.2.1 through 7.2.5, 7.0.1 through 7.0.13 and 6.4.1 through 6.4.7 GUI allows an authenticated privileged attacker to execute unauthorized code or commands via crafted HTTPS or HTTP requests.
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 confidenceOS command injection vulnerability in FortiAnalyzer and FortiManager GUI allows authenticated privileged attackers to execute arbitrary OS commands via crafted HTTPS/HTTP requests. The flaw stems from improper neutralization of special elements in user-supplied input being passed to system shell commands.
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.4.1, <= 7.0.14>= 7.2.1, < 7.2.6>= 7.4.1, < 7.4.4>= 6.2.2, <= 6.2.13>= 6.4.0, < 7.2.6>= 7.4.0, < 7.4.4>= 6.2.1, < 7.2.8= 7.4.0>= 6.4.1, < 7.2.6>= 7.4.1, < 7.4.4>= 6.2.2, < 7.2.6>= 7.4.0, < 7.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
- Network
- Complexity
- Low
- Privileges
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/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.
-
Identify the installed Fortinet product and versionRun the following CLI command on the device: 'get system status' or 'fnsysctl get system status' to display the product name and firmware version.Affected if The product is FortiManager or FortiAnalyzer and the version falls within any of the affected ranges: FortiManager >= 6.2.2 <= 6.2.13, >= 6.4.0 < 7.2.6, >= 7.4.0 < 7.4.4; FortiManager Cloud >= 6.4.1 <= 7.0.14, >= 7.2.1 < 7.2.6, >= 7.4.1 < 7.4.4; FortiAnalyzer >= 6.2.2 < 7.2.6, >= 7.4.0 < 7.4.4; Fort
-
Verify GUI administrative access is enabledRun the CLI command: 'get system interface' or check via 'show system interface' to see if the management interface has HTTP/HTTPS services enabled.Affected if The GUI service (HTTP or HTTPS) is enabled on any accessible interface, as this vulnerability is exploitable through crafted HTTPS/HTTP requests to the GUI.
-
Check GUI access policy and network exposureRun: 'get firewall policy' or 'show firewall policy' to review policies controlling GUI access, and verify the source addresses permitted to reach the GUI interface.Affected if The GUI is reachable from untrusted networks or there are no strict source IP restrictions on administrative access to the GUI interface.
-
Confirm presence of privileged administrative accountsRun: 'get admin user' or 'show system admin' to list administrative users and their privilege levels.Affected if There are privileged administrative accounts configured, as the CVE requires authenticated privileged attackers to exploit the command injection.
You are affected if you are running FortiAnalyzer or FortiManager with GUI enabled and your firmware version falls within the affected ranges listed, regardless of GUI network exposure since the vulnerability is present in the code.
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 · scoped7.2.67.2.87.4.4
Apply Fortinet patches/updates to the latest supported versions for all affected products. Limit GUI administrative access to trusted networks and privileged users only.
FortiManager/FortiAnalyzer: 7.4.4 (or 7.2.6, 7.0.14, 6.4.16, or 6.2.14 depending on your current branch) | FortiManager Cloud/FortiAnalyzer Cloud: 7.4.4, 7.2.6, 7.0.14, 6.4.16, or 6.2.14 | FortiAnalyzer Big Data: 7.4.4, 7.2.8, 7.0.7, 6.4.8, or 6.2.6
- 1. Identify the currently installed FortiAnalyzer, FortiManager, or FortiAnalyzer/Manager Cloud version using the web GUI (System Settings > Dashboard > System Information) or CLI: get system status
- 2. Based on your current major version branch, plan the upgrade to the first fixed version in that branch: For 7.4.x branch, upgrade to 7.4.4; For 7.2.x branch, upgrade to 7.2.6; For 7.0.x branch, upgrade to 7.0.14; For 6.4.x branch, upgrade to 6.4.16; For 6.2.x branch, upgrade to 6.2.14
- 3. Before upgrading, backup the current configuration via GUI (System Settings > Maintenance > Backup) or CLI: execute backup config
- 4. Download the appropriate firmware image from Fortinet Customer Support portal for your specific product model
- 5. Upload and install the firmware via GUI (System Settings > Firmware > Upload) or CLI: execute system firmware-upgrade
- 6. After reboot, verify the upgrade was successful and the new version matches the expected fixed version: get system status
- 7. Validate that the GUI functionality and core features are working as expected
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation4.0 h
- Testing3.0 h
- Review / QA1.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,800.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-40584 — 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-2024-40584 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