Patch
CVE-2024-52940
with vRx
📜This script is designed to mitigate the vulnerability CVE-2024-52940 in AnyDesk by disabling the ad.direct_connections setting in the AnyDesk configuration file (system.conf). The script checks if the file exists, reads its contents, and then looks for the ad.direct_connections setting. If it finds the setting set to true, it changes it to false to disable direct peer-to-peer connections. If the setting is already false, it simply informs the user that no changes are necessary. If the setting is not found, the script adds it to the configuration file, ensuring that direct connections are disabled.
By disabling direct connections, the script helps mitigate the vulnerability by preventing unauthorized access to systems through direct peer-to-peer connections in AnyDesk, which may bypass security measures.
🚀CVE-2024-52940 is a vulnerability in AnyDesk that allows remote attackers to bypass security restrictions through direct peer-to-peer connections. Disabling this feature ensures that all connections to the system go through relay servers, where security checks and additional protective measures are applied. This minimizes the risk of unauthorized access and protects sensitive systems from exploitation.
For organizations using AnyDesk for remote access, this mitigation is crucial in reducing the attack surface and preventing exploitation by malicious actors. It also ensures compliance with best practices in security, particularly when dealing with remote desktop solutions that could be targeted for unauthorized access.
By automating the process of disabling direct connections, this script provides a simple and effective way to ensure that AnyDesk remains secure, mitigating the impact of this vulnerability across multiple systems with minimal manual intervention.
Read more
Read less
Patch faster and smarter
with vRx
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.
Trusted by 600+ customers:




Solution
Remediate faster with vRx
Patch Management
vRx automatically deploys patches across all systems, cutting patching time by 80%.
Scripting Engine
vRx’s scripting engine solves complex vulnerabilities, like log4j, with built-in or custom scripts.
Patchless Protection
vRx’s Patchless Protection secures vulnerable apps and reduces risk while maintaining functionality.

Automated Patching, Scripting, and more
Talk with our team to get a personal walkthrough
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.