CVE-2025-4953: Github.com/containers/podman/v5 Podman Creates Temporary File With Vulnerability

HIGH
Advisory Identifier: GHSA-m68q-4hqr-mc6f
CVSS 7.4
CWE-378
Published
Advisory Summary

CVE-2025-4953 is a HIGH (CVSS 7.4) podman creates temporary file with vulnerability (CWE-378: Creation of Temporary File With Insecure Permissions) affecting Github.com/containers/podman/v5 libraries in the Go ecosystem. The issue involves podman creates temporary file with insecure permissions. Remediation is available in the latest vendor maintenance releases.

CVE-2025-4953 at a Glance

CVE Identifier CVE-2025-4953
GHSA Identifier GHSA-m68q-4hqr-mc6f
Severity HIGH
CVSS v3.1 Base Score 7.4
CWE Classification CWE-378: Creation of Temporary File With Insecure Permissions
Affected Product Github.com/containers/podman/v5
Package Ecosystem Go
Published Date
Last Updated

Security Impact

CVSS: 7.4

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N).

Attack Vector Network (AV:N)
Attack Complexity High (AC:H)
Privileges Required None (PR:N)
User Interaction None (UI:N)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability None (A:N)

How to Fix CVE-2025-4953

To remediate this vulnerability, upgrade all affected Github.com/containers/podman/v5 dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

github.com/containers/podman/v5 fixed: Latest secure release
Upgrade github.com/containers/podman/v5 to Latest secure release
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for github.com/containers/podman/v5

How to Check if You Are Affected

To determine whether your application is affected by CVE-2025-4953, inspect your project dependencies for Github.com/containers/podman/v5:

inspect dependencies for github.com/containers/podman/v5

Analyze the terminal output to locate any version of Github.com/containers/podman/v5 in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-378: Creation of Temporary File With Insecure Permissions, where opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack. In Github.com/containers/podman/v5, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

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.

CVE-2025-4953 Affected Github.com/containers/podman/v5 Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
github.com/containers/podman/v5
Go
≤ 5.5.0

References

NVD — CVE-2025-4953 NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-4953
Github.com/containers/podman/v5 Source Repository REPOSITORY
https://github.com/containers/podman/pull/25173
Github.com/containers/podman/v5 Source Repository REPOSITORY
https://github.com/containers/podman
bugzilla.redhat.com/show_bug.cgi WEB
https://bugzilla.redhat.com/show_bug.cgi?id=2367235
Github.com/containers/podman/v5 Security Information SECURITY
https://access.redhat.com/security/cve/CVE-2025-4953
access.redhat.com/errata/rhsa-2026:03... WEB
https://access.redhat.com/errata/RHSA-2026:0316
access.redhat.com/errata/rhsa-2025:27... WEB
https://access.redhat.com/errata/RHSA-2025:2703
access.redhat.com/errata/rhsa-2025:23... WEB
https://access.redhat.com/errata/RHSA-2025:23113
access.redhat.com/errata/rhsa-2025:22... WEB
https://access.redhat.com/errata/RHSA-2025:22732
access.redhat.com/errata/rhsa-2025:22... WEB
https://access.redhat.com/errata/RHSA-2025:22724
access.redhat.com/errata/rhsa-2025:22... WEB
https://access.redhat.com/errata/RHSA-2025:22695
access.redhat.com/errata/rhsa-2025:22... WEB
https://access.redhat.com/errata/RHSA-2025:22275
access.redhat.com/errata/rhsa-2025:22... WEB
https://access.redhat.com/errata/RHSA-2025:22265
access.redhat.com/errata/rhsa-2025:17... WEB
https://access.redhat.com/errata/RHSA-2025:17669
access.redhat.com/errata/rhsa-2025:16... WEB
https://access.redhat.com/errata/RHSA-2025:16729
access.redhat.com/errata/rhsa-2025:16... WEB
https://access.redhat.com/errata/RHSA-2025:16724
access.redhat.com/errata/rhsa-2025:15... WEB
https://access.redhat.com/errata/RHSA-2025:15904
access.redhat.com/errata/rhsa-2024:86... WEB
https://access.redhat.com/errata/RHSA-2024:8690

Frequently Asked Questions

What is CVE-2025-4953?
CVE-2025-4953 is a security vulnerability in Github.com/containers/podman/v5 involving Podman Creates Temporary File with Insecure Permissions under CWE-378: Creation of Temporary File With Insecure Permissions.
Which Github.com/containers/podman/v5 versions are affected?
Affected versions include releases prior to current release patches across affected packages: github.com/containers/podman/v5.
What version fixes CVE-2025-4953?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is github.com/containers/podman/v5 affected?
Yes, github.com/containers/podman/v5 is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2025-4953?
CVE-2025-4953 has a CVSS v3.1 base score of 7.4 (HIGH) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N.
What CWE is associated with CVE-2025-4953?
CVE-2025-4953 is classified under CWE-378: Creation of Temporary File With Insecure Permissions (Opening temporary files without appropriate measures or controls can leave the file, its contents and any function that it impacts vulnerable to attack.).
How can I check Go dependencies for CVE-2025-4953?
Run the dependency tree command: 'inspect dependencies for github.com/containers/podman/v5'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-m68q-4hqr-mc6f",
  "modified" : "2026-01-15T12:30:25Z",
  "published" : "2025-09-16T15:32:37Z",
  "aliases" : [ "CVE-2025-4953" ],
  "summary" : "Podman Creates Temporary File with Insecure Permissions",
  "details" : "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.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Go",
      "name" : "github.com/containers/podman/v5"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "5.5.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-4953"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/containers/podman/pull/25173"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/containers/podman"
  }, {
    "type" : "WEB",
    "url" : "https://bugzilla.redhat.com/show_bug.cgi?id=2367235"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/security/cve/CVE-2025-4953"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2026:0316"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:2703"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:23113"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:22732"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:22724"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:22695"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:22275"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:22265"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:17669"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:16729"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:16724"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2025:15904"
  }, {
    "type" : "WEB",
    "url" : "https://access.redhat.com/errata/RHSA-2024:8690"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-378" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-09-16T20:21:02Z",
    "nvd_published_at" : "2025-09-16T15:15:45Z"
  }
}