FortiPAM: Heap-based Buffer Overflow
CVE-2025-57740 is a high-severity heap-based buffer overflow vulnerability in FortiPAM from Fortinet, with a CVSS 3.1 base score of 8.8 out of 10. It can be exploited remotely over the network by an attacker with a low-privileged account, without any action from a user. Affected FortiPAM versions: 1.5.0; 1.4.0 through 1.4.2; 1.3.0 through 1.3.1, and others listed below. The record does not name a fixed version, so check the vendor advisory. There is no confirmed exploitation so far. EPSS estimates a 0.7% chance of exploitation within 30 days, higher than 54% of scored CVEs.
High severity with no evidence of exploitation so far.
What to do
- Check which version of FortiPAM you run against the affected versions below, and install the vendor's latest release.
- Read the advisory on fortiguard.fortinet.com for workarounds and exact fixed builds.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Fortinet | 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 | Not stated |
| Fortinet | FortiProxy | 7.6.0 through 7.6.2; 7.4.0 through 7.4.3; 7.2.0 through 7.2.15; 7.0.0 through 7.0.22 | Not stated |
| Fortinet | FortiOS | 7.6.0 through 7.6.2; 7.4.0 through 7.4.7; 7.2.0 through 7.2.10; 7.0.0 through 7.0.18; 6.4.0 through 6.4.16 | Not stated |
| Siemens | RUGGEDCOM APE1808 | all versions | Not stated |
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- LowA basic user account is enough.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 7.5 | High | CNA (fortinet.com) |
| CVSS 3.1 | 8.8 | High | NVD |
Official description
An Heap-based Buffer Overflow vulnerability [CWE-122] in FortiOS version 7.6.2 and below, version 7.4.7 and below, version 7.2.10 and below, 7.0 all versions, 6.4 all versions; FortiPAM version 1.5.0, version 1.4.2 and below, 1.3 all versions, 1.2 all versions, 1.1 all versions, 1.0 all versions and FortiProxy version 7.6.2 and below, version 7.4.3 and below, 7.2 all versions, 7.0 all versions RDP bookmark connection may allow an authenticated user to execute unauthorized code via crafted requests.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Heap-based Buffer Overflow
The product writes past the end of a buffer that was allocated on the heap.
How developers prevent this class of flaw
- Pre-design: Use a language or compiler that performs automatic bounds checking.
- Use an abstraction library to abstract away risky APIs. Not a complete solution.
- Use automatic buffer overflow detection mechanisms that are offered by certain compilers or compiler extensions. Examples include: the Microsoft Visual Studio /GS flag, Fedora/Red Hat FORTIFY_SOURCE GCC flag, StackGuard, and ProPolice, which provide various mechanisms including canary-based detection and range/index checking. D3-SFCV (Stack Frame Canary Validation) from D3FEND discusses canary-based detection in detail.
Timeline
- CVE record published.
- CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
- Record last changed materially (score, affected products, status or references).
References
Other references
Other vulnerabilities in FortiPAM
- 7.4 High severity
- 6.5 Medium severity
- 9.8 Critical severity
- 7.5 High severity
- 7.2 High severity
- 8.1 High severity
Recent Heap-based Buffer Overflow vulnerabilities
- 7.8 High severity
- 7.2 High severity
- 8.8 High severity
- 7.5 High severity
- 9.0 Critical severity
- 8.8 High severity
Spotted an error? Tell us.