1687 vulnerabilities classified as CWE-502 (可信数据的反序列化). AI Chinese analysis included.
CWE-502 represents a critical security weakness where applications deserialize untrusted data without validating its integrity or structure. Attackers typically exploit this vulnerability by crafting malicious serialized objects that, when processed by the application, trigger unintended code execution or logic flaws. This often leads to remote code execution, denial of service, or privilege escalation, as the deserialization process may instantiate dangerous classes or invoke unsafe methods. To mitigate this risk, developers must strictly avoid deserializing data from untrusted sources. Instead, they should implement robust input validation, use allowlists for permitted data types, or adopt safer serialization formats like JSON that do not inherently support arbitrary object instantiation. Additionally, employing cryptographic signatures to verify data authenticity before deserialization ensures that only trusted, unaltered payloads are processed, effectively neutralizing the threat of malicious object injection.
try { File file = new File("object.obj"); ObjectInputStream in = new ObjectInputStream(new FileInputStream(file)); javax.swing.JButton button = (javax.swing.JButton) in.readObject(); in.close(); }private final void readObject(ObjectInputStream in) throws java.io.IOException { throw new java.io.IOException("Cannot be deserialized"); }try { class ExampleProtocol(protocol.Protocol): def dataReceived(self, data): # Code that would be here would parse the incoming data # After receiving headers, call confirmAuth() to authenticate def confirmAuth(self, headers): try: token = cPickle.loads(base64.b64decode(headers['AuthToken'])) if not check_hmac(token['signature'], token['data'], getSecretKey()): raise AuthFail self.secure_data = token['data'] except: raise AuthFail }| CVE ID | Title | CVSS | Severity | Published |
|---|---|---|---|---|
| CVE-2016-9585 | Red Hat JBoss Enterprise Application Platform 安全漏洞 — EAP-5 | 7.5 | - | 2018-03-09 |
| CVE-2017-15089 | Infinispan Hotrod客户端安全漏洞 — infinispan | 8.8 | - | 2018-02-15 |
| CVE-2017-17406 | Netgain Enterprise Manager 安全漏洞 — NetGain Systems Enterprise Manager | 9.8 | - | 2018-01-23 |
| CVE-2017-0903 | RubyGems 安全漏洞 — RubyGems | 9.8 | - | 2017-10-11 |
| CVE-2017-12149 | Red Hat JBoss Enterprise Application Platform Jboss Application Server 安全漏洞 — jbossas | 9.8 | - | 2017-10-04 |
| CVE-2017-11153 | Synology Photo Station 安全漏洞 — Synology Photo Station | 9.8 | - | 2017-08-08 |
| CVE-2017-7504 | Red Hat Jboss Application Server 安全漏洞 — JBoss | 9.8 | - | 2017-05-19 |
Vulnerabilities classified as CWE-502 (可信数据的反序列化) represent 1687 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.