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.

non-rfc-compliant-p2-from-header-warning
Suspicious message disclaimer (Microsoft)

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
10:17 pm, Jul 1, 2025
weather icon 25°C
L: 23° | H: 26°
few clouds
Humidity: 64 %
Pressure: 1014 mb
Wind: 7 mph NE
Wind Gust: 0 mph
UV Index: 0
Precipitation: 0 mm
Clouds: 21%
Rain Chance: 0%
Visibility: 10 km
Sunrise: 4:47 am
Sunset: 9:20 pm
DailyHourly
Daily ForecastHourly Forecast
Tomorrow 10:00 pm
weather icon
23° | 26°°C 0.38 mm 38% 11 mph 80 % 1022 mb 0 mm/h
Thu Jul 03 10:00 pm
weather icon
14° | 26°°C 0 mm 0% 13 mph 55 % 1028 mb 0 mm/h
Fri Jul 04 10:00 pm
weather icon
15° | 26°°C 0 mm 0% 12 mph 57 % 1028 mb 0 mm/h
Sat Jul 05 10:00 pm
weather icon
15° | 25°°C 1 mm 100% 15 mph 89 % 1022 mb 0 mm/h
Sun Jul 06 10:00 pm
weather icon
14° | 19°°C 1 mm 100% 13 mph 81 % 1012 mb 0 mm/h
Tomorrow 1:00 am
weather icon
20° | 24°°C 0 mm 0% 5 mph 67 % 1014 mb 0 mm/h
Tomorrow 4:00 am
weather icon
18° | 20°°C 0 mm 0% 6 mph 74 % 1015 mb 0 mm/h
Tomorrow 7:00 am
weather icon
18° | 18°°C 0.2 mm 20% 5 mph 80 % 1017 mb 0 mm/h
Tomorrow 10:00 am
weather icon
21° | 21°°C 0.2 mm 20% 6 mph 71 % 1017 mb 0 mm/h
Tomorrow 1:00 pm
weather icon
19° | 19°°C 0.38 mm 38% 4 mph 69 % 1018 mb 0 mm/h
Tomorrow 4:00 pm
weather icon
23° | 23°°C 0.35 mm 35% 6 mph 41 % 1019 mb 0 mm/h
Tomorrow 7:00 pm
weather icon
23° | 23°°C 0.01 mm 1% 11 mph 28 % 1020 mb 0 mm/h
Tomorrow 10:00 pm
weather icon
18° | 18°°C 0 mm 0% 10 mph 34 % 1022 mb 0 mm/h
Name Price24H (%)
Bitcoin(BTC)
€89,578.11
-1.53%
Ethereum(ETH)
€2,039.18
-3.67%
Tether(USDT)
€0.85
-0.01%
XRP(XRP)
€1.84
-4.88%
Solana(SOL)
€123.81
-6.54%
USDC(USDC)
€0.85
-0.01%
Dogecoin(DOGE)
€0.133847
-5.14%
Shiba Inu(SHIB)
€0.000009
-3.09%
Pepe(PEPE)
€0.000008
-6.31%
Scroll to Top