Security Advisory

CVE-2024-23113: FortiOS fgfmd Format String RCE

Last updated:
  • CVE-2024-23113

CVE-2024-23113 is a format string flaw in fgfmd, the FortiOS daemon behind the FGFM access that FortiManager uses to reach a FortiGate: a remote attacker with no account can run code or commands on the device with crafted requests. NVD scores it 9.8 and CISA KEV lists it. Upgrade to FortiOS 7.0.14, 7.2.7 or 7.4.3; FortiProxy, FortiPAM and FortiSwitchManager are also affected.

Vulnerability summary

CVSS base score

9.8

Critical severity

EPSS score (FIRST)

61.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2024-23113 · Source: NVD

Affected components

ComponentCPEVersion range
Fortinet FortiOS (FortiGate firmware)cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*7.0.0 through 7.0.13 (fixed in 7.0.14); 7.2.0 through 7.2.6 (fixed in 7.2.7); 7.4.0 through 7.4.2 (fixed in 7.4.3); 6.x not affected
Fortinet FortiProxycpe:2.3:a:fortinet:fortiproxy:*:*:*:*:*:*:*:*7.0.0 through 7.0.15 per Fortinet (fixed in 7.0.16; NVD CPE ends at 7.0.14); 7.2.0 through 7.2.8 (fixed in 7.2.9); 7.4.0 through 7.4.2 (fixed in 7.4.3); 2.0 and 1.2 not affected
Fortinet FortiPAMcpe:2.3:o:fortinet:fortipam:*:*:*:*:*:*:*:*1.0, 1.1 and 1.2 all versions (migrate to a fixed release); 1.3 not affected
Fortinet FortiSwitchManagercpe:2.3:a:fortinet:fortiswitchmanager:*:*:*:*:*:*:*:*7.0.0 through 7.0.3 (fixed in 7.0.4); 7.2.0 through 7.2.3 (fixed in 7.2.4)

What does this mean for affected devices?

NVD describes CVE-2024-23113 as "a use of externally-controlled format string" in FortiOS 7.4.0 through 7.4.2, 7.2.0 through 7.2.6 and 7.0.0 through 7.0.13, FortiProxy 7.4.0 through 7.4.2, 7.2.0 through 7.2.8 and 7.0.0 through 7.0.14, FortiPAM 1.2.0, 1.1.0 through 1.1.2 and 1.0.0 through 1.0.3 and FortiSwitchManager 7.2.0 through 7.2.3 and 7.0.0 through 7.0.3 that "allows attacker to execute unauthorized code or commands via specially crafted packets". NVD's Primary score and Fortinet's CNA score are both CVSS v3.1 9.8 (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H); the CWE-134 label comes from Fortinet (NVD, CVE record).

Which firmware is affected and what is the fix?

Fortinet advisory FG-IR-24-029, "Format String Bug in fgfmd" (first published 2024-02-08, updated 2024-10-17), gives the fixes: FortiOS 7.4.3, 7.2.7 and 7.0.14 or above, with FortiOS 6.x not affected; FortiProxy 7.4.3, 7.2.9 and 7.0.16 or above, with 2.0 and 1.2 not affected; FortiSwitchManager 7.2.4 and 7.0.4 or above; and for FortiPAM 1.0, 1.1 and 1.2, "migrate to a fixed release" (1.3 is not affected). Fortinet lists FortiProxy 7.0 through 7.0.15, one release more than NVD's 7.0.14. The CISA KEV entry names FortiWeb among the products, which Fortinet's advisory does not list.

What is the workaround?

Fortinet's workaround is to remove fgfm from the allowaccess list of each interface. This stops FortiManager from discovering the FortiGate, while a connection the FortiGate starts still works. A local-in policy that allows FGFM only from a specific IP reduces the attack surface but, Fortinet says, is a mitigation and not a complete workaround, since the flaw can still be reached from that IP. Keeping management protocols off untrusted interfaces is the subject of CISA BOD 23-02 on internet-exposed management interfaces. The FortiManager side of the same protocol had its own exploited flaw, CVE-2024-47575.

Is CVE-2024-23113 exploited?

