CVE-2022-31115
published high CVSS 3.1 · 8.8Unsafe YAML deserialization in opensearch-ruby
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| opensearch-project | — | opensearch-ruby< 2.0.1 | Affected | Not stated | GitHub_M |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 8.8 / 10
- Severity
- high
- Provider
- GitHub_M · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| opensearch-project | opensearch-ruby | < 2.0.1 (affected) | GitHub_M · cna |
Weaknesses
1- CWE-502 CWE-502: Deserialization of Untrusted Data
References
3Provider assertions
3GitHub_M · cna
Unsafe YAML deserialization in opensearch-ruby
CISA-ADP · adp
CISA ADP Vulnrichment
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- d200cabe09e5bd9a075ef08c565f2ede05340c0d0fb5d50024c3c0ff63bb7d4d
- Ingested
- 23 Sep 2026, 08:00:25 UTC
- Source record
- Official CVE record