Amazon Linux 2 : resteasy-base (ALAS-2024-2398)

medium Nessus Plugin ID 187827

Synopsis

The remote Amazon Linux 2 host is missing a security update.

Description

The version of resteasy-base installed on the remote host is prior to 3.0.6-4. It is, therefore, affected by multiple vulnerabilities as referenced in the ALAS2-2024-2398 advisory.

- A flaw was found in RESTEasy in all versions of RESTEasy up to 4.6.0.Final. The endpoint class and method names are returned as part of the exception response when RESTEasy cannot convert one of the request URI path or query values to the matching JAX-RS resource method's parameter value. The highest threat from this vulnerability is to data confidentiality. (CVE-2021-20289)

- 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. (CVE-2023-0482)

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Run 'yum update resteasy-base' to update your system.

See Also

https://alas.aws.amazon.com/AL2/ALAS-2024-2398.html

https://alas.aws.amazon.com/cve/html/CVE-2021-20289.html

https://alas.aws.amazon.com/cve/html/CVE-2023-0482.html

https://alas.aws.amazon.com/faqs.html

Plugin Details

Severity: Medium

ID: 187827

File Name: al2_ALAS-2024-2398.nasl

Version: 1.0

Type: local

Agent: unix

Published: 1/9/2024

Updated: 1/9/2024

Supported Sensors: Agentless Assessment, Frictionless Assessment Agent, Frictionless Assessment AWS, Nessus Agent, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:P/I:N/A:N

CVSS Score Source: CVE-2021-20289

CVSS v3

Risk Factor: Medium

Base Score: 5.5

Temporal Score: 4.8

Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS Score Source: CVE-2023-0482

Vulnerability Information

CPE: p-cpe:/a:amazon:linux:resteasy-base, p-cpe:/a:amazon:linux:resteasy-base-atom-provider, p-cpe:/a:amazon:linux:resteasy-base-client, p-cpe:/a:amazon:linux:resteasy-base-jackson-provider, p-cpe:/a:amazon:linux:resteasy-base-javadoc, p-cpe:/a:amazon:linux:resteasy-base-jaxb-provider, p-cpe:/a:amazon:linux:resteasy-base-jaxrs, p-cpe:/a:amazon:linux:resteasy-base-jaxrs-all, p-cpe:/a:amazon:linux:resteasy-base-jaxrs-api, p-cpe:/a:amazon:linux:resteasy-base-jettison-provider, p-cpe:/a:amazon:linux:resteasy-base-providers-pom, p-cpe:/a:amazon:linux:resteasy-base-resteasy-pom, p-cpe:/a:amazon:linux:resteasy-base-tjws, cpe:/o:amazon:linux:2

Required KB Items: Host/local_checks_enabled, Host/AmazonLinux/release, Host/AmazonLinux/rpm-list

Exploit Ease: No known exploits are available

Patch Publication Date: 1/3/2024

Vulnerability Publication Date: 3/26/2021

Reference Information

CVE: CVE-2021-20289, CVE-2023-0482