CVE-2022-31115: opensearch-ruby is a community-driven, open source fork of elasticsearch-ruby.
High CVSS 8.8
- CVE id
- CVE-2022-31115
- Published
- Last modified
Affected packages
| Package | Affected versions | Fixed in |
|---|---|---|
| OpenSearch Runtimes and servers |
< 2.0.2 | 2.0.2 |
How to fix it
Upgrade OpenSearch to 2.0.2 or later.
- Upgrade OpenSearch (the opensearchproject/opensearch image tag) to the patched release.
A free AIssue account reads the runtime versions your repositories pin (version files, Dockerfiles, build files) and tells you when one is affected.
Details
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.
References
- CVE-2022-31115 on the NVD
- Advisory: https://nvd.nist.gov/vuln/detail/CVE-2022-31115
- Web: https://github.com/opensearch-project/opensearch-ruby/pull/77
- Web: https://github.com/opensearch-project/opensearch-ruby/security/advisories/GHSA-977c-63xq-cgw3
- Web: https://staaldraad.github.io/post/2021-01-09-universal-rce-ruby-yaml-load-updated/
- Web: https://github.com/opensearch-project/opensearch-ruby/pull/77
- Web: https://github.com/opensearch-project/opensearch-ruby/security/advisories/GHSA-977c-63xq-cgw3
- Web: https://staaldraad.github.io/post/2021-01-09-universal-rce-ruby-yaml-load-updated/
Am I affected?
Upload or paste your lockfile. We check every package version in it against OSV.dev, this advisory included, and email you the vulnerable ones with the version that fixes them. Free, and no account needed.
About this data
Source: National Vulnerability Database (NVD) (public domain). Severity comes from the advisory's own rating when it has one, else from its CVSS score.