Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

CWE-502 (可信数据的反序列化) — Vulnerability Class 1687

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.

MITRE CWE Description
The product deserializes untrusted data without sufficiently ensuring that the resulting data will be valid.
Common Consequences (3)
IntegrityModify Application Data, Unexpected State
Attackers can modify unexpected objects or data that was assumed to be safe from modification. Deserialized data or code could be modified without using the provided accessor functions, or unexpected functions could be invoked.
AvailabilityDoS: Resource Consumption (CPU)
If a function is making an assumption on when to terminate, based on a sentry in a string, it could easily never terminate.
OtherVaries by Context
The consequences can vary widely, because it depends on which objects or methods are being deserialized, and how they are used. Making an assumption that the code in the deserialized object is valid is dangerous and can enable exploitation. One example is attackers using gadget chains to perform una…
Mitigations (5)
Architecture and Design, ImplementationIf available, use the signing/sealing features of the programming language to assure that deserialized data has not been tainted. For example, a hash-based message authentication code (HMAC) could be used to ensure that data has not been modified.
ImplementationWhen deserializing data, populate a new object rather than just deserializing. The result is that the data flows through safe input validation and that the functions are safe.
ImplementationExplicitly define a final object() to prevent deserialization.
Architecture and Design, ImplementationMake fields transient to protect them from deserialization. An attempt to serialize and then deserialize a class containing transient fields will result in NULLs where the transient data should be. This is an excellent way to prevent time, environment-based, or sensitive variables from being carried over and used improperly.
ImplementationAvoid having unnecessary types or gadgets (a sequence of instances and method invocations that can self-execute during the deserialization process, often found in libraries) available that can be leveraged for malicious ends. This limits the potential for unintended or unauthorized types and gadgets to be leveraged by the attacker. Add only acceptable classes to an allowlist. Note: new gadgets are…
Examples (2)
This code snippet deserializes an object from a file and uses it as a UI button:
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(); }
Bad · Java
private final void readObject(ObjectInputStream in) throws java.io.IOException { throw new java.io.IOException("Cannot be deserialized"); }
Good · Java
In Python, the Pickle library handles the serialization and deserialization processes. In this example derived from [REF-467], the code receives and parses data, and afterwards tries to authenticate a user based on validating a token.
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 }
Bad · Python
CVE IDTitleCVSSSeverityPublished
CVE-2025-0974 MaxD Lightning Module deserialization — Lightning Module 5.0 Medium2025-02-03
CVE-2024-13742 iControlWP – Multiple WordPress Site Manager <= 4.4.5 - Unauthenticated PHP Object Injection — iControlWP 9.8 Critical2025-01-30
CVE-2025-0841 Aridius XYZ News loadMore deserialization — XYZ 7.3 High2025-01-29
CVE-2025-24794 The Snowflake Connector for Python uses insecure deserialization of the OCSP response cache — snowflake-connector-python 6.7 Medium2025-01-29
CVE-2025-23045 CVAT allows remote code execution via tracker Nuclio functions — cvat 8.8 -2025-01-28
CVE-2024-0140 NVIDIA RAPIDS 代码问题漏洞 — RAPIDS cuDF and cuML 6.8 Medium2025-01-28
CVE-2025-0734 y_project RuoYi Whitelist getBeanName deserialization — RuoYi 4.7 Medium2025-01-27
CVE-2025-24357 vLLM allows a malicious model RCE by torch.load in hf_model_weights_iterator — vllm 7.5 High2025-01-27
CVE-2025-24671 WordPress Save as PDF Plugin by Pdfcrowd Plugin <= 4.4.0 - PHP Object Injection vulnerability — Save as PDF 9.8 Critical2025-01-27
CVE-2025-24601 WordPress FundPress plugin <= 2.0.6 - PHP Object Injection vulnerability — FundPress 9.8 Critical2025-01-27
CVE-2024-12600 Custom Product Tabs Lite for WooCommerce <= 1.9.0 - Authenticated (Shop Manager+) PHP Object Injection — Custom Product Tabs Lite for WooCommerce 7.2 High2025-01-25
CVE-2025-23006 SonicWALL SMA1000 代码问题漏洞 — SMA1000 9.8 -2025-01-23
CVE-2024-31903 IBM Sterling B2B Integrator Standard Edition code execution — Sterling B2B Integrator Standard Edition 8.8 High2025-01-22
CVE-2025-23914 WordPress Muzaara Google Ads Report Plugin <= 3.1 - PHP Object Injection vulnerability — Muzaara Google Ads Report 9.8 Critical2025-01-22
CVE-2025-23944 WordPress WOOEXIM Plugin <= 5.0.0 - PHP Object Injection vulnerability — WOOEXIM 8.8 High2025-01-22
CVE-2025-23932 WordPress Quick Count Plugin <= 3.00 - PHP Object Injection vulnerability — Quick Count 9.8 Critical2025-01-22
CVE-2025-0429 AI Power: Complete AI Pack <= 1.8.96 - Authenticated (Admin+) PHP Object Injection via wpaicg_export_ai_forms — AI Puffer – Your AI engine for WordPress (formerly AI Power) 7.2 High2025-01-22
CVE-2025-0428 AI Power: Complete AI Pack <= 1.8.96 - Authenticated (Admin+) PHP Object Injection via wpaicg_export_prompts — AI Puffer – Your AI engine for WordPress (formerly AI Power) 7.2 High2025-01-22
CVE-2024-49699 WordPress ARPrice plugin <= 4.1.3 - PHP Object Injection vulnerability — ARPrice 8.8 High2025-01-21
CVE-2024-49688 WordPress ARPrice plugin <= 4.1.3 - Unauthenticated PHP Object Injection vulnerability — ARPrice 9.8 Critical2025-01-21
CVE-2024-10936 String Locator <= 2.6.6 - Unauthenticated PHP Object Injection — String locator 8.8 High2025-01-21
CVE-2025-0586 aEnrich Technology a+HRD - Insecure Deserialization — a+HRD 7.2 High2025-01-20
CVE-2024-12703 Schneider Electric RemoteConnect and SCADAPack 代码问题漏洞 — RemoteConnect and SCADAPack x70 Utilities 7.8 High2025-01-17
CVE-2024-56515 Untrusted file formats can be thumbnailed, invoking potentially further untrusted decoders in Matrix Media Repo — matrix-media-repo 6.8 Medium2025-01-16
CVE-2025-21364 Microsoft Excel Security Feature Bypass Vulnerability — Microsoft 365 Apps for Enterprise 7.8 High2025-01-14
CVE-2025-0465 AquilaCMS categories deserialization — AquilaCMS 7.3 High2025-01-14
CVE-2024-13163 Ivanti EPM 代码问题漏洞 — Endpoint Manager 7.8 High2025-01-14
CVE-2025-22777 WordPress GiveWP Plugin <= 3.19.3 - PHP Object Injection vulnerability — GiveWP 9.8 Critical2025-01-13
CVE-2024-12877 GiveWP – Donation Plugin and Fundraising Platform <= 3.19.2 - Unauthenticated PHP Object Injection — GiveWP – Donation Plugin and Fundraising Platform 9.8 Critical2025-01-11
CVE-2024-12627 Coupon X: Discount Pop Up, Promo Code Pop Ups, Announcement Pop Up, WooCommerce Popups <= 1.3.5 - Missing Authorization to Authenticated (Contributor+) PHP Object Injection — Coupon X – Discount Popups & Promo Codes Pop Ups for WooCommerce 7.5 High2025-01-11

Vulnerabilities classified as CWE-502 (可信数据的反序列化) represent 1687 CVEs. The CWE taxonomy describes the weakness; review individual CVEs for product-specific impact.