Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2024-26012: A improper neutralization of special elements used in an os command ('os command injection') in Fortinet Forti

37
Routine
MEDIUM 6.7UPGRADEUPGRADEUPGRADE

CVE-2024-26012 is a medium-severity flaw (CVSS 6.7) affecting fortiap, fortiap-s, fortiap-w2. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.

A improper neutralization of special elements used in an os command ('os command injection') in Fortinet FortiAP-S 6.2 all verisons, and 6.4.0 through 6.4.9, FortiAP-W2 6.4 all versions, 7.0 all versions, 7.2.0 through 7.2.3, and 7.4.0 through 7.4.2, FortiAP 6.4 all versions, 7.0 all versions, 7.2.0 through 7.2.3, and 7.4.0 through 7.4.2 allow a local authenticated attacker to execute unauthorized code via the CLI.

Why this priority

  • No elevated risk signals yet

A fixed release or distro patch exists.

Risk facts

CVSS score6.7 (Medium)
Attack vectorLocal
Attack complexityLow
Privileges neededHigh
User interactionNone
EPSS exploit chance0.7% (top 47%)
CISA exploited listNo
WeaknessCWE-78
Published2025-01-14
Last modified2026-06-17
Publisher (CNA): Fortinet, Inc. · Vendor: fortinet

Share: LinkedIn · X · Reddit

Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score

Am I affected?

Timeline

fortinet fortiap UPGRADE
Affected: >= 6.4.1 and < 7.2.4 · >= 7.4.0 and < 7.4.3
Fixed in: 7.2.4, 7.4.3
Safe to downgrade to: a release before 6.4.1
1. Check installed version
apt-cache policy fortiap || rpm -q fortiap || fortiap --version
2. UPGRADE to 7.2.4 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade fortiap
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade fortiap
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 6.4.1 (Debian / Ubuntu)
apt-cache madison fortiap sudo apt install fortiap=<VERSION_BEFORE_6.4.1> sudo apt-mark hold fortiap
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list fortiap sudo dnf downgrade fortiap-<VERSION_BEFORE_6.4.1> sudo dnf versionlock add fortiap
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
fortinet fortiap-s UPGRADE
Affected: >= 6.2.0 and < 6.4.10
Fixed in: 6.4.10
Safe to downgrade to: a release before 6.2.0
1. Check installed version
apt-cache policy fortiap-s || rpm -q fortiap-s || fortiap-s --version
2. UPGRADE to 6.4.10 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade fortiap-s
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade fortiap-s
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 6.2.0 (Debian / Ubuntu)
apt-cache madison fortiap-s sudo apt install fortiap-s=<VERSION_BEFORE_6.2.0> sudo apt-mark hold fortiap-s
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list fortiap-s sudo dnf downgrade fortiap-s-<VERSION_BEFORE_6.2.0> sudo dnf versionlock add fortiap-s
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
fortinet fortiap-w2 UPGRADE
Affected: >= 6.4.0 and < 7.2.4 · >= 7.4.0 and < 7.4.3
Fixed in: 7.2.4, 7.4.3
Safe to downgrade to: a release before 6.4.0
1. Check installed version
apt-cache policy fortiap-w2 || rpm -q fortiap-w2 || fortiap-w2 --version
2. UPGRADE to 7.2.4 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade fortiap-w2
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade fortiap-w2
Note
Distros often backport fixes without changing the version number. Confirm with the distro advisory or changelog.
3. If no update is available yet, DOWNGRADE to a release before 6.4.0 (Debian / Ubuntu)
apt-cache madison fortiap-w2 sudo apt install fortiap-w2=<VERSION_BEFORE_6.4.0> sudo apt-mark hold fortiap-w2
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list fortiap-w2 sudo dnf downgrade fortiap-w2-<VERSION_BEFORE_6.4.0> sudo dnf versionlock add fortiap-w2
Downgrade risk
Downgrading can break dependent software and may reopen older bugs. Read the distro advisory first and test on a non-production host.
After downgrade
Restart the service, and keep the package held until a fixed release ships.
Verify at the official source NVD · CVE Program · Report a problem with this page
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.

Quick answers

How do I fix CVE-2024-26012?

fortiap: upgrade to 7.2.4, 7.4.3; fortiap-s: upgrade to 6.4.10; fortiap-w2: upgrade to 7.2.4, 7.4.3. Exact commands for each OS are on this page.

Is CVE-2024-26012 being exploited?

CVE-2024-26012 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.

What does CVE-2024-26012 affect?

CVE-2024-26012 affects fortiap, fortiap-s, fortiap-w2. Severity is medium (CVSS 6.7). A improper neutralization of special elements used in an os command ('os command injection') in Fortinet FortiAP-S 6.2 all verisons, and 6.4.0 through 6.4.9, FortiAP-W2 6.4 all versions, 7.0 all versions, 7.2.0 through 7.2.3, and 7.4.0 thro

How urgent is CVE-2024-26012?

Priority 37/100. No elevated risk signals yet.

Software pages

Fortinet vulnerabilities

Related CVEs

References

← Back to latest CVEs

Get the weekly exploited-CVE digest by emailThe CVEs being attacked this week and how to fix them. No spam, unsubscribe any time.