CyberSecBulletin
CVE-2025-4953NVD status: Deferred

Red Hat Enterprise Linux 8: Creation of Temporary File With Insecure Permissions

CVE-2025-4953 is a high-severity creation of temporary file with insecure permissions vulnerability in Red Hat Enterprise Linux 8 from Red Hat, with a CVSS 3.1 base score of 7.4 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. There is no confirmed exploitation so far. EPSS estimates a 0.66% chance of exploitation within 30 days, higher than 52% of scored CVEs.

Next patch cycle

High severity with no evidence of exploitation so far.

What to do

  1. Check which version of Red Hat Enterprise Linux 8 you run against the affected versions below, and install the vendor's latest release.
  2. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
Red HatRed Hat Enterprise Linux 8Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.12Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.13Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.14Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.15Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.16Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.17Not specified in the recordNot stated
Red HatRed Hat OpenShift Container Platform 4.18Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 10Not specified in the recordNot stated
Red HatRed Hat Enterprise Linux 9Not specified in the recordNot stated

Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.

How the severity score breaks down

Attack vector
NetworkCan be exploited remotely over a network, including the internet.
Attack complexity
HighSuccess depends on conditions outside the attacker's control.
Privileges required
NoneNo account or login is needed.
User interaction
NoneNo action by a victim is required.
Scope
UnchangedImpact stays within the vulnerable component.
Confidentiality
HighAll data handled by the component can be read.
Integrity
HighData or code can be modified at will.
Availability
NoneAvailability is not affected.

Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N. Scored by CNA (redhat.com).

Official 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.

Source: the CVE record as published by its numbering authority, via NVD and CVE.org.

The underlying weakness: 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 developers prevent this class of flaw

  • Many contemporary languages have functions which properly handle this condition. Older C temp file functions are especially susceptible.
  • Ensure that you use proper file permissions. This can be achieved by using a safe temp file function. Temporary files should be writable and readable only by the process that owns the file.
  • Randomize temporary file names. This can also be achieved by using a safe temp-file function. This will ensure that temporary files will not be created in predictable places.

More Creation of Temporary File With Insecure Permissions vulnerabilities (CWE-378)

Timeline

  1. CVE record published.
  2. CISA published its SSVC assessment (exploitation: none, automatable: no, technical impact: total).
  3. Record last changed materially (score, affected products, status or references).

References

Other vulnerabilities in Red Hat Enterprise Linux 8

All Red Hat Enterprise Linux 8 vulnerabilities

Recent Creation of Temporary File With Insecure Permissions vulnerabilities

Spotted an error? Tell us.