8.8
CWE
502
Advisory Published
Updated

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

First published: Thu Jun 30 2022(Updated: )

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.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
Amazon Opensearch<2.0.2

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-31115?

    CVE-2022-31115 is a vulnerability in opensearch-ruby that can lead to unsafe deserialization using YAML.load if the response is of type YAML.

  • How severe is CVE-2022-31115?

    CVE-2022-31115 has a severity score of 8.8, which is considered high.

  • What is the affected software version of CVE-2022-31115?

    The affected software version of CVE-2022-31115 is opensearch-ruby prior to version 2.0.1.

  • How can I fix CVE-2022-31115?

    To fix CVE-2022-31115, update opensearch-ruby to version 2.0.1 or later.

  • Where can I find more information about CVE-2022-31115?

    You can find more information about CVE-2022-31115 at the following references: [Reference 1](https://github.com/opensearch-project/opensearch-ruby/pull/77), [Reference 2](https://github.com/opensearch-project/opensearch-ruby/security/advisories/GHSA-977c-63xq-cgw3), [Reference 3](https://staaldraad.github.io/post/2021-01-09-universal-rce-ruby-yaml-load-updated/).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203