CVE-2022-31115
CVE-2022-31115 is a high-severity vulnerability in Amazon Opensearch with a CVSS 3.x base score of 8.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-502.
Key facts
- Severity: High (CVSS 3.x base score 8.8)
- CVSS v2: 6.8
- EPSS exploit prediction: 2% (71st percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-502
- Affected product: Amazon Opensearch
- Published:
- Last modified:
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.
Frequently asked questions
- What is CVE-2022-31115?
- 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.
- How severe is CVE-2022-31115?
- CVE-2022-31115 has a CVSS 3.x base score of 8.8, rated high severity. It is exploitable over network with low attack complexity, requires no privileges and user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2022-31115 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 2% (71st percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2022-31115?
- CVE-2022-31115 affects Amazon Opensearch. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2022-31115?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its high severity, prioritise patching exposed systems.
- When was CVE-2022-31115 published?
- CVE-2022-31115 was published on 2022-06-30 and last updated on 2026-06-17.
References
- https://github.com/opensearch-project/opensearch-ruby/pull/77
- https://github.com/opensearch-project/opensearch-ruby/security/advisories/GHSA-977c-63xq-cgw3
- https://staaldraad.github.io/post/2021-01-09-universal-rce-ruby-yaml-load-updated/
Affected products (1)
- cpe:2.3:a:amazon:opensearch:*:*:*:*:*:ruby:*:*
More vulnerabilities in Amazon Opensearch
- CVE-2025-9624 — High (CVSS 7.5): A vulnerability in OpenSearch allows attackers to cause Denial of Service (DoS) by submitting complex query_string…
- CVE-2022-35980 — High (CVSS 7.5): OpenSearch Security is a plugin for OpenSearch that offers encryption, authentication and authorization. Versions…
- CVE-2022-41918 — Medium (CVSS 6.3): OpenSearch is a community-driven, open source fork of Elasticsearch and Kibana. There is an issue with the…
- CVE-2023-23613 — Medium (CVSS 5.7): OpenSearch is an open source distributed and RESTful search engine. In affected versions there is an issue in the…
- CVE-2023-45807 — Medium (CVSS 5.4): OpenSearch is a community-driven, open source fork of Elasticsearch and Kibana following the license change in early…
- CVE-2023-25806 — Medium (CVSS 5.3): OpenSearch Security is a plugin for OpenSearch that offers encryption, authentication and authorization. There is an…
All CVEs affecting Amazon Opensearch →
Other CWE-502 (Deserialization of Untrusted Data) vulnerabilities
- CVE-2026-41104 — Critical (CVSS 10.0): Deserialization of untrusted data in Microsoft Planetary Computer Pro allows an unauthorized attacker to disclose…
- CVE-2026-43633 — Critical (CVSS 10.0): HestiaCP versions 1.9.0 through 1.9.4 contain a deserialization vulnerability in the web terminal component caused by a…
- CVE-2026-33819 — Critical (CVSS 10.0): Deserialization of untrusted data in Microsoft Bing allows an unauthorized attacker to execute code over a network.
- CVE-2026-20131 — Critical (CVSS 10.0): A vulnerability in the web-based management interface of Cisco Secure Firewall Management Center (FMC) Software could…
- CVE-2026-25632 — Critical (CVSS 10.0): EPyT-Flow is a Python package designed for the easy generation of hydraulic and water quality scenario data of water…
- CVE-2025-14931 — Critical (CVSS 10.0): Hugging Face smolagents Remote Python Executor Deserialization of Untrusted Data Remote Code Execution Vulnerability.…
Browse all CWE-502 (Deserialization of Untrusted Data) vulnerabilities →