CVE-2021-32305: Remote command injection in WebSVN search
- Vendor
- Websvn
WebSVN versions before 2.6.1 contain an operating-system command injection vulnerability in search processing. The getListSearch function concatenates attacker-controlled input from the search parameter into a shell command without proper escaping. The runCommand function subsequently executes that command through PHP's proc_open function, allowing shell metacharacters to trigger arbitrary command execution. The vulnerability has been exploited in the wild to deploy Mirai-like DDoS malware.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
Impact
What an attacker gets, and what they’ve been doing with it.
Remote attackers can execute arbitrary operating-system commands with the privileges of the WebSVN application process, compromising data and services accessible to that account. Observed exploitation downloaded and executed Linux malware to enroll compromised systems in a Mirai-like DDoS botnet. Exploitation does not inherently grant elevated operating-system privileges.
Mitigation
If you can’t patch tonight, do this now.
Until the upgrade is deployed, restrict access to the vulnerable search functionality to trusted users or networks. Apply firewall or intrusion-prevention protections specifically covering CVE-2021-32305; Palo Alto Networks Next-Generation Firewalls provide protection against exploitation.
Remediation
Patch, then assume compromise.
Upgrade WebSVN to version 2.6.1 or a later supported release. The fix applies escapeshellarg to user-controlled search input before incorporating it into the command. For custom implementations, avoid constructing shell command strings from user input; where supported, pass the executable and arguments to proc_open as an array to avoid shell interpretation.
Exploits
1 exploit validated by Mallory's analysis. Hidden: 1 not yet analyzed, such as Exploit-DB entries.
Affected products & vendors
Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.
References
Frequently asked questions
- Is CVE-2021-32305 exploited in the wild?
- Yes. As of Nov 26, 2026, Mallory has reports of exploitation in the wild.
- Is there a public exploit for CVE-2021-32305?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2021-32305, the earliest disclosed Dec 26, 2023.
- Is there a patch for CVE-2021-32305?
- Upgrade WebSVN to version 2.6.1 or a later supported release. The fix applies escapeshellarg to user-controlled search input before incorporating it into the command.
- What products are affected by CVE-2021-32305?
- Websvn.
- How severe is CVE-2021-32305?
- CVE-2021-32305 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 87.3% (100th percentile) as of Nov 26, 2026.
Recent activity
6 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.