Cloudanix VulnDB

CVE-2022-0338

Medium · 4.3

CVSS

4.3

EPSS

0.8%

Published

Jan 25, 2022

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A logging tool could accidentally save private details like passwords into regular record files where others might see them.

Exploit Available
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

  1. Identify an application using an unpatched version of the logging library.
  2. Trigger logging of operations that include sensitive parameters or return values.
  3. 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