# CVE-2023-31141: OpenSearch issue with fine-grained access control during extremely rare race conditions

- Priority: **Routine**
- Reason: Not severe (CVSS 4.8, network access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2023-05-08 · Modified: 2025-01-29
- Aliases: UBUNTU-CVE-2023-31141, GHSA-g8xc-6mf7-h28h
- Record: https://cvemate.com/vulnerability/CVE-2023-31141 · JSON: https://cvemate.com/vulnerability/CVE-2023-31141/json

## Description

```text
OpenSearch is open-source software suite for search, analytics, and observability applications. Prior to versions 1.3.10 and 2.7.0, there is an issue with the implementation of fine-grained access control rules (document-level security, field-level security and field masking) where they are not correctly applied to the queries during extremely rare race conditions potentially leading to incorrect access authorization. For this issue to be triggered, two concurrent requests need to land on the same instance exactly when query cache eviction happens, once every four hours. OpenSearch 1.3.10 and 2.7.0 contain a fix for this issue.
```

## Signals

- CVSS: 5.9 medium (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- EPSS: 0.46%, percentile 41.61%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- amazon opensearch: \< 1.3.10 \| ≥ 2.0.0, \< 2.7.0
- amazon opensearch\_security: \< 1.3.10 \| ≥ 2.0.0, \< 2.7.0
- ubuntu opensearch (Ubuntu): All versions (No fix recorded)
- org.opensearch.plugin opensearch-security (Maven): ≥ 1.0.0, \< 1.3.10.0 \| ≥ 2.0.0, \< 2.7.0.0
- opensearch-project security: ≥ 1.0.0, \< 1.3.10 \| ≥ 2.0.0, \< 2.7.0

## References

- <https://github.com/opensearch-project/security/security/advisories/GHSA-g8xc-6mf7-h28h>
- <https://ubuntu.com/security/CVE-2023-31141>
- <https://www.cve.org/CVERecord?id=CVE-2023-31141>
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31141>
- <https://github.com/opensearch-project/security>

---

Data as of 2026-12-05T06:33:25.184Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
