CVE-2025-22258: Heap buffer overflow in websocket

Published Oct 14, 2025
·
Updated

A heap-based buffer overflow in Fortinet FortiSRA 1.5.0, 1.4.0 through 1.4.2, FortiPAM 1.5.0, 1.4.0 through 1.4.2, 1.3.0 through 1.3.1, 1.2.0, 1.1.0 through 1.1.2, 1.0.0 through 1.0.3, FortiProxy 7.6.0 through 7.6.1, 7.4.0 through 7.4.7, FortiOS 7.6.0 through 7.6.2, 7.4.0 through 7.4.6, 7.2.0 through 7.2.10, 7.0.2 through 7.0.16, FortiSwitchManager 7.2.1 through 7.2.5 allows attackers to escalate their privilege via specially crafted http requests.

Other sources

An heap-based buffer overflow vulnerability [CWE-122] in FortiOS, FortiProxy, FortiPAM, FortiSRA and FortiSwitchManager nodejs daemon may allow an authenticated attacker to execute arbitrary code or commands via specifically crafted requests.

— FortiGuard

Affected Software

31 affected componentsFixes available
Fortinet FortiSRA=1.5.0, >=1.4.0<1.4.3
Fortinet FortiPAM=1.5.0, >=1.4.0<1.4.3, >=1.3.0<1.4.2, =1.2.0, >=1.1.0<1.1.3, >=1.0.0<1.0.4
Fortinet FortiProxy>=7.6.0<7.6.2, >=7.4.0<7.4.8
Fortinet FortiOS>=7.6.0<7.6.3, >=7.4.0<7.4.7, >=7.2.0<=7.2.10, >=7.0.2<=7.0.16
Fortinet FortiSwitchManager>=7.2.1<7.2.6
Fortinet FortiOS>=7.6.0<=7.6.2
Fortinet FortiOS>=7.4.0<=7.4.6
Fortinet FortiOS>=7.2.0<=7.2.10
Fortinet FortiOS>=7.0.2<=7.0.16
Fortinet FortiPAM=.
Fortinet FortiPAM>=1.4.0<=1.4.2
Fortinet FortiPAM>=1.3
Fortinet FortiPAM>=1.2
Fortinet FortiPAM>=1.1
Fortinet FortiPAM>=1.0
Fortinet FortiProxy>=7.6.0<=7.6.1
Fortinet FortiProxy>=7.4.0<=7.4.7
Fortinet FortiSRA=.
Fortinet FortiSRA>=1.4.0<=1.4.2
Fortinet FortiSwitchManager>=7.2.1<=7.2.5
Fortinet FortiOS>=7.0.2<7.0.17
Fortinet FortiOS>=7.2.0<7.2.11
Fortinet FortiOS>=7.4.0<7.4.7
Fortinet FortiOS>=7.6.0<7.6.3
Fortinet FortiPAM>=1.0.0<1.4.3
Fortinet FortiPAM=1.5.0
Fortinet FortiProxy>=7.4.0<7.4.8
Fortinet FortiProxy>=7.6.0<7.6.2
Fortinet FortiSRA>=1.4.0<1.4.3
Fortinet FortiSRA=1.5.0
Fortinet FortiSwitchManager>=7.2.1<7.2.6

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade Fortinet FortiOS to a version that resolves this vulnerability.

    Fixed in 7.0.17
  2. Upgrade

    Upgrade Fortinet FortiOS to a version that resolves this vulnerability.

    Fixed in 7.2.11
  3. Upgrade

    Upgrade Fortinet FortiOS to a version that resolves this vulnerability.

    Fixed in 7.4.7
  4. Upgrade

    Upgrade Fortinet FortiOS to a version that resolves this vulnerability.

    Fixed in 7.6.3
  5. Upgrade

    Upgrade Fortinet FortiPAM to a version that resolves this vulnerability.

    Fixed in 1.4.3
  6. Upgrade

    Upgrade Fortinet FortiPAM to a version that resolves this vulnerability.

    Fixed in 1.5.1
  7. Upgrade

    Upgrade Fortinet FortiPAM to a version that resolves this vulnerability.

    Fixed in 1.6.0
  8. Upgrade

    Upgrade Fortinet FortiProxy to a version that resolves this vulnerability.

    Fixed in 7.4.8
  9. Upgrade

    Upgrade Fortinet FortiProxy to a version that resolves this vulnerability.

    Fixed in 7.6.2
  10. Upgrade

    Upgrade Fortinet FortiSRA to a version that resolves this vulnerability.

    Fixed in 1.4.3
  11. Upgrade

    Upgrade Fortinet FortiSRA to a version that resolves this vulnerability.

    Fixed in 1.5.1
  12. Upgrade

    Upgrade Fortinet FortiSRA to a version that resolves this vulnerability.

    Fixed in 1.6.0
  13. Upgrade

    Upgrade Fortinet FortiSwitchManager to a version that resolves this vulnerability.

    Fixed in 7.2.6

Event History

Oct 14, 2025
Advisory Published
via FortiGuard·12:00 AM
Data Sourced
via FortiGuard·12:00 AM
DescriptionSeverityWeaknessAffected Software
CVE Published
via MITRE·03:22 PM
Data Sourced
via MITRE·03:22 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·04:15 PM
DescriptionSeverityWeaknessAffected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-22258?

CVE-2025-22258 is classified as a high severity vulnerability due to the potential for a heap-based buffer overflow.

2

How do I fix CVE-2025-22258?

To mitigate CVE-2025-22258, users should update to the latest patched versions of Fortinet products.

3

Which products are affected by CVE-2025-22258?

CVE-2025-22258 affects multiple versions of FortiSRA, FortiPAM, FortiProxy, and FortiOS.

4

Can CVE-2025-22258 lead to remote code execution?

Yes, due to the nature of the buffer overflow, CVE-2025-22258 can potentially allow an attacker to execute arbitrary code remotely.

5

Is there a workaround for CVE-2025-22258 before applying a patch?

Currently, it is recommended to apply the patch for CVE-2025-22258 as there are no official workarounds provided by Fortinet.

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