Skip to content
Memory corruption Write-up Advanced

CVE-2023-25610 a critical RCE vulnerability in FortiOS: everything you need to know

A buffer underwrite in FortiOS's administrative interface could let an unauthenticated remote attacker execute arbitrary code or cause a denial of service by sending specially crafted requests. A proof of concept was published, increasing the likelihood of exploitation.

Merav Bar Follow

Published on wiz.io

On March 7, Fortinet published an advisory for CVE-2023-25610, a critical remote code execution (RCE) vulnerability in FortiOS, Fortinet's operating system. This vulnerability is a buffer underwrite bug in the administrative interface which could allow a remote unauthenticated attacker to execute code using specially…

Merav Bar, on wiz.io

The full write-up lives on its author's site

It belongs to its author, so we link to it rather than copy it. The other two tabs are our own rewrites, checked against it.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

How it worked

Root cause

Likely a buffer underwrite in the administrative interface's handling of HTTP requests, where data is written to a buffer smaller than the data size.

Impact

An unauthenticated attacker could execute arbitrary code remotely or cause a denial of service on the GUI; a proof of concept has been published, increasing the likelihood of exploitation.

What the attacker needed

Network access to the administrative interface; no authentication required

The fix

Upgrade to the patched versions listed (e.g., FortiOS 7.4.0 or above, 7.2.4 or above, etc.) or, if unable to upgrade, disable the HTTP/HTTPS administrative interface or restrict access to it by IP address.

Explained by bugbounty.wiki with AI from the original and checked against quotes from it; it can still be wrong. Read the original before relying on a detail.

Not written yet. The AI write-up for this write-up has not been written yet. The Original tab links to the source.

A buffer underwrite happens when a program writes data into a memory area that is too small, so the data spills into nearby memory. In this case, the administrative web interface of FortiOS (the software that runs Fortinet firewalls) had this flaw, and an attacker could send a crafted request to take control of the device or crash it.

What is Memory corruption?

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.

More by Merav Bar

View all

27 more disclosed reports, best first.

Similar reports

View all

Same bug class and techniques, clearest first.

Memory corruption

The lesson behind this report.

Native code reads or writes memory it should not: overflows, use-after-free, type confusion. The core of browser, kernel and parser bugs.