Free and open · new CVEs checked every 20 minutesStatusRSSOpen dataContact

CVE-2023-27997: Fortinet FortiOS and FortiProxy SSL-VPN Heap-Based Buffer Overflow Vulnerability

100
Patch now
CRITICAL 9.8EXPLOITEDREMOTEUPGRADEUPGRADE

CVE-2023-27997 is a critical-severity flaw (CVSS 9.8) affecting fortiproxy, fortios, 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 [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, version 6.4.12 and below, version 6.0.16 and below and FortiProxy version 7.2.3 and below, version 7.0.9 and below, version 2.0.12 and below, version 1.2 all versions, version 1.1 all versions SSL-VPN may allow a remote attacker to execute arbitrary code or commands via specifically crafted requests.

Why this priority

  • Critical severity
  • EPSS top 1%: very likely to be exploited
  • Exploited in the wild (CISA KEV)
  • Used in ransomware campaigns
  • Public exploit reference
  • Covered by 3 security sources
  • CISA SSVC: automatable with total technical impact
  • Remotely exploitable, no login, no user action

A fixed release or distro patch exists.

Risk facts

CVSS score9.8 (Critical)
Attack vectorNetwork (remote)
Attack complexityLow
Privileges neededNone
User interactionNone
EPSS exploit chance85.7% (top 1%)
CISA exploited listYes, fix due 2023-07-04, used in ransomware
WeaknessCWE-122, CWE-787
Published2023-06-13
Last modified2026-07-31
Publisher (CNA): Fortinet, Inc. · Vendor: fortinet

Share: LinkedIn · X · Reddit

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

Am I affected?

Timeline

fortinet fortiproxy UPGRADE
Affected: >= 1.1.0 and <= 1.1.6 · >= 1.2.0 and <= 1.2.13 · >= 2.0.0 and <= 2.0.12 · >= 7.0.0 and <= 7.0.9 · >= 7.2.0 and <= 7.2.3
Fixed in: newer than 7.2.3
Safe to downgrade to: a release before 1.1.0
1. Check installed version
apt-cache policy fortiproxy || rpm -q fortiproxy || fortiproxy --version
2. UPGRADE to newer than 7.2.3 (Debian / Ubuntu)
sudo apt update && sudo apt install --only-upgrade fortiproxy
2. UPGRADE (RHEL / Amazon Linux / Fedora)
sudo dnf upgrade fortiproxy
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 1.1.0 (Debian / Ubuntu)
apt-cache madison fortiproxy sudo apt install fortiproxy=<VERSION_BEFORE_1.1.0> sudo apt-mark hold fortiproxy
3. If no update is available yet, DOWNGRADE (RHEL / Amazon Linux / Fedora)
dnf --showduplicates list fortiproxy sudo dnf downgrade fortiproxy-<VERSION_BEFORE_1.1.0> sudo dnf versionlock add fortiproxy
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 fortios UPGRADE
Affected: >= 6.0.0 and <= 6.0.16 · >= 6.2.0 and <= 6.2.13 · >= 6.4.0 and <= 6.4.12 · >= 7.0.0 and <= 7.0.11 · >= 7.2.0 and <= 7.2.4 · >= 6.0.12 and <= 6.0.16 · >= 6.2.9 and <= 6.2.13 · 6.0.10
Fixed in: newer than 7.2.4
Safe to downgrade to: a release before 6.0.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.

Exact fixes by distribution

Fedora 46 · borgmatic · FIXED · 2.2.0-1.fc46 · FEDORA-2026-041229e71b · source
sudo dnf upgrade --advisory=FEDORA-2026-041229e71b
Fedora ELN · pie · FIXED · 1.5.4-1.eln159 · FEDORA-2026-a2c0261d3a · source
sudo dnf upgrade --advisory=FEDORA-2026-a2c0261d3a

Public exploits and detection

Public code exists for this CVE. Treat unpatched systems as at risk, and only run PoCs in a lab.

Advisories and coverage

Official advisories

Research and news

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.

Quick answers

How do I fix CVE-2023-27997?

fortiproxy: upgrade to newer than 7.2.3; fortios: upgrade to newer than 7.2.4. Exact commands for each OS are on this page.

Is CVE-2023-27997 being exploited?

Yes. CVE-2023-27997 is on the CISA Known Exploited Vulnerabilities list, so treat it as patch-now.

What does CVE-2023-27997 affect?

CVE-2023-27997 affects fortiproxy, fortios. Severity is critical (CVSS 9.8). A heap-based buffer overflow vulnerability [CWE-122] in FortiOS version 7.2.4 and below, version 7.0.11 and below, version 6.4.12 and below, version 6.0.16 and below and FortiProxy version 7.2.3 and below, version 7.0.9 and below, version 2

How urgent is CVE-2023-27997?

Priority 100/100. Critical severity; EPSS top 1%: very likely to be exploited; Exploited in the wild (CISA KEV); Used in ransomware campaigns; Public exploit reference; Covered by 3 security sources; CISA SSVC: automatable with total technical impact; Remotely exploitable, no login, no user action

Software pages

Fortinet FortiOS vulnerabilities · 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.