GHSA-977c-63xq-cgw3 · Severity: high · Ecosystem: rubygems — opensearch-ruby 2.x before 2.0.2 vulnerable to unsafe YAML deserialization
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.
Conclusion & alert: CVE-2022-31115 is rated High Exploit Risk (71.6/100): CVSS High severity, with medium exploitation likelihood (EPSS 0.42%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.
Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.
| EDB-ID | Source | Kind | Published | Link |
|---|---|---|---|---|
| — | nvd_ref | exploit_tag | Exploit-DB ↗ |
EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).
| # | Date | Old EPSS score | New EPSS score | Delta (New - Old) |
|---|---|---|---|---|
| 1 | 2025-09-06 | 0.51% | 0.42% | -0.09% |
| 2 | 2025-07-13 | 0.15% | 0.51% | +0.36% |
| 3 | 2025-04-26 | — | 0.15% | — |
Full EPSS history (13 records total)
CVSS metrics for this CVE.
| Base score | Version | Severity | Vector | Exploitability | Impact | Score source |
|---|---|---|---|---|---|---|
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 8.8 | 3.1 | HIGH |
|
2.8 | 5.9 | [email protected] |
| 6.8 | 2.0 | MEDIUM |
|
8.6 | 6.4 | [email protected] |
GHSA-977c-63xq-cgw3 · Severity: high · Ecosystem: rubygems — opensearch-ruby 2.x before 2.0.2 vulnerable to unsafe YAML deserialization
| Vendor | Product | Version | Raw CPE |
|---|---|---|---|
| amazon | opensearch | < 2.0.2 | cpe:2.3:a:amazon:opensearch:*:*:*:*:*:ruby:*:* |
| URL | Tags |
|---|---|
| https://github.com/opensearch-project/opensearch-ruby/pull/77 | Patch Third Party Advisory |
| https://github.com/opensearch-project/opensearch-ruby/security/advisories/GHSA-977c-63xq-cgw3 | Third Party Advisory |
| https://staaldraad.github.io/post/2021-01-09-universal-rce-ruby-yaml-load-updated/ | Exploit Third Party Advisory |