Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2025-4953: Creation of Temporary File With Insecure Permissions

0
High
VulnerabilityCVE-2025-4953cvecve-2025-4953
Published: Tue Sep 16 2025 (09/16/2025, 14:54:50 UTC)
Source: CVE Database V5
Vendor/Project: Red Hat
Product: Red Hat OpenShift Container Platform 4.12

Description

A flaw was found in Podman. In a Containerfile or Podman, data written to RUN --mount=type=bind mounts during the podman build is not discarded. This issue can lead to files created within the container appearing in the temporary build context directory on the host, leaving the created files accessible.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/27/2026, 14:55:11 UTC

Technical Analysis

CVE-2025-4953 is a vulnerability identified in Podman, specifically impacting the Red Hat OpenShift Container Platform 4.12. The flaw arises during the podman build process when using the RUN --mount=type=bind directive. Normally, data written to these bind mounts during the build should be discarded after the build completes to avoid leaving residual files on the host system. However, due to this vulnerability, files created inside the container during the build persist in the temporary build context directory on the host. These files are created with insecure permissions, making them accessible to unauthorized users on the host system. This exposure can lead to leakage of sensitive build artifacts or confidential data that was intended to remain isolated within the container environment. The vulnerability does not require any privileges or user interaction to exploit, and it can be triggered remotely if an attacker can initiate container builds. The CVSS 3.1 base score of 7.4 reflects a high severity, primarily due to the impact on confidentiality and integrity, although availability is unaffected. No public exploits have been reported yet, but the risk remains significant given the widespread use of Podman and OpenShift in enterprise container orchestration. The issue underscores the importance of secure handling of temporary files and build contexts in containerized workflows to prevent data leakage from ephemeral build environments.

Potential Impact

The vulnerability can lead to unauthorized disclosure of sensitive data generated during container builds, including secrets, credentials, or proprietary code fragments that may be written to temporary files. This exposure compromises confidentiality and integrity by allowing attackers or unauthorized users on the host to access or tamper with these files. Organizations relying on container builds for continuous integration and deployment pipelines may face increased risk of intellectual property theft, compliance violations, and potential lateral movement within their infrastructure. Since the vulnerability affects the build context on the host, it could also facilitate further attacks by providing attackers with information about the build environment or application internals. Although availability is not directly impacted, the breach of confidentiality and integrity can have severe operational and reputational consequences. Enterprises using Red Hat OpenShift Container Platform 4.12 and Podman in production environments are particularly vulnerable, especially if build environments are shared or insufficiently isolated. The lack of required authentication or user interaction lowers the barrier for exploitation, increasing the threat surface for automated or remote attacks.

Mitigation Recommendations

1. Apply vendor patches or updates as soon as they become available from Red Hat or Podman maintainers to address the root cause of the vulnerability. 2. Restrict permissions on temporary build context directories on the host to limit access only to trusted users and processes. 3. Isolate container build environments by using dedicated build hosts or virtual machines to prevent unauthorized access to build artifacts. 4. Implement strict access controls and monitoring on host filesystem locations used during container builds to detect anomalous file creation or access. 5. Avoid writing sensitive data to RUN --mount=type=bind mounts during builds; instead, use secure secrets management solutions integrated with container build pipelines. 6. Regularly audit container build processes and temporary directories for residual files and remove any unauthorized or leftover artifacts promptly. 7. Educate development and DevOps teams about secure container build practices and the risks of exposing build context files. 8. Consider using ephemeral or in-memory filesystems for build contexts where feasible to minimize persistent file exposure. These measures collectively reduce the risk of data leakage and unauthorized access stemming from this vulnerability.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.1
Assigner Short Name
redhat
Date Reserved
2025-05-19T11:55:32.522Z
Cvss Version
3.1
State
PUBLISHED

Threat ID: 68c97badd327290d6e7319d0

Added to database: 9/16/2025, 3:01:01 PM

Last enriched: 2/27/2026, 2:55:11 PM

Last updated: 3/25/2026, 9:16:47 PM

Views: 240

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses