PKI via API: Authentication granted with an invalid certificate

Summary

A missing critical step in authentication vulnerability [CWE-304] in FortiOS & FortiProxy may allow an API-user using api-key + PKI user certificate authentication to login even if the certificate is invalid

Version Affected Solution
FortiOS 7.6 7.6.0 through 7.6.1 Upgrade to 7.6.3 or above
FortiOS 7.4 7.4.0 through 7.4.5 Upgrade to 7.4.6 or above
FortiOS 7.2 7.2.0 through 7.2.10 Upgrade to 7.2.11 or above
FortiOS 7.0 7.0.1 through 7.0.16 Upgrade to 7.0.17 or above
FortiOS 6.4 Not affected Not Applicable
FortiProxy 7.6 7.6.0 through 7.6.1 Upgrade to 7.6.2 or above
FortiProxy 7.4 7.4.0 through 7.4.8 Upgrade to 7.4.9 or above
FortiProxy 7.2 7.2.0 through 7.2.13 Upgrade to 7.2.14 or above
FortiProxy 7.0 7.0.0 through 7.0.20 Upgrade to 7.0.21 or above
Follow the recommended upgrade path using our tool at: https://docs.fortinet.com/upgrade-tool

Acknowledgement

Internally discovered and reported by Luca Pizziniaco from Fortinet technical support team.

Timeline

2025-07-08: Initial publication