CVE-2025-25249: Fortinet Multiple Products Heap-based Buffer Overflow Vulnerability
86
Patch now
HIGH 8.1EXPLOITEDREMOTEUPGRADEUPGRADEDOWNGRADE
CVE-2025-25249 is a high-severity flaw (CVSS 8.1) affecting fortios, fortiswitchmanager, fortisase, reported as exploited in the wild. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
A heap-based buffer overflow vulnerability in Fortinet FortiOS 7.6.0 through 7.6.3, FortiOS 7.4.0 through 7.4.8, FortiOS 7.2.0 through 7.2.11, FortiOS 7.0.0 through 7.0.17, FortiOS 6.4 all versions, FortiSwitchManager 7.2.0 through 7.2.6, FortiSwitchManager 7.0.0 through 7.0.5 allows attacker to execute unauthorized code or commands via specially crafted packets
Why this priority
- High severity
- Exploited in the wild (CISA KEV)
- Public exploit reference
- Remotely exploitable, no login, no user action
A fixed release or distro patch exists.
Am I affected?
Timeline
- Published CVE record published
- Exploited Added to the CISA Known Exploited Vulnerabilities list
- Deadline CISA due date for US federal agencies to patch
- Updated Record last modified
fortinet fortios UPGRADE
Affected: >= 6.4.0 and < 7.0.18 · >= 7.2.0 and < 7.2.12 · >= 7.4.0 and < 7.4.9 · >= 7.6.0 and < 7.6.4
Fixed in: 7.0.18, 7.2.12, 7.4.9, 7.6.4
Safe to downgrade to: a release before 6.4.0
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
fortinet fortiswitchmanager UPGRADE
Affected: >= 7.0.0 and < 7.0.6 · >= 7.2.0 and < 7.2.7
Fixed in: 7.0.6, 7.2.7
Safe to downgrade to: a release before 7.0.0
1. Check installed version
apt-cache policy fortiswitchmanager || rpm -q fortiswitchmanager || fortiswitchmanager --version
2. UPGRADE to 7.0.6 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade fortiswitchmanager
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade fortiswitchmanager
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 7.0.0 (Debian / Ubuntu)
apt-cache madison fortiswitchmanager
sudo apt install fortiswitchmanager=<VERSION_BEFORE_7.0.0>
sudo apt-mark hold fortiswitchmanager
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list fortiswitchmanager
sudo dnf downgrade fortiswitchmanager-<VERSION_BEFORE_7.0.0>
sudo dnf versionlock add fortiswitchmanager
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 fortisase DOWNGRADE
Affected: 25.1.39 · 25.1.51
Fixed in: no fixed release known
Safe to downgrade to: a release before 25.1.39
1. Check installed version
apt-cache policy fortisase || rpm -q fortisase || fortisase --version
2. No fixed release: DOWNGRADE to a release before 25.1.39 (Debian / Ubuntu)
apt-cache madison fortisase
sudo apt install fortisase=<VERSION_BEFORE_25.1.39>
sudo apt-mark hold fortisase
2. No fixed release: DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list fortisase
sudo dnf downgrade fortisase-<VERSION_BEFORE_25.1.39>
sudo dnf versionlock add fortisase
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.
siemens ruggedcom ape1808 firmware MITIGATE
Affected: all versions
Fixed in: no fixed release known
Safe to downgrade to: no unaffected older release
Check your OS release
cat /etc/os-release; uname -r
Debian / Ubuntu
sudo apt update && sudo apt full-upgrade
RHEL / Amazon Linux / Fedora
sudo dnf upgrade --refresh
Windows
Install the latest cumulative update from Windows Update
If no patch exists yet
OS downgrades are not safe. Apply the vendor mitigation from the advisory and restrict exposure.
Exact fixes by distribution
A distro patch exists: prefer upgrading over downgrading.
Fedora 46 · retext · FIXED · 8.1.0-1.fc46 · FEDORA-2026-0602a84203 · source
sudo dnf upgrade --advisory=FEDORA-2026-0602a84203
Verify at the official source NVD · CVE Program · CISA KEV catalog · 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.
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Related CVEs
- CVE-2026-71407 MEDIUM 5.6 UPGRADE A Stack-based Buffer Overflow vulnerability [CWE-121] vulnerability in Fortinet FortiOS 7.6.1 through 7.6.6 ma
- CVE-2026-71408 MEDIUM 5.3 UPGRADE A allocation of resources without limits or throttling vulnerability in Fortinet FortiOS 7.6.0 through 7.6.6,
- CVE-2024-21762 CRITICAL 9.8 EXPLOITED UPGRADE UPGRADE Fortinet FortiOS Out-of-Bound Write Vulnerability
- CVE-2025-61624 MEDIUM 6.0 EXPLOITED UPGRADE UPGRADE Fortinet Multiple Products Path Traversal Vulnerability