Microsoft Exchange adds warning to emails abusing spoofing flaw

Share:

Microsoft has disclosed a high-severity Exchange Server vulnerability that allows attackers to forge legitimate senders on incoming emails and make malicious messages a lot more effective.

The security flaw (CVE-2024-49040) impacts Exchange Server 2016 and 2019, and was discovered by Solidlab security researcher Vsevolod Kokorin, who reported it to Microsoft earlier this year.

“The problem is that SMTP servers parse the recipient address differently, which leads to email spoofing,” Kokorin said in a May report.

“Another issue I discovered is that some email providers allow the use of the symbols < and > in group names, which does not comply with RFC standards.”

“During my research, I did not find a single mail provider that correctly parses the ‘From’ field according to RFC standards,” he added.

CVE-2024-49040 email spoofing
CVE-2024-49040 email spoofing (Vsevolod Kokorin)

Microsoft also warned today that the flaw could be used in spoofing attacks targeting Exchange servers and released several updates during this month’s Patch Tuesday to add exploitation detection and warnings banners.

“The vulnerability is caused by the current implementation of the P2 FROM header verification, which happens in transport,” Microsoft explained.

“The current implementation allows some non-RFC 5322 compliant P2 FROM headers to pass which can lead to the email client (for example, Microsoft Outlook) displaying a forged sender as if it were legitimate.”

Exchange servers now warn of exploitation

While Microsoft has not patched the vulnerability and will accept emails with these malformed headers, the company says Exchange servers will now detect and prepend a warning to malicious emails after installing the Exchange Server November 2024 Security Update (SU).

CVE-2024-49040 exploitation detection and email warnings will be enabled by default on all systems where admins enable secure by default settings.

Up-to-date Exchange servers will also add a warning to the body of any emails it detects as having a forged sender and an X-MS-Exchange-P2FromRegexMatch header to allow admins to reject phishing emails attempting to exploit this flaw using custom mail flow rules.

“Notice: This email appears to be suspicious. Do not trust the information, links, or attachments in this email without verifying the source through a trusted method,” the warning reads.

While not advised, the company provides the following PowerShell command for those who still want to disable this new security feature (run it from an elevated Exchange Management Shell):

New-SettingOverride -Name "DisableNonCompliantP2FromProtection" -Component "Transport" -Section "NonCompliantSenderSettings" -Parameters @("AddDisclaimerforRegexMatch=false") -Reason "Disabled For Troubleshooting"
Get-ExchangeDiagnosticInfo -Process Microsoft.Exchange.Directory.TopologyService -Component VariantConfiguration -Argument Refresh

“Although it’s possible to disable the feature using New-SettingOverride, we strongly recommend you leave the feature enabled, as disabling the feature makes it easier for bad actors to run phishing attacks against your organization,” Redmond warned.

Sergiu Gatlan

Leave a Comment

Your email address will not be published. Required fields are marked *

loader-image
London, GB
4:11 pm, Jun 30, 2025
weather icon 32°C
L: 31° | H: 34°
clear sky
Humidity: 41 %
Pressure: 1016 mb
Wind: 7 mph SW
Wind Gust: 12 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 1%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 4:46 am
Sunset: 9:21 pm
DailyHourly
Daily ForecastHourly Forecast
Today 10:00 pm
weather icon
31° | 34°°C 0 mm 0% 10 mph 43 % 1015 mb 0 mm/h
Tomorrow 10:00 pm
weather icon
20° | 33°°C 0 mm 0% 11 mph 67 % 1016 mb 0 mm/h
Wed Jul 02 10:00 pm
weather icon
18° | 23°°C 0.38 mm 38% 12 mph 80 % 1023 mb 0 mm/h
Thu Jul 03 10:00 pm
weather icon
15° | 26°°C 0 mm 0% 6 mph 76 % 1028 mb 0 mm/h
Fri Jul 04 10:00 pm
weather icon
16° | 28°°C 0 mm 0% 11 mph 55 % 1027 mb 0 mm/h
Today 7:00 pm
weather icon
28° | 31°°C 0 mm 0% 10 mph 39 % 1015 mb 0 mm/h
Today 10:00 pm
weather icon
24° | 27°°C 0 mm 0% 2 mph 43 % 1015 mb 0 mm/h
Tomorrow 1:00 am
weather icon
23° | 23°°C 0 mm 0% 4 mph 54 % 1015 mb 0 mm/h
Tomorrow 4:00 am
weather icon
20° | 20°°C 0 mm 0% 4 mph 66 % 1014 mb 0 mm/h
Tomorrow 7:00 am
weather icon
24° | 24°°C 0 mm 0% 7 mph 67 % 1015 mb 0 mm/h
Tomorrow 10:00 am
weather icon
27° | 27°°C 0 mm 0% 5 mph 52 % 1015 mb 0 mm/h
Tomorrow 1:00 pm
weather icon
32° | 32°°C 0 mm 0% 4 mph 35 % 1014 mb 0 mm/h
Tomorrow 4:00 pm
weather icon
33° | 33°°C 0 mm 0% 8 mph 27 % 1013 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€91,259.79
-0.92%
Ethereum(ETH)
€2,086.26
0.16%
Tether(USDT)
€0.85
-0.01%
XRP(XRP)
€1.86
-0.26%
Solana(SOL)
€129.43
0.12%
USDC(USDC)
€0.85
0.01%
Dogecoin(DOGE)
€0.139510
-0.13%
Shiba Inu(SHIB)
€0.000009
-1.87%
Pepe(PEPE)
€0.000009
0.68%
Scroll to Top