Insecure Temporary File Affecting java-1.7.0-openjdk-demo package, versions <1:1.7.0.55-2.4.7.2.el7_0


Severity

Recommended
critical

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Insecure Temporary File vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-JAVA170OPENJDKDEMO-4941094
  • published26 Jul 2021
  • disclosed3 Feb 2014

Introduced: 3 Feb 2014

CVE-2014-1876  (opens in a new tab)
CWE-377  (opens in a new tab)

How to fix?

Upgrade RHEL:7 java-1.7.0-openjdk-demo to version 1:1.7.0.55-2.4.7.2.el7_0 or higher.
This issue was patched in RHSA-2014:0675.

NVD Description

Note: Versions mentioned in the description apply only to the upstream java-1.7.0-openjdk-demo package and not the java-1.7.0-openjdk-demo package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

The unpacker::redirect_stdio function in unpack.cpp in unpack200 in OpenJDK 6, 7, and 8; Oracle Java SE 5.0u61, 6u71, 7u51, and 8; JRockit R27.8.1 and R28.3.1; and Java SE Embedded 7u51 does not securely create temporary files when a log file cannot be opened, which allows local users to overwrite arbitrary files via a symlink attack on /tmp/unpack.log.

CVSS Scores

version 3.1