Creation of Temporary File With Insecure Permissions Affecting resteasy-base-javadoc package, versions <0:3.0.6-4.amzn2.0.1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.26% (19th 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 IDSNYK-AMZN2-RESTEASYBASEJAVADOC-6149325
  • published10 Jan 2024
  • disclosed17 Feb 2023

Introduced: 17 Feb 2023

CVE-2023-0482  (opens in a new tab)
CWE-378  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2 resteasy-base-javadoc to version 0:3.0.6-4.amzn2.0.1 or higher.
This issue was patched in ALAS2-2024-2398.

NVD Description

Note: Versions mentioned in the description apply only to the upstream resteasy-base-javadoc package and not the resteasy-base-javadoc package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2 relevant fixed versions and status.

In RESTEasy the insecure File.createTempFile() is used in the DataSourceProvider, FileProvider and Mime4JWorkaround classes which creates temp files with insecure permissions that could be read by a local user.

CVSS Base Scores

version 3.1