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

- Severity: Medium 4.8 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2023-05-08T20:33:58.601Z
- Modified: 2026-06-17T05:56:22.100Z
- Also known as: GHSA-g8xc-6mf7-h28h
- Weaknesses: CWE-863
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- opensearch-project security: >= 1.0.0, < 1.3.10; >= 2.0.0, < 2.7.0
- org.opensearch.plugin:opensearch-security (Maven): from 1.0.0 before 1.3.10.0; from 2.0.0 before 2.7.0.0
- amazon opensearch: before 1.3.10; from 2.0.0 before 2.7.0
- amazon opensearch_security: before 1.3.10; from 2.0.0 before 2.7.0

## Every score

- GitHub_M: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N`
- GitHub: CVSS:3.1 4.8 Medium `CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/opensearch-project/security/security/advisories/GHSA-g8xc-6mf7-h28h> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-31141> (advisory)
- <https://github.com/opensearch-project/security> (package)

## Sources

- CVE List: [CVE-2023-31141](https://www.cve.org/CVERecord?id=CVE-2023-31141), CVE Terms of Use, modified 2025-01-29
- GitHub Advisory Database: [GHSA-g8xc-6mf7-h28h](https://github.com/advisories/GHSA-g8xc-6mf7-h28h), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2023-31141](https://nvd.nist.gov/vuln/detail/CVE-2023-31141), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31141 · Whole record: https://cve.day/CVE-2023-31141.json · Rebuilt by cve.day 2026-11-25T22:58:23.983Z
