CVE-2022-31115

Unsafe YAML deserialization in opensearch-ruby

Published Jun 30, 2022 CVSS 3.1 · 8.8 High EPSS 1.6% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
EUVD EUVD EUVD-2022-6303 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.
Github GHSA Github GHSA GHSA-977c-63xq-cgw3 opensearch-ruby 2.x before 2.0.2 vulnerable to unsafe YAML deserialization
History
Type Values Removed Values Added
Metrics epss

{'score': 0.00507}

epss

{'score': 0.00495}

Type Values Removed Values Added
Metrics epss

{'score': 0.00175}

epss

{'score': 0.00507}

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Weaknesses

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
Apr 22, 2025, 5:52 PM
Reserved
May 18, 2022, 12:00 AM
Status
Modified
Published
Jun 30, 2022, 10:15 PM
Modified
Jun 17, 2026, 4:44 AM