CWE-377: Insecure Temporary File, published in 2022
Filter
deprecated by MITRE
This entry has been deprecated. It was focused only on the affected resource (temporary file) and not the behavior or mistake that produced the insecure temporary file, which caused confusion and incorrect mappings.
What the weakness is: CWE-377 at MITRE. OWASP Top 10: A01:2025 Broken Access Control. All weaknesses
Related attack patterns (CAPEC): 2
- CAPEC-149 Explore for Predictable Temporary File Names Severity: Medium
- CAPEC-155 Screen Temporary Files for Sensitive Information Likelihood: Medium · Severity: Medium
The attack patterns MITRE's CAPEC relates to CWE-377, as MITRE names them. Credits.
Ask an AI about CWE-377
Show the prompt
Explain CWE-377: Insecure Temporary File and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/377.html and https://cve.bz/cve/cwe/377?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.
By year: all 2026 2025 2024 2023 2022 2021
- 7.8CVE-2022-4817jgit-cookbook project jgit-cookbookEPSS 0.6%
A vulnerability was found in centic9 jgit-cookbook. It has been declared as problematic. This vulnerability affects unknown code. The manipulation leads to insecure temporary file. The attack can be initiated remotely. The name of the patc…
- 6.5CVE-2022-26386mozillaEPSS 0.7%
Previously Firefox for macOS and Linux would download temporary files to a user-specific directory in <code>/tmp</code>, but this behavior was changed to download them to <code>/tmp</code> where they could be affected by other local users.…
- 5.5CVE-2022-4641pig-vector project pig-vectorEPSS 0.2%
A vulnerability was found in pig-vector and classified as problematic. Affected by this issue is the function LogisticRegression of the file src/main/java/org/apache/mahout/pig/LogisticRegression.java. The manipulation leads to insecure te…
- 3.3CVE-2022-41954mpxjEPSS 0.2%
MPXJ is an open source library to read and write project plans from a variety of file formats and databases. On Unix-like operating systems (not Windows or macos), MPXJ's use of `File.createTempFile(..)` results in temporary files being cr…
- 5.5CVE-2022-41946EPSS 0.6%
pgjdbc is an open source postgresql JDBC Driver. In affected versions a prepared statement using either `PreparedStatement.setText(int, InputStream)` or `PreparedStatemet.setBytea(int, InputStream)` will create a temporary file if the Inpu…
- 5.5CVE-2022-3969openkmEPSS 0.6%
A vulnerability was found in OpenKM up to 6.3.11 and classified as problematic. Affected by this issue is the function getFileExtension of the file src/main/java/com/openkm/util/FileUtils.java. The manipulation leads to insecure temporary …
- 7.1CVE-2022-3952manydesigns portofinoEPSS 0.6%
A vulnerability has been found in ManyDesigns Portofino 5.3.2 and classified as problematic. Affected by this vulnerability is the function createTempDir of the file WarFileLauncher.java. The manipulation leads to creation of temporary fil…
- 7.5CVE-2013-4253redhat openshiftEPSS 0.7%
The deployment script in the unsupported "OpenShift Extras" set of add-on scripts, in Red Hat Openshift 1, installs a default public key in the root user's authorized_keys file.
- 6.5CVE-2017-20147smokepingEPSS 1.1%
In the ebuild package through smokeping-2.7.3-r1 for SmokePing on Gentoo, the initscript uses a PID file that is writable by the smokeping user. By writing arbitrary PIDs to that file, the smokeping user can cause a denial of service to ar…
- 5.5CVE-2022-35631rapid7 velociraptorEPSS 0.2%
On MacOS and Linux, it may be possible to perform a symlink attack by replacing this predictable file name with a symlink to another file and have the Velociraptor client overwrite the other file. This issue was resolved in Velociraptor 0.…
- 9.1CVE-2013-4561redhat openshiftEPSS 1.5%
In a openshift node, there is a cron job to update mcollective facts that mishandles a temporary file. This may lead to loss of confidentiality and integrity.
- 8.1CVE-2022-21809inhandnetworks inrouter302 firmwareEPSS 1.8%
A file write vulnerability exists in the httpd upload.cgi functionality of InHand Networks InRouter302 V3.5.4. A specially-crafted HTTP request can lead to arbitrary file upload. An attacker can upload a malicious file to trigger this vuln…
- 5.5CVE-2021-22572google data transfer projectEPSS 0.1%
On unix-like systems, the system temporary directory is shared between all users on that system. The root cause is File.createTempFile creates files in the the system temporary directory with world readable permissions. Any sensitive infor…
- 7.5CVE-2022-0315horovodEPSS 1.0%
Insecure Temporary File in GitHub repository horovod/horovod prior to 0.24.0.
- 6.1CVE-2022-21945opensuse cscreenEPSS 0.2%
A Insecure Temporary File vulnerability in cscreen of openSUSE Factory allows local attackers to cause DoS for cscreen and a system DoS for non-default systems. This issue affects: openSUSE Factory cscreen version 1.2-1.3 and prior version…
- 4.4CVE-2021-46705gnu grub2EPSS 0.2%
A Insecure Temporary File vulnerability in grub-once of grub2 in SUSE Linux Enterprise Server 15 SP4, openSUSE Factory allows local attackers to truncate arbitrary files. This issue affects: SUSE Linux Enterprise Server 15 SP4 grub2 versio…
- 7.5CVE-2022-0736lfprojects mlflowEPSS 1.6%
Insecure Temporary File in GitHub repository mlflow/mlflow prior to 1.23.1.