CVE-2026-33078·Python vulnerability
Roxy-WI is a web interface for managing Haproxy, Nginx, Apache and Keepalived servers. Versions prior to 8.2.6.4 have a SQL injection vulnerability in the haproxy_section_save function in app/routes/config/routes.py. The server_ip parameter, sourced from the URL path, is passed unsanitized through multiple function calls and ultimately interpolated into a SQL query string using Python string formatting, allowing attackers to execute arbitrary SQL commands. Version 8.2.6.4 fixes the issue.
- Severity
- critical
- Software
- Python
- Fixed in
- 8.2.6.4
- Published
- 2026-04-24
Affected versions
Until: 8.2.6.4
Fixed in: 8.2.6.4
How to fix this CVE
Roxy-WI versions before 8.2.6.4 contain a critical SQL injection vulnerability in the haproxy configuration management function that allows remote attackers to execute arbitrary SQL queries through unsanitized URL parameters. Immediately upgrade Roxy-WI to version 8.2.6.4 or later to apply the necessary input validation and parameterized query fixes. If you are running Roxy-WI on a Python environment, ensure your deployment uses the patched release and restart all affected services.
sudo dnf update roxy-wi-8.2.6.4 (or latest available)Defensia detects this vulnerability
What an exploitation attempt looks like
Sample log line indicative of exploitation attempts:
POST|GET /haproxy/config.*server_ip=[^\s&]*(%27|union|select|drop|insert|update|delete|exec|script)[^\s&]*WAF mitigation (if patching is not yet possible)
Add this rule to your WAF to block exploitation attempts while you schedule the patch.
Implement a Web Application Firewall rule to block requests to /haproxy/config endpoints containing SQL keywords (UNION, SELECT, DROP, INSERT, UPDATE, DELETE) in the server_ip parameter. Enforce strict allowlist validation: server_ip should only match valid IPv4/IPv6 addresses and alphanumeric hostnames using the regex ^[a-zA-Z0-9][a-zA-Z0-9.-]*$ before routing to the backend.How to check if you are affected
- Check installed Roxy-WI version: curl -s http://localhost:8080/api/version 2>/dev/null | grep -i version or review /opt/roxy-wi/app/__init__.py for __version__ string
- Verify the vulnerable haproxy_section_save function is present: grep -r 'haproxy_section_save' /opt/roxy-wi/app/routes/config/ and check if server_ip parameter is directly interpolated into SQL queries
- Search web server logs for SQL injection attempts targeting the haproxy config endpoint: grep -E 'server_ip.*(%27|union|select|drop|insert)' /var/log/nginx/access.log /var/log/apache2/access.log
- Confirm patch installation: python3 -c "import roxy_wi; print(roxy_wi.__version__)" should return 8.2.6.4 or later, and grep -A 5 'server_ip' /opt/roxy-wi/app/routes/config/routes.py should show parameterized query usage (e.g., using '?' placeholders)
FAQ
What is CVE-2026-33078?
CVE-2026-33078 is a critical SQL injection flaw in Roxy-WI's HAProxy configuration handler where the server_ip URL parameter bypasses input sanitization and is directly concatenated into database queries, allowing unauthenticated remote code execution at the database level.
Is CVE-2026-33078 being actively exploited?
According to CISA's Known Exploited Vulnerabilities catalog, CVE-2026-33078 is not currently listed as actively exploited in the wild. However, the low complexity and network accessibility of this vulnerability warrant immediate patching.
What versions of Roxy-WI are affected by CVE-2026-33078?
All Roxy-WI versions prior to 8.2.6.4 are vulnerable. The exact earliest affected version is not specified, but users should treat all releases before 8.2.6.4 as potentially compromised.
How do I check if my server is vulnerable to CVE-2026-33078?
Run `curl -s http://<roxy-wi-host>:8080/api/version | grep version` to confirm your version, or inspect `/opt/roxy-wi/app/__init__.py` for the version string. If the version is below 8.2.6.4, your instance is vulnerable.
Does Defensia detect CVE-2026-33078?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Roxy-WI is installed on a monitored server, CVE-2026-33078 will appear in your dashboard with remediation steps.
Related Python CVEs
References
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-33078. Free for 1 server.
Get started free