Live threats

All CVEs / Amazon

CVE-2022-31115Amazon Opensearch

High 8.8 No auth needed

Priority
68
CVSS 3.1
8.8
EPSS
1.6%
probability of exploitation in 30 days · percentile 76
Auth required
No
Published
Jun 30, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-502
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: total
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Opensearch.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
RubyGems opensearch-ruby ≥ 2.0.0 < 2.0.2 2.0.2 gem "opensearch-ruby", ">= 2.0.2"

Per OSV / GitHub Advisories (GHSA-977c-63xq-cgw3). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
amazonopensearch< 2.0.2

Official sources

References

Links published by the sources. Open them with care.