← Vulnerability feed

Vulnerability record · CVE-2022-31115 · published 30 June 2022

CVE-2022-31115: Amazon opensearch deserialization of untrusted data vulnerability

Amazon · Opensearch

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.

8.8 CVSS 3.1 High EPSS 1.6% · top 24.9% CWE-502 · Deserialization of untrusted data
8.8CVSS 3.1 base score, v2 6.8
1.6%EPSS exploitation probability, 30 days
NoNot in CISA KEV
1Affected product versions listed by NVD
6References, 2 tagged exploit
17 Jun 2026Last modified by NVD

Description

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.

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

Affected products

1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

Track CVE-2022-31115 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

8.8CVE-2023-23612Amazon opensearch improper authentication vulnerabilityOpenSearch is an open source distributed and RESTful search engine. OpenSearch uses JWTs to store role claims obtained from the Identity Provider (Id…EPSS 0.80%8.3CVE-2025-9624Amazon opensearch vulnerabilityA vulnerability in OpenSearch allows attackers to cause Denial of Service (DoS) by submitting complex query_string inputs. This issue affects all Ope…EPSS 0.51%7.5CVE-2022-35980Amazon opensearch vulnerabilityOpenSearch Security is a plugin for OpenSearch that offers encryption, authentication and authorization. Versions 2.0.0.0 and 2.1.0.0 of the security…EPSS 1.2%6.5CVE-2023-23613Amazon opensearch information exposure vulnerabilityOpenSearch is an open source distributed and RESTful search engine. In affected versions there is an issue in the implementation of field-level secur…EPSS 0.82%6.3CVE-2022-41918Amazon opensearch incorrect authorization vulnerabilityOpenSearch is a community-driven, open source fork of Elasticsearch and Kibana. There is an issue with the implementation of fine-grained access cont…EPSS 0.47%5.9CVE-2023-31141Amazon opensearch incorrect authorization vulnerabilityOpenSearch is open-source software suite for search, analytics, and observability applications. Prior to versions 1.3.10 and 2.7.0, there is an issue…EPSS 0.46%5.4CVE-2023-45807Amazon opensearch vulnerabilityOpenSearch is a community-driven, open source fork of Elasticsearch and Kibana following the license change in early 2021. There is an issue with the…EPSS 0.41%5.3CVE-2023-25806Amazon opensearch observable discrepancy vulnerabilityOpenSearch Security is a plugin for OpenSearch that offers encryption, authentication and authorization. There is an observable discrepancy in the au…EPSS 0.33%

Source: NIST National Vulnerability Database (record CVE-2022-31115), CISA KEV, FIRST EPSS (scores of 2026-09-28). This page is refreshed as NVD updates the record.