CVE-2022-0338
Medium · 4.3CVSS
4.3
EPSS
0.8%
Published
Jan 25, 2022
CISA due date
—
Cloudanix analysis
A logging tool could accidentally save private details like passwords into regular record files where others might see them.
- Exploitation
- Remote Authenticated
- Attacker needs
- Low Privilege
- Complexity
- Low
- Impact
- Data Exposure
- Component
- Library
- Class
- Information Disclosure
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
The vulnerability causes sensitive information to be written into log files by the logging library when certain operations are performed.
Why it matters to the business
Organizations may inadvertently expose credentials or other confidential data in application logs, increasing the risk of data leakage over time, though the issue has been public for years with stable low exploit probability and no known ransomware use.
How an attack unfolds
An attacker with limited privileges triggers application code paths that invoke the affected logging functions, causing sensitive values to be recorded in log output that can later be retrieved by anyone with log access.
How to fix it
Upgrade delgan/loguru to commit f31e97142adc1156693a26ecaf47208d3765a6e3 or later; rebuild and redeploy any affected ImageMagick packages after confirming the logging component is updated.
How to confirm the fix worked
Review application logs after triggering sensitive operations to confirm no confidential data appears; verify the installed library version or commit hash matches the fixed release.
Typical attack path
- Identify an application using an unpatched version of the logging library.
- Trigger logging of operations that include sensitive parameters or return values.
- Access the resulting log files to extract the inadvertently recorded information.
How to detect it
Examine application and system log files for unexpected entries containing credentials, tokens, or other sensitive strings around the time of logging calls; monitor for any post-exploitation log access patterns.
What your security team should do
- Immediately audit all deployments for use of loguru prior to the fixed commit and prioritize upgrades.
- Scan existing log archives for any historical instances of sensitive data exposure.
- Implement log redaction or filtering rules as a defense-in-depth measure until patching is complete.
The record
Insertion of Sensitive Information into Log File in Conda loguru prior to 0.5.3.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| PyPI | loguru | 0 | 0.5.3 |
| PyPI | loguru | 0 | ea39375e62f9b8f18e2ca798a5c0fb8c972b7eaa |
| Debian:12 | loguru | 0 | No fix |
| Debian:13 | loguru | 0 | No fix |
| Ubuntu:22.04:LTS | loguru | 0 | No fix |
| Ubuntu:24.04:LTS | loguru | 0 | No fix |
| Ubuntu:24.10 | loguru | 0 | No fix |
| Ubuntu:25.04 | loguru | 0 | No fix |
| Ubuntu:25.10 | loguru | 0 | No fix |
Related vulnerabilities
- CVE-2026-16648 Insertion of Sensitive Information into Log File vulnerability in Drupal Mailer Plus Log… CWE-532
- CVE-2026-104872 OpenTelemetry JavaScript Contrib provides instrumentation libraries for collecting… CWE-532
- CVE-2026-81870 OpenTelemetry-Go is the Go implementation of OpenTelemetry. CWE-532
- CVE-2026-87993 The consul-template library is vulnerable to an information disclosure issue in its error… CWE-532
- CVE-2026-80169 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-532
- CVE-2026-79966 Dell SCG 5.0 Appliance versions prior to 5.36.00.16 and Dell SCG 5.0 Application versions… CWE-532
- CVE-2026-86597 Insertion of sensitive information into log files in the Snowflake Python, Go, JDBC… CWE-532
- CVE-2026-86501 In JetBrains IntelliJ IDEA before 2026.2.2 terminal command input could be written to… CWE-532