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

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.

Published: 2023-05-08 Last update: 2024-11-21 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2023-31141 is rated Low Risk (37.9/100): CVSS Medium severity, with medium exploitation likelihood (EPSS 0.31%). Mandatory action: Monitor for updates and reassess as exploit intelligence or EPSS changes.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Exploit prediction scoring system (EPSS) score for CVE-2023-31141

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-05-11 0.64% 0.31% -0.33%
2 2026-05-10 0.51% 0.64% +0.13%
3 2026-01-31 0.51%

Full EPSS history (14 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2023-31141

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
4.8 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:L)
A normal user session is enough; they don’t have to be admin.
User interaction (UI:R)
A real person has to do something—click, install, enable—otherwise it doesn’t land.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
1.2 3.6 [email protected]
5.9 3.1 MEDIUM
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:H)
Serious risk that confidential data gets exposed in a big way.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
2.2 3.6 [email protected]

Weakness enumeration for CVE-2023-31141

GitHub Security Advisory for CVE-2023-31141

GHSA-g8xc-6mf7-h28h · Severity: medium · Ecosystem: maven — OpenSearch issue with fine-grained access control during extremely rare race conditions

OS Trackers for CVE-2023-31141

vendor priority summary link
debian not yet assigned CVE-2023-31141 not yet assigned priority: Debian including 1 source packages (opensearch), 1 status rows across 1 suites (sid): open 1. https://security-tracker.debian.org/tracker/CVE-2023-31141
ubuntu medium CVE-2023-31141 medium priority: Ubuntu including 1 source packages (opensearch), 12 status rows across 12 suites (bionic, focal, jammy, lunar, mantic, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 7, ignored 3, needs-triage 2. https://ubuntu.com/security/CVE-2023-31141

Affected software / configurations for CVE-2023-31141

Vendor Product Version Raw CPE
amazon opensearch < 1.3.10 cpe:2.3:a:amazon:opensearch:*:*:*:*:*:docker:*:*
amazon opensearch >= 2.0.0, < 2.7.0 cpe:2.3:a:amazon:opensearch:*:*:*:*:*:docker:*:*
amazon opensearch_security < 1.3.10 cpe:2.3:a:amazon:opensearch_security:*:*:*:*:*:*:*:*
amazon opensearch_security >= 2.0.0, < 2.7.0 cpe:2.3:a:amazon:opensearch_security:*:*:*:*:*:*:*:*

References for CVE-2023-31141

cvelogic Threat Intelligence