CVE-2025-58413: Stack buffer overflow in CAPWAP daemon

Published Nov 18, 2025
·
Updated

A stack-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 all versions, FortiOS 7.0 all versions, FortiOS 6.4 all versions, FortiOS 6.2 all versions, FortiOS 6.0 all versions, FortiSASE 25.3.b allows attacker to execute unauthorized code or commands via specially crafted packets

Other sources

A stack-based overflow vulnerability [CWE-124] in FortiOS CAPWAP daemon may allow a remote unauthenticated attacker on an adjacent network to achieve arbitrary code execution via sending specially crafted packets. Note that in the default configuration, the attacker must be in control of an authorized FortiAP for the attack to succeed and have access to the same local IP subnet. Additionally, successful exploitation would require defeating stack protection and ASLR.

FortiGuard

Affected Software

12 affected componentsFixes available
Fortinet FortiOS>=7.6.0<=7.6.3
Fortinet FortiOS>=7.4.0<=7.4.8
Fortinet FortiOS>=7.2
Fortinet FortiOS>=7.0
Fortinet FortiOS>=6.4
Fortinet FortiOS>=6.2
Fortinet FortiOS>=6.0
Fortinet FortiSASE=5
Fortinet FortiOS>=6.0.0<7.4.9
Fortinet FortiOS>=7.6.0<7.6.4
Fortinet FortiSASE=25.3.89
Fortinet FortiSASE=25.3.89

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade FortiOS to a version that resolves this vulnerability.

    Fixed in 7.4.9
  2. Upgrade

    Upgrade FortiOS to a version that resolves this vulnerability.

    Fixed in 7.6.4
  3. Upgrade

    Upgrade FortiSASE to a version that resolves this vulnerability.

    Fixed in 25.3.c

Event History

Nov 18, 2025
Advisory Published
via FortiGuard·12:00 AM
Data Sourced
via FortiGuard·12:00 AM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·05:01 PM
Data Sourced
via MITRE·05:01 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·05:16 PM
DescriptionSeverityWeaknessAffected Software
Nov 21, 2025
Advisory Published
via FortiGuard·08:40 AM
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2025-58413?

CVE-2025-58413 is classified as a high-severity vulnerability due to its potential for remote code execution.

2

How do I fix CVE-2025-58413?

To remediate CVE-2025-58413, upgrade FortiOS to versions 7.6.4, 7.4.9 or higher.

3

Which Fortinet products are affected by CVE-2025-58413?

CVE-2025-58413 affects FortiOS 7.6.0 through 7.6.3, 7.4.0 through 7.4.8, and earlier versions as well as FortiSASE 25.3.b.

4

What types of attacks does CVE-2025-58413 allow?

CVE-2025-58413 allows attackers to execute arbitrary code through a stack-based buffer overflow.

5

Are older FortiOS versions vulnerable to CVE-2025-58413?

Yes, all versions of FortiOS prior to 7.6.4 and 7.4.9 are vulnerable to CVE-2025-58413.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203