opensearch opensearch CVE-2022-31115 in Opensearch and Amazon Products
Published on June 30, 2022

Unsafe YAML deserialization in opensearch-ruby

product logo product logo
opensearch-ruby is a community-driven, open source fork of elasticsearch-ruby. In versions prior to 2.0.1 the ruby `YAML.load` function was used instead of `YAML.safe_load`. As a result opensearch-ruby 2.0.0 and prior can lead to unsafe deserialization using YAML.load if the response is of type YAML. An attacker must be in control of an opensearch server and convince the victim to connect to it in order to exploit this vulnerability. The problem has been patched in opensearch-ruby gem version 2.0.1. Users are advised to upgrade. There are no known workarounds for this issue.

Github Repository NVD

Vulnerability Analysis

CVE-2022-31115 can be exploited with network access, requires user interaction. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2022-31115. The potential impact of an exploit of this vulnerability is considered to be very high.

Attack Vector:
NETWORK
Attack Complexity:
LOW
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
UNCHANGED
Confidentiality Impact:
HIGH
Integrity Impact:
HIGH
Availability Impact:
HIGH

Weakness Type

What is a Marshaling, Unmarshaling Vulnerability?

The application deserializes untrusted data without sufficiently verifying that the resulting data will be valid.

CVE-2022-31115 has been classified to as a Marshaling, Unmarshaling vulnerability or weakness.


Products Associated with CVE-2022-31115

stack.watch emails you whenever new vulnerabilities are published in Opensearch or Amazon Opensearch. Just hit a watch button to start following.

 
 

Affected Versions

opensearch-project opensearch-ruby Version < 2.0.1 is affected by CVE-2022-31115

Vulnerable Packages

The following package name and versions may be associated with CVE-2022-31115

Package Manager Vulnerable Package Versions Fixed In
rubygems opensearch-ruby < 2.0.2 2.0.2

Exploit Probability

EPSS
0.45%
Percentile
63.55%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.