Yes. Fortinet's timeline marks it "Potentially exploited in the wild" on 2024-10-11, and CISA added it to the KEV catalog on 2024-10-09 with the required action "Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable." (due 2024-10-30) and known ransomware campaign use "Unknown"; it is listed as of 2026-11-25 in catalog version 2026.11.24 (CISA KEV). FIRST EPSS gives 0.61725, the 99.19th percentile, in the 2026-11-24 dataset (FIRST EPSS). The class fix is in how to fix memory corruption in embedded firmware.

How to fix this class of issueNo dedicated SoftWSP guide covers this weakness class; the fix is usually the vendor patch or firmware update referenced above. Our related guide explains how to plan and verify it: NIST SP 800-40 Rev. 4: enterprise patch management planning, explained.

Evidence

  • NVD (Analyzed): externally-controlled format string in FortiOS 7.4.0-7.4.2, 7.2.0-7.2.6, 7.0.0-7.0.13, FortiProxy 7.4.0-7.4.2, 7.2.0-7.2.8, 7.0.0-7.0.14, FortiPAM 1.2.0, 1.1.0-1.1.2, 1.0.0-1.0.3, FortiSwitchManager 7.2.0-7.2.3, 7.0.0-7.0.3; execute unauthorized code or commands via crafted packets; NVD Primary and Fortinet Secondary CVSS v3.1 9.8; CWE-134 from Fortinet; published 2024-02-15; read 2026-11-25. — NVD
  • FG-IR-24-029 'Format String Bug in fgfmd' (2024-02-08, updated 2024-10-17): remote unauthenticated code execution in FortiOS fgfmd; fixes FortiOS 7.4.3, 7.2.7, 7.0.14 (6.x not affected), FortiProxy 7.4.3, 7.2.9, 7.0.16 (7.0.0-7.0.15 affected; 2.0, 1.2 not affected), FortiSwitchManager 7.2.4, 7.0.4, FortiPAM 1.0-1.2 migrate to a fixed release (1.3 not affected); workaround remove fgfm from interface allowaccess (prevents FortiManager discovery, FortiGate-initiated connection still possible); local-in policy is mitigation only; timeline 2024-10-11 potentially exploited in the wild. — Fortinet PSIRT FG-IR-24-029
  • CVE record PUBLISHED, CNA Fortinet, 2024-02-15; CISA ADP SSVC exploitation active, automatable yes, technical impact total. — CVE.org
  • KEV catalog 2026.11.24: 'Fortinet Multiple Products Format String Vulnerability', short description names FortiOS, FortiPAM, FortiProxy and FortiWeb; dateAdded 2024-10-09, due 2024-10-30, required action 'Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.', knownRansomwareCampaignUse Unknown, CWE-134; checked 2026-11-25. — CISA KEV
  • EPSS 0.61725, percentile 0.99185, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Fortinet PSIRT FG-IR-24-029
  3. CVE.org record CVE-2024-23113 (CNA: Fortinet)
  4. CISA KEV
  5. FIRST EPSS

Frequently asked questions

Which FortiOS versions fix CVE-2024-23113?

FortiOS 7.0.14, 7.2.7 and 7.4.3 or above; FortiOS 6.x is not affected. FortiProxy is fixed in 7.0.16, 7.2.9 and 7.4.3, FortiSwitchManager in 7.0.4 and 7.2.4, and FortiPAM 1.0 to 1.2 users must migrate to a fixed release (per Fortinet FG-IR-24-029).

Is there a workaround for CVE-2024-23113?

Yes. Fortinet says to remove fgfm from each interface's allowaccess setting, which stops FortiManager from discovering the FortiGate. Limiting FGFM to one IP with a local-in policy is only a mitigation, not a full workaround (per FG-IR-24-029).

Is FortiWeb affected by CVE-2024-23113?

CISA's KEV entry names FortiWeb, but Fortinet's advisory FG-IR-24-029 and NVD list only FortiOS, FortiProxy, FortiPAM and FortiSwitchManager, as of 2026-11-25. Check Fortinet's advisory for your product (per CISA KEV, FG-IR-24-029 and NVD).

How serious is CVE-2024-23113?

NVD and Fortinet both score it CVSS v3.1 9.8: remote, unauthenticated code execution. CISA KEV lists it since 2024-10-09, and FIRST EPSS gives 0.61725 (99.19th percentile) in the 2026-11-24 dataset, as of 2026-11-25 (per NVD, CISA KEV and FIRST EPSS).