CVE-2023-46718
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 · uneditedA stack-based buffer overflow in Fortinet FortiOS version 7.4.0 through 7.4.1 and 7.2.0 through 7.2.7 and 7.0.0 through 7.0.12 and 6.4.6 through 6.4.15 and 6.2.9 through 6.2.16 and 6.0.13 through 6.0.18 allows attacker to execute unauthorized code or commands via specially crafted CLI commands.
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 confidenceA stack-based buffer overflow in Fortinet FortiOS allows authenticated attackers to execute arbitrary code or commands via specially crafted CLI commands. The vulnerability stems from insufficient bounds checking when processing CLI input, enabling a stack-based overflow that can overwrite return addresses and facilitate code execution.
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.0.13, <= 6.0.18>= 6.2.9, <= 6.2.17>= 6.4.6, <= 6.4.16>= 7.0.0, < 7.2.12>= 7.4.0, < 7.4.2>= 7.0.0, < 7.4.8CVSS 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
- Low
- Privileges
- Low
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- High
- Integrity
- High
- Availability
- High
CVSS:3.1/AV:L/AC:L/PR:L/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.
-
Check FortiOS versionRun 'get system status' in the FortiOS CLI or view the dashboard in FortiManager. Alternatively, check the Firmware version shown in the system information widget on the FortiOS web UI.Affected if The displayed version falls within these ranges: 6.0.13 to 6.0.18, 6.2.9 to 6.2.17, 6.4.6 to 6.4.16, 7.0.0 to 7.2.12, or 7.4.0 to 7.4.2.
-
Check FortiProxy version (if deployed)For FortiProxy appliances, run 'get system status' in the CLI or check the web UI system information.Affected if The FortiProxy version is 7.0.0 or higher but lower than 7.4.8.
-
Verify CLI access method is enabledRun 'show system interface' and review admin access settings. Check which interfaces have 'set admin-port' or 'set admin-ssh' enabled. Also run 'show system admin' to list admin accounts and their access methods.Affected if CLI access (SSH, telnet, or console) is enabled on any management or external interface.
-
Review CLI command audit logsRun 'execute log filter category 1' to enable CLI event logging, then review logs with 'execute log filter view' or check the Log & Report > Event Log > CLI section in the web UI for unusually long or complex commands.Affected if Audit logs show CLI commands that are excessively long, contain repeated characters, or originate from unexpected sources.
You are affected if your FortiOS version is 6.0.13-6.0.18, 6.2.9-6.2.17, 6.4.6-6.4.16, 7.0.0-7.2.12, or 7.4.0-7.4.2 (or FortiProxy 7.0.0-7.4.8) AND CLI access is enabled for your administrators.
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.127.4.27.4.8
Upgrade FortiOS to the latest version. The description does not specify fixed versions; consult Fortinet's security advisory for the complete patch information. Limit CLI access to trusted personnel and monitor for suspicious CLI activity.
FortiOS 7.2.12+ or 7.4.2+ (or migrate to 7.0.13+); FortiProxy 7.4.8+
- 1. Identify the currently installed FortiOS or FortiProxy version using the CLI command 'get system status' or through the web UI under Dashboard > Status.
- 2. For FortiOS: If running 7.0.x, upgrade to FortiOS 7.0.13 or later (or 7.2.12+/7.4.2+). If running 7.2.x, upgrade to FortiOS 7.2.12 or later. If running 7.4.x, upgrade to FortiOS 7.4.2 or later. For 6.4.x and 6.2.x, upgrade to a version within the 7.x release train that is at or above the fixed versions.
- 3. For FortiProxy: Upgrade to FortiProxy 7.4.8 or later.
- 4. Download the appropriate firmware from https://support.fortinet.com/ and upload it via the FortiOS/FortiProxy web UI under System > Firmware, or via CLI using 'execute firmware upgrade' command.
- 5. After upgrade, verify the version using 'get system status' and confirm the vulnerability is resolved.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation4.0 h
- Implementation8.0 h
- Testing6.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,600.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2023-46718 — 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-2023-46718 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