CWE-532: Insertion of Sensitive Information into Log File

BaseIncompleteExploit Likelihood: Medium

The product writes sensitive information to a log file.

View on MITRE
Back to CWE Lookup

Technical Details

Structure
Simple

Applicable To

Languages
Platforms

Frequently Asked Questions

What is CWE-532: Insertion of Sensitive Information into Log File?+

CWE-532: Insertion of Sensitive Information into Log File is a Common Weakness Enumeration (CWE) entry maintained by MITRE. The product writes sensitive information to a log file.

What are the security consequences of Insertion of Sensitive Information into Log File?+

If exploited, CWE-532 (Insertion of Sensitive Information into Log File) it can compromise Confidentiality, leading to outcomes such as Read Application Data.

How do you prevent or mitigate Insertion of Sensitive Information into Log File?+

Recommended mitigations for CWE-532 include: Consider seriously the sensitivity of the information written into log files. Do not write secrets into the log files. Remove debug log files before deploying the application into production. Protect log files against unauthorized read/write.

What are real-world examples of Insertion of Sensitive Information into Log File?+

MITRE documents real CVEs mapped to CWE-532, including CVE-2017-9615 and CVE-2018-1999036. You can look up the full details of each CVE, including CVSS scores and remediation guidance, on our CVE Lookup tool.

What is the difference between a CWE and a CVE?+

A CWE (Common Weakness Enumeration) like CWE-532 describes a category of software weakness — the underlying flaw type. A CVE (Common Vulnerabilities and Exposures) identifies a specific, real-world vulnerability in a particular product. In short, a CWE is the kind of mistake, and a CVE is an instance of that mistake being found in software.

Learn More