-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

===========================================================================
             AUSCERT External Security Bulletin Redistribution

                               ESB-2021.2430
        FortiManager & FortiAnalyzer - Use after free vulnerability
                             in fgfmsd daemon
                               20 July 2021

===========================================================================

        AusCERT Security Bulletin Summary
        ---------------------------------

Product:           FortiManager
                   FortiAnalyzer
Publisher:         Fortiguard
Operating System:  Network Appliance
Impact/Access:     Root Compromise                 -- Remote/Unauthenticated
                   Execute Arbitrary Code/Commands -- Remote/Unauthenticated
Resolution:        Patch/Upgrade
CVE Names:         CVE-2021-32589  

Original Bulletin: 
   https://fortiguard.com/psirt/FG-IR-21-067

- --------------------------BEGIN INCLUDED TEXT--------------------

FortiManager & FortiAnalyzer - Use after free vulnerability in fgfmsd daemon

IR Number    : FG-IR-21-067
Date         : Jul 19, 2021
Risk         : 5/5
CVSSv3 Score : 7.5 
Impact       : Remote code execution as root CVE ID : CVE-2021-32589
Affected Products: 
FortiManager: 7.0.0, 6.4.5, 6.4.4, 6.4.3, 6.4.2, 6.4.1, 6.4.0, 
6.2.7, 6.2.6, 6.2.5, 6.2.4, 6.2.3, 6.2.2, 6.2.1, 6.2.0, 6.0.9, 6.0.8, 6.0.7, 
6.0.6, 6.0.5, 6.0.4, 6.0.3, 6.0.2, 6.0.10, 6.0.1, 6.0.0, 5.6.9, 5.6.8, 5.6.7,
5.6.6, 5.6.5, 5.6.4, 5.6.3, 5.6.2, 5.6.10, 5.6.1, 5.6.0, 5.4.7, 5.4.6, 5.4.5,
5.4.4, 5.4.3, 5.4.2, 5.4.1, 5.4.0, 5.2.9, 5.2.8, 5.2.7, 5.2.6, 5.2.5, 5.2.4, 
5.2.3, 5.2.2, 5.2.10, 5.2.1, 5.2.0, 5.0.9, 5.0.8, 5.0.7, 5.0.6, 5.0.5, 5.0.4,
5.0.3, 5.0.2, 5.0.12, 5.0.11, 5.0.10, 5.0.1, 5.0.0
FortiAnalyzer: 7.0.0, 
6.4.5, 6.4.4, 6.4.3, 6.4.2, 6.4.1, 6.4.0, 6.2.7, 6.2.6, 6.2.5, 6.2.4, 6.2.3, 
6.2.2, 6.2.1, 6.2.0, 6.0.9, 6.0.8, 6.0.7, 6.0.6, 6.0.5, 6.0.4, 6.0.3, 6.0.2, 
6.0.10, 6.0.1, 6.0.0, 5.6.9, 5.6.8, 5.6.7, 5.6.6, 5.6.5, 5.6.4, 5.6.3, 5.6.2,
5.6.10, 5.6.1, 5.6.0, 5.4.7, 5.4.6, 5.4.5, 5.4.4, 5.4.3, 5.4.2, 5.4.1, 5.4.0,
5.3.11, 5.2.9, 5.2.8, 5.2.7, 5.2.6, 5.2.5, 5.2.4, 5.2.10

Summary

A Use After Free (CWE-416) vulnerability in FortiManager and FortiAnalyzer 
fgfmsd daemon may allow a remote, non-authenticated attacker to execute 
unauthorized code as root via sending a specifically crafted request to the 
fgfm port of the targeted device.

Please note that FGFM is disabled by default on FortiAnalyzer and can only be
enabled on specific hardware models: 1000D, 1000E, 2000E, 3000D, 3000E, 3000F,
3500E, 3500F, 3700F, 3900E.

Impact

Remote code execution as root

Affected Products

FortiManager versions 5.6.10 and below. FortiManager versions 6.0.10 and 
below. FortiManager versions 6.2.7 and below. FortiManager versions 6.4.5 and
below. FortiManager version 7.0.0. FortiManager versions 5.4.x.

FortiAnalyzer versions 5.6.10 and below. FortiAnalyzer versions 6.0.10 and 
below. FortiAnalyzer versions 6.2.7 and below. FortiAnalyzer versions 6.4.5 
and below. FortiAnalyzer version 7.0.0.

Solutions

Please upgrade to FortiManager version 5.6.11 or above.

