Creation of Temporary File With Insecure Permissions Affecting net.rubygrapefruit:native-platform package, versions [0,]


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (16th 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 Creation of Temporary File With Insecure Permissions vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-JAVA-NETRUBYGRAPEFRUIT-8747575
  • published26 Feb 2025
  • disclosed25 Feb 2025
  • creditljacomet

Introduced: 25 Feb 2025

NewCVE-2025-27148  (opens in a new tab)
CWE-378  (opens in a new tab)

How to fix?

A fix was pushed into the master branch but not yet published.

Overview

Affected versions of this package are vulnerable to Creation of Temporary File With Insecure Permissions due to improper handling of temporary files. On Unix-like systems, if the Native.get(Class<>) method is invoked without prior initialization via Native.init(File) with a non-null argument, the library defaults to using the system's temporary directory for storing native libraries. This directory often has open permissions, allowing an attacker to delete and recreate files rapidly.

CVSS Base Scores

version 4.0
version 3.1