Pre-authentication code execution via length-unit mismatch
Published Jun 13, 2023 · Updated Jul 31, 2026
Heap-based buffer overflow in affected Fortinet FortiOS and FortiProxy SSL-VPN releases allows remote attackers to execute arbitrary code. The SSL-VPN request decoder compares a hexadecimal character count with a decrypted byte length, then XOR-decrypts beyond its allocated heap buffer. Exploitation requires SSL-VPN to be enabled and reaches code execution as root before authentication; malformed attempts can crash sslvpnd.
Summary
What happened
Heap-based buffer overflow in affected Fortinet FortiOS and FortiProxy SSL-VPN releases allows remote attackers to execute arbitrary code. The SSL-VPN request decoder compares a hexadecimal character count with a decrypted byte length, then XOR-decrypts beyond its allocated heap buffer. Exploitation requires SSL-VPN to be enabled and reaches code execution as root before authentication; malformed attempts can crash sslvpnd.
The record
- CVE
- CVE-2023-27997
- Published
- Jun 13, 2023
- Updated
- Jul 31, 2026
- Vendor
- Fortinet
- Product
- FortiOS-6K7K
- Classifications
- CWE-787, CWE-122, T1190
- Attack vector
- network
- Privileges
- unauthenticated
Timeline
How it unfolded
- Jun 13, 2023CVE publishedPublication date reported by the CVE source.
- Jul 31, 2026Record updatedLatest update available in the CVE record.
Exploitability
Present is not the same as exploitable
Compare your product and version with the public record. A matching version still requires validation against your environment.
Is a vulnerable build present?
Compare these published version ranges with your installed build and any vendor patches.
- Affected versionversion=6.0.10
- Affected versionversion=6.0.12 <=6.0.16
- Affected versionversion=6.2.4
- Affected versionversion=6.2.6 <=6.2.7
- Affected versionversion=6.2.9 <=6.2.13
- Affected versionversion=6.4.10
- Affected versionversion=6.4.12
- Affected versionversion=6.4.2
- Affected versionversion=6.4.6
- Affected versionversion=6.4.8
- Affected versionversion=7.0.10
- Affected versionversion=7.0.5
What conditions does exploitation require?
What is affected?
Attacks
What attackers are doing with it
Daily unique IPs observed by Shadowserver honeypots for known exploited vulnerabilities (KEVs). Missing observations do not establish an absence of attacks.
Weakness, pattern, technique
Public exploit references
- Lexfo XORtigate bug proof of conceptproof of concept · demonstrated
Labels summarize the accepted research assessment. They do not indicate a test against your environment.
Reported exploitation
- CISA Known Exploited Vulnerabilities entryknown exploited catalog
- Fortinet limited-case exploitation reportreported exploitation
Technologies
Your stack
See the directory against your own environment.
Your stack
Check the software in your environment
Book a demo to see how Hinoki identifies affected software and validates exploitability in your environment.
Book a demo