Skip to main content
Vulnerability Database/CVE-2023-54407

CVE-2023-54407: Frappe Information Disclosure Vulnerability

CVE-2023-54407 is an information disclosure flaw in Frappe 14.x that exposes secrets in error log tracebacks. Attackers with log access can extract credentials and keys. This post covers technical details, affected versions, impact, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2023-54407 Overview

CVE-2023-54407 is an information disclosure vulnerability in Frappe versions 14.x prior to 14.45.0. The framework captures local variables inside tracebacks written to error logs. When sensitive values such as credentials, API keys, or session tokens exist in the scope of a failing function, they are serialized into the error log. Any authenticated user with access to read error logs can retrieve these secrets in plaintext. The weakness is classified as [CWE-532] Insertion of Sensitive Information into Log File.

Critical Impact

Attackers with error log read access can extract plaintext credentials, API keys, and other secrets exposed in Python traceback frames, enabling lateral movement and privilege escalation.

Affected Products

  • Frappe Framework 14.x versions prior to 14.45.0
  • Deployments relying on Frappe's default error logging behavior
  • ERPNext and downstream applications built on vulnerable Frappe 14.x releases

Discovery Timeline

  • 2026-10-12 - CVE-2023-54407 published to the National Vulnerability Database
  • 2026-10-14 - Last updated in NVD database

Technical Details for CVE-2023-54407

Vulnerability Analysis

Frappe is a full-stack Python web framework used as the foundation for ERPNext and other business applications. When unhandled exceptions occur, the framework records a traceback to its Error Log doctype for operator review. Prior to version 14.45.0, the traceback capture logic included the local variable state of each stack frame.

Sensitive data frequently resides in local variables during execution. Database passwords, OAuth tokens, encryption keys, and user-supplied secrets routinely appear in function scope. When an exception propagates, these values are serialized into the stored traceback. Users granted read access to the Error Log doctype can then query and view this material directly from the web interface or the database.

Root Cause

The root cause is the inclusion of local variable contents in traceback serialization without filtering or redaction. The framework prioritized debugging detail over secret hygiene. There is no mechanism to scrub known-sensitive variable names or to limit depth of local capture before persistence.

Attack Vector

Exploitation requires an authenticated account with privileges to read Error Log records. The attacker browses existing error logs and parses the traceback body for credentials or keys. Alternatively, the attacker can trigger application paths known to raise exceptions after sensitive values enter local scope, then read the resulting log entry. No network-level exploitation primitive is required beyond standard authenticated access to the Frappe interface.

See the GitHub Security Advisory GHSA-38fg-mjcm-3hc6 and the Vulncheck Advisory on Frappe 14.x for additional technical context.

Detection Methods for CVE-2023-54407

Indicators of Compromise

  • Unexpected queries against the tabError Log table or the Error Log list view by non-administrative users.
  • Error Log entries containing variable names such as password, secret, api_key, token, or authorization within traceback bodies.
  • Export or bulk download activity targeting Error Log records.

Detection Strategies

  • Audit role permissions assigned to the Error Log doctype and flag any non-System Manager role with read access.
  • Scan historical error logs for regex patterns matching credential formats, bearer tokens, and private key headers.
  • Correlate successful authentication to Frappe accounts with subsequent Error Log read operations originating from the same session.

Monitoring Recommendations

  • Forward Frappe application and web server logs to a centralized SIEM for retention and analysis.
  • Alert on repeated Error Log reads outside normal administrative workflows.
  • Monitor for credential reuse where secrets observed in logs are later used from unexpected source addresses.

How to Mitigate CVE-2023-54407

Immediate Actions Required

  • Upgrade Frappe Framework to version 14.45.0 or later across all environments.
  • Purge or redact existing Error Log entries that may contain plaintext secrets.
  • Rotate any credentials, API keys, or tokens that could have appeared in traceback local variables.
  • Restrict Error Log read permissions to a minimal set of administrative roles.

Patch Information

The maintainers resolved the issue in Frappe 14.45.0. The fix changes how tracebacks are captured so that local variable contents are no longer persisted to Error Log records. Review the GitHub Security Advisory GHSA-38fg-mjcm-3hc6 for the exact commit range and upgrade guidance.

Workarounds

  • Remove Error Log read permissions from all non-administrative roles until the upgrade is deployed.
  • Implement a scheduled job to delete Error Log records older than a short retention window.
  • Avoid storing secrets in local variables; load them from environment or vault accessors immediately before use and clear references on exception paths.
bash
# Configuration example: upgrade Frappe to a fixed release
bench version
bench update --upgrade
bench --site all migrate
bench restart

# Verify installed Frappe version is >= 14.45.0
bench --site <site-name> console <<'PY'
import frappe
print(frappe.__version__)
PY

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.