Security Advisory

CVE-2022-41328: FortiOS CLI Path Traversal

Last updated:
  • CVE-2022-41328

CVE-2022-41328 is a path traversal in Fortinet FortiOS CLI commands that lets a privileged attacker read and write files on the FortiGate's underlying Linux system. Fortinet found it while investigating modified firewalls of a governmental target, and CISA KEV lists it. NVD scores it 7.1. Upgrade to FortiOS 6.2.14, 6.4.12, 7.0.10 or 7.2.4; the 6.0 branch has no fixed release.

Vulnerability summary

CVSS base score

7.1

High severity

EPSS score (FIRST)

10.7%

Probability of exploitation in the wild in the next 30 days

CISA KEV catalog

Yes

Listed as known exploited

Published

Vulnerability ID: CVE-2022-41328 · Source: NVD

Affected components

ComponentCPEVersion range
Fortinet FortiOS (FortiGate firmware)cpe:2.3:o:fortinet:fortios:*:*:*:*:*:*:*:*6.0 all versions (no fixed 6.0 release listed); 6.2.0 through 6.2.13 (fixed in 6.2.14); 6.4.0 through 6.4.11 (fixed in 6.4.12); 7.0.0 through 7.0.9 (fixed in 7.0.10); 7.2.0 through 7.2.3 (fixed in 7.2.4)

What does this mean for affected devices?

NVD describes CVE-2022-41328 as a path traversal (CWE-22) in FortiOS 7.2.0 through 7.2.3, 7.0.0 through 7.0.9 and before 6.4.11 that "allows a privileged attacker to read and write files on the underlying Linux system via crafted CLI commands". NVD's Primary score is CVSS v3.1 7.1 (CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N); Fortinet, the CNA, scores it 6.7 (PR:H/A:H). NVD's CPE configuration covers 6.0.0 to 6.0.16, 6.2.0 to before 6.2.14, 6.4.0 to before 6.4.12, 7.0.0 to before 7.0.10 and 7.2.0 to before 7.2.4 (NVD, CVE record).

Which FortiGate firmware is affected and what is the fix?

Fortinet advisory FG-IR-22-369 (2023-03-07) lists FortiOS 7.2.0 to 7.2.3, 7.0.0 to 7.0.9, 6.4.0 to 6.4.11, 6.2.0 to 6.2.13 and all 6.0 versions, and marks the flaw as known exploited. The fixes are FortiOS 7.2.4, 7.0.10, 6.4.12 and 6.2.14 or above; the advisory lists no fixed 6.0 release, so 6.0 devices need to move to a fixed branch. It names no workaround.

How was CVE-2022-41328 found?

Fortinet's analysis of 2023-03-09 says several FIPS-enabled FortiGates of one customer halted with "Firmware Integrity self-test failed" and would not boot. Investigators found a modified /sbin/init and an added /bin/fgfm that could give an attacker persistent access, and evidence that the devices were likely compromised through the FortiManager that managed them, which had itself been modified. Fortinet calls the actor advanced and "highly targeted at governmental or government-related targets", and the blog lists further indicators of compromise. A FortiManager flaw exploited later is CVE-2024-47575; an earlier FortiOS CLI flaw on KEV is CVE-2021-44168.

Is CVE-2022-41328 on the CISA KEV list?

Yes. CISA added it on 2023-03-14 with the required action "Apply updates per vendor instructions." (due 2023-04-04) 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.10682, the 95.89th percentile, in the 2026-11-24 dataset (FIRST EPSS). The class fix is in how to fix path traversal in embedded firmware; ranking is in KEV and EPSS vulnerability prioritization.

How to fix this class of issueThis advisory's weakness class is Path traversal. Our practical guide covers how to detect, fix, verify and disclose it: How to fix path traversal in embedded firmware.

Evidence

  • NVD (Analyzed): path traversal in FortiOS 7.2.0-7.2.3, 7.0.0-7.0.9 and before 6.4.11 lets a privileged attacker read and write files on the underlying Linux system via crafted CLI commands; NVD Primary CVSS v3.1 7.1 AV:L/PR:L/C:H/I:H/A:N; Fortinet Secondary 6.7 PR:H; CWE-22; CPE 6.0.0-6.0.16, 6.2.0-<6.2.14, 6.4.0-<6.4.12, 7.0.0-<7.0.10, 7.2.0-<7.2.4; published 2023-03-07; read 2026-11-25. — NVD
  • FG-IR-22-369 (2023-03-07): affected FortiOS 7.2.0-7.2.3, 7.0.0-7.0.9, 6.4.0-6.4.11, 6.2.0-6.2.13, 6.0 all versions; upgrade to 7.2.4, 7.0.10, 6.4.12, 6.2.14 or above; Known Exploited: Yes. — Fortinet PSIRT FG-IR-22-369
  • Fortinet blog 'Analysis of FG-IR-22-369' (2023-03-09): FIPS-enabled FortiGates halted with 'Firmware Integrity self-test failed'; /sbin/init modified, /bin/fgfm added; likely compromised via the managing FortiManager, itself modified; advanced actor, highly targeted at governmental or government-related targets; IoCs listed. — Fortinet PSIRT blog
  • CVE record PUBLISHED, CNA Fortinet, 2023-03-07; CISA ADP SSVC exploitation active. — CVE.org
  • KEV catalog 2026.11.24: dateAdded 2023-03-14, due 2023-04-04, required action 'Apply updates per vendor instructions.', knownRansomwareCampaignUse Unknown, CWE-22; checked 2026-11-25. — CISA KEV
  • EPSS 0.10682, percentile 0.95888, dataset 2026-11-24, read 2026-11-25. — FIRST EPSS

Related advisories

Sources

  1. NVD
  2. Fortinet PSIRT FG-IR-22-369
  3. Fortinet PSIRT blog: Analysis of FG-IR-22-369 (2023-03-09)
  4. CVE.org record CVE-2022-41328 (CNA: Fortinet)
  5. CISA KEV
  6. FIRST EPSS

Frequently asked questions

Which FortiOS versions fix CVE-2022-41328?

FortiOS 6.2.14, 6.4.12, 7.0.10 and 7.2.4 or above. All FortiOS 6.0 versions are affected and the advisory lists no fixed 6.0 release, so those devices must move to a fixed branch (per Fortinet FG-IR-22-369).

Who exploited CVE-2022-41328?

Fortinet does not name the actor. Its analysis calls the attack advanced and highly targeted at governmental or government-related targets, with FortiGates likely compromised through their FortiManager (per Fortinet's 2023-03-09 analysis).

Does an attacker need access to exploit CVE-2022-41328?

Yes. NVD and Fortinet describe a privileged attacker running crafted CLI commands, so it is used once an attacker already has administrative access; Fortinet's analysis ties it to an attempt to replace a system file on a FortiGate (per NVD, FG-IR-22-369 and Fortinet's 2023-03-09 analysis).

How serious is CVE-2022-41328?

NVD scores it CVSS v3.1 7.1 and Fortinet 6.7. CISA KEV lists it since 2023-03-14, and FIRST EPSS gives 0.10682 (95.89th percentile) in the 2026-11-24 dataset, as of 2026-11-25 (per NVD, CISA KEV and FIRST EPSS).