CVE-2022-31115
Summary
| CVE | CVE-2022-31115 |
|---|---|
| State | PUBLIC |
| Assigner | [email protected] |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2022-06-30 22:15:00 UTC |
| Updated | 2022-07-25 09:34:00 UTC |
| 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. |
Risk And Classification
Problem Types: CWE-502
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Application | Amazon | Opensearch | All | All | All | All |
| Application | Opensearch | Opensearch | All | All | All | All |
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| Universal RCE with Ruby YAML.load (versions > 2.7) - Staaldraad | MISC | staaldraad.github.io | |
| Use safe_load instead of load for yaml by VachaShah · Pull Request #77 · opensearch-project/opensearch-ruby · GitHub | MISC | github.com | |
| Unsafe YAML deserialization in Ruby Client · Advisory · opensearch-project/opensearch-ruby · GitHub | CONFIRM | github.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.