Exposure of Core Dump File to an Unauthorized Control Sphere

Draft Variant
Structure: Simple
Description

This vulnerability occurs when an application creates a core dump file (a snapshot of memory at the time of a crash) and places it in a location accessible to unauthorized users or systems.

Extended Description

Core dump files are generated when a program crashes, capturing a detailed snapshot of its process memory. This snapshot often contains highly sensitive information like encryption keys, passwords, user session data, and proprietary application logic. If this file is written to a web-accessible directory, a shared network location, or is included in log archives, it becomes a prime target for attackers seeking to bypass security controls and extract secrets. To prevent this, developers should configure their applications and operating systems to disable core dumps in production environments or restrict them to secure, isolated directories with strict access controls. For containerized or cloud deployments, ensure crash-handling settings do not write dumps to ephemeral or publicly mounted storage. Regular security scans should also be configured to detect and alert on the presence of these sensitive files in unauthorized locations.

Common Consequences 1
Scope: Confidentiality

Impact: Read Application DataRead Files or Directories

Detection Methods 1
Automated Static AnalysisHigh
Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)
Potential Mitigations 1
Phase: System Configuration
Protect the core dump files from unauthorized access.
Modes of Introduction
Operation
Taxonomy Mapping
  • CERT C Secure Coding