8.8

CVE-2022-31115: Unsafe YAML deserialization in opensearch-ruby

Modified
AliasesGHSA-977c-63xq-cgw3
Published 30-06-2022Last modified 22-04-2025

Vulnerability summary

CVE-2022-31115 is a high (CVSS 8.8) Deserialization of Untrusted Data vulnerability in amazon opensearch. EPSS estimates a 1.64% chance of exploitation in the next 30 days, higher than 77.2% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Prioritisepublic exploit

Public exploit (reference, Date unknown)

Source freshness unavailable

How is this decided?
CVSS score
8.8/10
010
High · v3.1 (CVE.org)
EPSS score
1.64%
0%100%
Low · +0.03 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Timeline

  1. 30-06-2022
    PublishedVulnerability first disclosed.
  2. 22-04-2025
    Last modifiedVulnerability information updated.

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 metrics

4 scores · 3 sources · 2 versions

EPSS trend

Probability

1.64%

Chance of exploitation in the next 30 days

Percentile

77%

Versus all other CVEs

30-day change

Increase +0.03 pp

From 1.62% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (staaldraad.github.io)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, user interaction (CVSS vector). Other conditions: not stated in public data.

Amazon1 product
Opensearch-project1 product
RubyGems1 product
  • opensearch-ruby≥ 2.0.0, < 2.0.2

3 vendors · 3 products

References

9 links