CVE-2023-31141
OpenSearch issue with fine-grained access control during extremely rare race conditions
Also known as GHSA-g8xc-6mf7-h28h
Mitigation
- Upgrade org.opensearch.plugin:opensearch-security to one of 1.3.10.0, 2.7.0.0 (or later in the same release line).
Who should check
- Projects that depend on Maven package org.opensearch.plugin:opensearch-security (>= 1.0.0, < 1.3.10.0)
- Anyone running opensearch-project security >= 1.0.0, < 1.3.10; >= 2.0.0, < 2.7.0
Vulnerability facts
- Affected
- org.opensearch.plugin:opensearch-security >= 1.0.0, < 1.3.10.0
- Fixed in
- 1.3.10.0, 2.7.0.0
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, login needed
- CVSS
- 4.8 (v3.1, CNA)CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:NOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Network
- Attack complexity: High
- Privileges required: Low
- User interaction: Required
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: None
- Availability impact: None
- EPSS
- 0.49% chance of exploitation in 30 days (percentile 35, 2026-11-26)
- CWE
- CWE-863
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven org.opensearch.plugin:opensearch-security | >= 1.0.0, < 1.3.10.0 | 1.3.10.0, 2.7.0.0 | osv |
| opensearch-project security | >= 1.0.0, < 1.3.10; >= 2.0.0, < 2.7.0 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2023-31141. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2023-31141.md Affected: org.opensearch.plugin:opensearch-security >= 1.0.0, < 1.3.10.0 Fixed in: 1.3.10.0, 2.7.0.0 Steps: 1. Search this machine and project for org.opensearch.plugin:opensearch-security (Maven), opensearch-project security: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2023-31141 being exploited?
There is no confirmed exploitation: CVE-2023-31141 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.49% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2023-31141?
Medium: CVSS 4.8 (v3.1, scored by CNA). Remote, login needed. A user has to take an action, such as opening a link, for the attack to work. The attack needs conditions outside the attacker's control, which makes it harder.
Which versions are affected by CVE-2023-31141?
org.opensearch.plugin:opensearch-security >= 1.0.0, < 1.3.10.0.
Is there a fix for CVE-2023-31141?
Yes. Fixed in 1.3.10.0, 2.7.0.0. Upgrade org.opensearch.plugin:opensearch-security to one of 1.3.10.0, 2.7.0.0 (or later in the same release line).
How do I check if I'm affected by CVE-2023-31141?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.