CVE-2025-21305

8.8 HIGH

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary code on Windows systems by exploiting a heap-based buffer overflow in the Telephony Service. It affects Windows systems with the Telephony Service enabled, particularly those exposed to network traffic.

💻 Affected Systems

Products:
  • Microsoft Windows
Versions: Windows 10, Windows 11, Windows Server 2016, Windows Server 2019, Windows Server 2022
Operating Systems: Windows
Default Config Vulnerable: ✅ No
Notes: Telephony Service is not enabled by default on most Windows installations. Systems with telephony features or specific roles (like Remote Access Service) are more likely to be vulnerable.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise with SYSTEM privileges, enabling data theft, ransomware deployment, or persistent backdoor installation.

🟠

Likely Case

Remote code execution leading to malware installation, credential harvesting, or lateral movement within the network.

🟢

If Mitigated

Limited impact due to network segmentation, endpoint protection, and restricted service permissions.

🌐 Internet-Facing: HIGH - Windows servers with Telephony Service exposed to internet could be directly exploited.
🏢 Internal Only: MEDIUM - Internal systems with the service enabled are vulnerable to lateral movement attacks.

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ⚠️ Yes
Complexity: MEDIUM

Exploitation requires sending specially crafted network packets to the Telephony Service. No authentication is needed if the service is accessible.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: February 2025 Security Update or later

Vendor Advisory: https://msrc.microsoft.com/update-guide/vulnerability/CVE-2025-21305

Restart Required: Yes

Instructions:

1. Apply the February 2025 Windows Security Update via Windows Update. 2. For enterprise environments, deploy through WSUS or Microsoft Endpoint Configuration Manager. 3. Restart affected systems after patch installation.

🔧 Temporary Workarounds

Disable Telephony Service

Windows

Stop and disable the Telephony Service to prevent exploitation.

sc stop TapiSrv
sc config TapiSrv start= disabled

Block Network Access

Windows

Use firewall rules to block inbound connections to Telephony Service ports (typically TCP 1720, 1723, or dynamic RPC ports).

netsh advfirewall firewall add rule name="Block Telephony Service" dir=in action=block protocol=TCP localport=1720,1723

🧯 If You Can't Patch

  • Implement strict network segmentation to isolate systems with Telephony Service enabled
  • Deploy endpoint detection and response (EDR) solutions to detect exploitation attempts

🔍 How to Verify

Check if Vulnerable:

Check if Telephony Service is running: sc query TapiSrv | findstr "RUNNING". If running and unpatched, system is vulnerable.

Check Version:

systeminfo | findstr /B /C:"OS Name" /C:"OS Version"

Verify Fix Applied:

Verify patch installation: wmic qfe list | findstr "KB5034". Check service status after patch: sc query TapiSrv.

📡 Detection & Monitoring

Log Indicators:

  • Event ID 4625 (failed logon) from Telephony Service
  • Unexpected process creation from svchost.exe with Telephony parameters
  • Crash logs for TapiSrv or related processes

Network Indicators:

  • Unusual inbound connections to ports 1720/1723 from untrusted sources
  • Malformed packets to Telephony Service ports

SIEM Query:

source="windows" AND (event_id=4625 AND process_name="TapiSrv") OR (event_id=4688 AND parent_process="svchost.exe" AND command_line CONTAINS "TapiSrv")

🔗 References

📤 Share & Export