Please upgrade to FortiManager version 6.0.11 or above.

Please upgrade to FortiManager version 6.2.8 or above.

Please upgrade to FortiManager version 6.4.6 or above.

Please upgrade to FortiManager version 7.0.1 or above.

Please upgrade to FortiAnalyzer version 5.6.11 or above.

Please upgrade to FortiAnalyzer version 6.0.11 or above.

Please upgrade to FortiAnalyzer version 6.2.8 or above.

Please upgrade to FortiAnalyzer version 6.4.6 or above.

Please upgrade to FortiAnalyzer version 7.0.1 or above.

Workaround:

Disable FortiManager features on the FortiAnalyzer unit using the command 
below: config system global set fmg-status disable <--- Disabled by default. 
end

Acknowledgement

Fortinet is pleased to thank Cyrille Chatras of Orange Group for brining this
issue to our attention under responsible disclosure.

- --------------------------END INCLUDED TEXT--------------------

You have received this e-mail bulletin as a result of your organisation's
registration with AusCERT. The mailing list you are subscribed to is
maintained within your organisation, so if you do not wish to continue
receiving these bulletins you should contact your local IT manager. If
you do not know who that is, please send an email to auscert@auscert.org.au
and we will forward your request to the appropriate person.

NOTE: Third Party Rights
This security bulletin is provided as a service to AusCERT's members.  As
AusCERT did not write the document quoted above, AusCERT has had no control
over its content. The decision to follow or act on information or advice
contained in this security bulletin is the responsibility of each user or
organisation, and should be considered in accordance with your organisation's
site policies and procedures. AusCERT takes no responsibility for consequences
which may arise from following or acting on information or advice contained in
this security bulletin.

NOTE: This is only the original release of the security bulletin.  It may
not be updated when updates to the original are made.  If downloading at
a later date, it is recommended that the bulletin is retrieved directly
from the author's website to ensure that the information is still current.

Contact information for the authors of the original document is included
in the Security Bulletin above.  If you have any questions or need further
information, please contact them directly.

Previous advisories and external security bulletins can be retrieved from:

        https://www.auscert.org.au/bulletins/

===========================================================================
Australian Computer Emergency Response Team
The University of Queensland
Brisbane
Qld 4072

Internet Email: auscert@auscert.org.au
Facsimile:      (07) 3365 7031
Telephone:      (07) 3365 4417 (International: +61 7 3365 4417)
                AusCERT personnel answer during Queensland business hours
                which are GMT+10:00 (AEST).
                On call after hours for member emergencies only.
===========================================================================
-----BEGIN PGP SIGNATURE-----
Comment: http://www.auscert.org.au/render.html?it=1967

iQIVAwUBYPYU4eNLKJtyKPYoAQidww//XoQXOHcBm3vijqW5q4Ejvmo1Ni/Q0+Bl
FSl0/pykU9pc6qS+GShVzm21TfTtVb92zl3gBuBhitDNR8ShAns8RQIx74w0NRej
hUUiip8gmMpdI/QTeuRcqsSophcxnd5OhxeEgZGxyU7zXFnanemS64YhEmzL8lfD
ASCYmiCps+tU71NDnH/gz609IvfpUneMRwGFLRgUbkULKpvOGabtZfvOwHdryvhP
V2A0pkWn7pfmMErjgEQpzhenvlf+QNVwc3RZgAfxJJi7M1yXdnQM84D7d78fsIux
a6z4gvlN6zekRF2gVp8/oexPS62oWJ/OGiPkO+H+1iT6/bA7/vXsG7OQzVMqSeCO
eMXMHtqqougJG5X4zOJ/NqRJYjNuEQaE8h2Dv5y4l+WEckXE8ZNMmnEvXq58DJzy
7YqR7yysqPYoKKF/oxAbaeAMsBeXavhFlX2Z/x3YAX1cvO/ErsEFkojIdthJE0ce
zxDMnc7oOJM3iMFXE8C9WcFmEIV3XTEc+l99BRjhylrrS2AzrsGIibstL6vVzfsC
nSdlcmOEkNhkBFUqbZmrgNlp96ISd1fwkyTU8P1SEzFKOmXse9rbu+odCGQoWl46
4lGZDarcdPRi0tPRubHj8qlHtJzNpd/ZSr8CiiHOpnHqVV8qlpsoZgeucfPweS8b
1cfcwWyVnrk=
=O53E
-----END PGP SIGNATURE-----