Image for CWE-502 (Common Weakness Enumeration)

CWE-502 (Common Weakness Enumeration)

CWE-502 refers to a specific security weakness known as "Deserialization of Untrusted Data." This occurs when a program takes data from an untrusted source and converts it into an object without carefully checking it. If an attacker can manipulate this data, they might exploit the program, leading to unauthorized access or other security breaches. Essentially, it's a warning for software developers to ensure that any data they are processing is safe and has not been tampered with before using it. Proper validation and sanitation are crucial to prevent these vulnerabilities.