CVE-2023-21709: Microsoft Exchange Server Elevation of Privilege Vulnerability
CVE-2023-21709 is an elevation of privilege vulnerability in Microsoft Exchange Server, rated Important by Microsoft, with a CVSS 3.1 base score of 9.8 (Critical). An attacker can exploit it remotely over the network, without any privileges and without user interaction. Microsoft has not reported exploitation in the wild and rates exploitation as less likely. The EPSS model estimates a 1.98% probability of exploitation activity in the next 30 days, higher than 81% of all scored vulnerabilities. Microsoft released the fix on 7 August 2023 in the August 2023 Patch Tuesday, delivered through 1 security update (KB5030524). It affects 3 products in 1 product family (Server Software).
Key facts
- CVE ID
- CVE-2023-21709
- Severity
- Critical CVSS 9.8
- Microsoft severity
- Important
- Impact
- Elevation of Privilege
- Exploited in the wild
- No
- Publicly disclosed
- No
- Exploitation likelihood
- Less Likely
- Weakness
- CWE-307
- EPSS
- 1.98% (percentile 81%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- August 2023 Patch Tuesday
- Product families
- Server Software
CVSS score and vector
Microsoft scores CVE-2023-21709 at 9.8 (temporal 8.5) using CVSS 3.1. Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H/E:U/RL:O/RC:C
| Metric | Value |
|---|---|
| Attack vector | Network |
| Attack complexity | Low |
| Privileges required | None |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | High |
| Integrity impact | High |
| Availability impact | High |
| Exploit code maturity | Unproven |
| Remediation level | Official fix |
| Report confidence | Confirmed |
Frequently asked questions (Microsoft)
What privileges could be gained by an attacker who successfully exploited the vulnerability?
The attacker would be able to login as another user successfully.
How could an attacker exploit this vulnerability?
In a network-based attack, an attacker could brute force user account passwords to log in as that user. Microsoft encourages the use of strong passwords that are more difficult for an attacker to brute force.
Why is the severity for this CVE rated as Important, but the CVSS score is 9.8?
The Microsoft proprietary severity rating does not align with the CVSS scoring system. In this case, the severity rating of Important (rather than Critical) reflects the fact that brute-force attacks are unlikely to succeed against users with strong passwords. The CVSS scoring system doesn't allow for this type of nuance.
Update October 10-10-2023
Is there new information available regarding this CVE?
Yes, CVE-2023-36434 which was published October 10, 2023 addresses a vulnerability in Windows IIS that completely mitigates this Exchange vulnerability. If you have applied the additional steps documented in the following FAQ, please read the Exchange Blog for details on what to do now regarding this vulnerability as well as what to do for the new Windows IIS vulnerability.
Are there additional steps needed to protect against this vulnerability?
Yes, in addition to installing the updates a script must be run. Alternatively you can accomplish the same by running commands from the command line in a PowerShell window or some other terminal.
Follow the following steps:
- (Strongly recommended) Install Exchange Server 2016 or 2019 August SU (or later)
- Do one of the following:
- Apply the solution for the CVE automatically on your servers, run the CVE-2023-21709.ps1 script. You can find the script and the documentation here: https://aka.ms/CVE-2023-21709ScriptDoc.
or
- Apply the solution for the CVE manually on each server, by running the following command from an elevated PowerShell window:
Clear-WebConfiguration -Filter "/system.webServer/globalModules/add[@name='TokenCacheModule']" -PSPath "IIS:\"
- To roll-back the solution for the CVE manually on each server, run the following:
New-WebGlobalModule -Name "TokenCacheModule" -Image "%windir%\System32\inetsrv\cachtokn.dll"
Although Microsoft recommends installing the security updates as soon as possible, running the script or the commands on a supported version of Exchange Server prior to installing the updates will address this vulnerability.
Is there anything that I should be aware of if I'm running a non-English operating system and version of Exchange server?
Yes, an issue has been discovered with the non-English August updates of Exchange Server and you should postpone installing these updates. The script protecting customers from the vulnerability documented by CVE-2023-21709 can be run to protect against the vulnerability without installing the August updates. Microsoft recommends running the script.
August 15, 2023 Update: The known issue affecting the non-English August updates of Exchange Server has been resolved. Microsoft recommends installing the updated packages as soon as possible.
Please see the Exchange Blog for more information.
Affected products (3)
Server Software
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| Microsoft Exchange Server 2019 Cumulative Update 12 | KB5030524 | Security Update | 15.02.1118.037 | Yes |
| Microsoft Exchange Server 2016 Cumulative Update 23 | KB5030524 | Security Update | 15.01.2507.032 | Yes |
| Microsoft Exchange Server 2019 Cumulative Update 13 | KB5030524 | Security Update | 15.02.1258.025 | Yes |
Security updates (1)
- KB5030524 (Security Update)
NIST NVD data
- NVD status
- Modified
- NVD CVSS
- 9.8 (CRITICAL)
- NVD weakness
- CWE-307
- Published to NVD
- NVD last modified
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2016 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
| exchange server 2019 | all listed versions |
References
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-21709 (Patch, Vendor Advisory)
- https://msrc.microsoft.com/update-guide/vulnerability/CVE-2023-21709 (Patch, Vendor Advisory)
Acknowledgments
- Steve Walker with WCRIBMA
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. | |
| 1.1 | Added FAQ regarding a new known issue in the August Exchange security updates. | |
| 2.0 | The known issue affecting the non-English August updates of Exchange Server has been resolved. Microsoft recommends installing the updated packages as soon as possible. | |
| 2.1 | Corrected security updates table. This is an informational change only. | |
| 2.2 | Added FAQ information. This is an informational change only. |