---
title: "CWE-377: DEPRECATED: Insecure Temporary File"
url: https://radicalnotion.ai/cwe/cwe-377
type: cwe
description: "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."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-377: DEPRECATED: Insecure Temporary File

- **Abstraction:** Class
- **Structure:** Simple
- **Status:** Deprecated
- **CVEs with this as primary weakness:** 117
- **Of those, in CISA KEV:** 0
- **New in 2026:** 37
- **CWE catalog version:** 4.21

## Description

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.

## Real CVEs with this weakness (sample of 12 of 117)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2018-25068 | devent globalpom-utils FileResourceManagerProvider.java createTmpDir temp file | critical | 9.8 | - | No | 2023-01-06 |
| CVE-2011-4119 | - | critical | 9.8 | - | No | 2021-10-26 |
| CVE-2012-2666 | - | critical | 9.8 | - | No | 2021-07-09 |
| CVE-2015-5224 | util-linux: File name collision due to incorrect mkstemp use | critical | 9.8 | - | No | 2017-08-23 |
| CVE-2025-14307 | Insecure Temporary File Creation in Robocode's AutoExtract Component | critical | 9.3 | - | No | 2025-12-09 |
| CVE-2013-4561 | openshift-origin-msg-node-mcollective: /etc/cron.minutely/openshift-facts tmp file creation | critical | 9.1 | - | No | 2022-06-30 |
| CVE-2022-0315 | Insecure Temporary File in horovod/horovod | high | 8.8 | - | No | 2022-03-24 |
| CVE-2022-0736 | Insecure Temporary File in mlflow/mlflow | high | 8.8 | - | No | 2022-02-23 |
| CVE-2018-16494 | - | high | 8.8 | - | No | 2021-05-26 |
| CVE-2023-43498 | Jenkins temporary uploaded file created with insecure permissions | high | 8.1 | - | No | 2023-09-20 |
| CVE-2022-21809 | InHand Networks InRouter302 httpd upload.cgi file write vulnerability | high | 8.1 | - | No | 2022-05-12 |
| CVE-2026-82715 | Insecure Temporary File Vulnerability in Hitachi Disk Array Driver for AIX, Hitachi Disk Array Driver for Virtual I/O Server | high | 7.9 | - | No | 2026-10-14 |

## Related attack patterns (CAPEC)

- [CAPEC-149](https://radicalnotion.ai/capec/capec-149): Explore for Predictable Temporary File Names
- [CAPEC-155](https://radicalnotion.ai/capec/capec-155): Screen Temporary Files for Sensitive Information

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Child | [CWE-378](https://radicalnotion.ai/cwe/cwe-378) | Creation of Temporary File With Insecure Permissions |
| Child | [CWE-379](https://radicalnotion.ai/cwe/cwe-379) | Creation of Temporary File in Directory with Insecure Permissions |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| 7 Pernicious Kingdoms | Insecure Temporary File | - | - |
| CERT C Secure Coding | Avoid race conditions when using library functions | CON33-C | Imprecise |
| The CERT Oracle Secure Coding Standard for Java (2011) | Do not operate on files in shared directories | FIO00-J | - |

## Frequently asked questions

### What is CWE-377?

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 CVEs are caused by CWE-377?

117 recorded CVEs are attributed to CWE-377, including CVE-2018-25068, CVE-2011-4119 and CVE-2012-2666.

### Is CWE-377 actively exploited?

117 recorded CVEs are caused by CWE-377; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/377.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/cwe/cwe-377). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
