Skip to main content

Search Guard CVE-2025-12148

MEDIUM
Information Exposure (CWE-200)
2025-10-29 security@search-guard.com
6.0
CVSS 4.0 · Vendor: search-guard
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as low-privilege search user
  2. Exploit
    Query masked IP field with candidate IP values
  3. Execution
    Observe which documents return as hits
  4. Impact
    Reconstruct original masked IP addresses

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V14 - Data Protection Data exposure prevention
MITRE ATT&CK

2 techniques across 2 tactics: Collection, Discovery

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires that Field Masking (FM) rules are configured on fields of type IP within Search Guard 3.1.1 or earlier; installations using Field Level Security (FLS) instead of FM on those fields are not affected (this is the vendor-stated workaround). The attacker must hold valid, low-privilege authenticated search access (PR:L) to an index containing such masked IP fields and be able to submit queries against the masked field. The limiting factors are substantial: it only works where FM (not FLS) is applied to IP-type fields, it requires authenticated search permissions rather than anonymous access, and it is a slow enumeration/oracle technique that reconstructs values incrementally rather than dumping data wholesale.

Impact

This is a genuine but moderate-priority confidentiality flaw, not a drop-everything emergency. The signals are internally consistent and point to targeted, low-automation abuse rather than mass exploitation. The vendor CVSS 4.0 vector (AV:N/AC:L/AT:P/PR:L/UI:N) scores 6.0 Medium: network-reachable but requiring low-privilege authentication (PR:L) AND a present attack requirement (AT:P), reflecting that Field Masking must actually be configured on IP-type fields and the attacker must be able to query them. Impact is confidentiality-only (VC:H, with VI/VA/all subsequent metrics = N), matching CWE-200 (Information Disclosure) - there is no integrity, availability, or code-execution exposure. EPSS is low (0.27%, 18th percentile), the CVE is NOT on CISA KEV, and no public POC was supplied, so there is no evidence of active exploitation. These signals agree: a low EPSS, no KEV, and an authentication + configuration prerequisite collectively indicate this is a real-but-contained data-reconstruction weakness exploitable mainly by insiders or already-authenticated users against installations that rely on Field Masking for IP fields. No major conflicts exist between the signals; the main caveat is that exploitation is a search-oracle side channel, which the network-vector label alone does not fully convey.

Exploit ScenarioDerived

A low-privileged but authenticated Search Guard user who is only supposed to see masked (redacted) IP-address fields issues repeated search queries matching specific candidate IP values. Although the _source redacts the field, documents still return as hits when the queried IP matches, so the user treats search as an oracle and reconstructs the real IP values one query at a time. No public exploit code was identified, and the attack requires valid search credentials plus Field Masking being enabled on IP-type fields.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 08, 2026

Field Masking rules in Search Guard 3.1.1 and earlier can be bypassed as an inference oracle: although masked IP-address fields are redacted in the _source of returned documents, queries submitted against those fields still return matching hits, letting a low-privileged authenticated user reconstruct the redacted IP values incrementally. The flaw is confined to installations that apply Field Masking (FM) to IP-type fields; deployments using Field Level Security (FLS) on those same fields are not affected, which is also the vendor's documented workaround. Risk is moderate rather than critical: exploitation requires valid low-privilege search access to an index containing such masked fields, works only where FM rather than FLS is configured, and is a slow enumeration technique rather than a wholesale data dump, with EPSS at 0.27% (18th percentile), no CISA KEV listing, and no public exploit code identified at time of analysis.

RemediationAI

Vendor-released patch: upgrade to Search Guard FLX 3.1.2, whose changelog (https://docs.search-guard.com/latest/changelog-searchguard-flx-3_1_2) documents the fix; the full advisory is at https://search-guard.com/cve-advisory/. If an immediate upgrade is not possible, the vendor-stated workaround is to replace Field Masking with Field Level Security on the affected IP-type fields - with the trade-off that FLS hides or denies the field outright rather than returning a redacted placeholder, which commonly breaks dashboards, filters, or applications that expect the field to be present and can change query behavior for legitimate users. In parallel, audit all FM rules across indices and roles to identify every IP-typed field whose values may have already been recoverable, and treat those addresses as potentially disclosed when assessing downstream exposure; also review search privileges so that only users who genuinely need to query IP fields on masked indices retain access, since the technique requires authenticated low-privilege search rights. There is no public exploit code identified at time of analysis and EPSS is only 0.27%, so this can be scheduled in a normal patch cycle, but it should not be deferred indefinitely where masked IP data is itself sensitive (for example, client or reveal addresses correlated with log data).

Affected ProductsAI

Search Guard versions 3.1.1 and earlier are affected, specifically any deployment in which Field Masking (FM) rules are configured on fields mapped as IP Address; Search Guard distributions using Field Level Security instead of FM on those fields are outside the affected configuration (no CPE strings were supplied with this record, so version matching must be done against the vendor changelog rather than an automated CPE lookup). The vendor changelog for Search Guard FLX 3.1.2 (https://docs.search-guard.com/latest/changelog-searchguard-flx-3_1_2) and the Search Guard CVE advisory page (https://search-guard.com/cve-advisory/) are the authoritative references for the exact product line and version boundaries; administrators should confirm whether their cluster uses FM on IP-type fields, since that configuration is what determines exposure rather than the version alone.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Search Guard is a security plugin for Elasticsearch/OpenSearch that provides authentication, authorization, and document- and field-level access controls. Two distinct controls are involved here: Field Level Security (FLS), which removes or denies access to a field entirely, and Field Masking (FM), which preserves the field in query responses but replaces its value with a redaction placeholder. The bug is an application-level logic failure in how FM is enforced for fields mapped as IP Address (CWE-200, Exposure of Sensitive Information to an Unauthorized Actor): the masking is applied when rendering the _source document, but the underlying indexed terms remain searchable, so a query such as a term or range query on the masked IP field returns hit/no-hit results that leak whether a guessed value exists. Because the IP space is enumerable, an attacker with search permissions can binary-search or incrementally probe candidate addresses, effectively using the search API as a boolean oracle to recover the masked values. The scored CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N) awards high confidentiality impact with no integrity or availability impact, and our independent assessment at CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:N/C:H/I:N/A:N rates exploitability as high-complexity (AC:H) precisely because the attack is a repeated, noise-generating enumeration rather than a single-shot disclosure; both vectors agree the attacker is remote and authenticated at low privilege (PR:L).

Know when Elasticsearch gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (search-guard) PRIMARY 6.0 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N
vuln.today AI 5.3 MEDIUM

Network-reachable search API but AC:H reflects the required Field-Masking-on-IP-fields condition and oracle enumeration, PR:L for authenticated search access, confidentiality-only impact (C:H) with no integrity or availability effect.

3.1 AV:N/AC:H/PR:L/UI:N/S:N/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (search-guard).

CVSS VectorVendor: search-guard

Attack Vector
Network
Attack Complexity
Low
Attack Requirements
Present
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

In Search Guard versions 3.1.1 and earlier, Field Masking (FM) rules are improperly enforced on fields of type IP (IP Address).

While the content of these fields is properly redacted in the _source document returned by search operations, the results do return documents (hits) when searching based on a specific IP values. This allows to reconstruct the original contents of the field.

Workaround - If you cannot upgrade immediately, you can avoid the problem by using field level security (FLS) protection on fields of the affected types instead of field masking.

Threat Intelligence Overview

EPSS Score
0.3%
Top 82% exploitable
Prevalence
Low
Elasticsearch/OpenSearch security plugin, niche enterprise footprint
Data Quality
3 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

30
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +30
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

CVE-2015-1427 CRITICAL POC
9.8 Feb 17

The Groovy scripting engine in Elasticsearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the s

CVE-2014-3120 HIGH POC
8.1 Jul 28

The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execut

CVE-2015-5531 MEDIUM POC
5.0 Aug 17

Directory traversal vulnerability in Elasticsearch before 1.6.1 allows remote attackers to read arbitrary files via unsp

CVE-2015-3337 MEDIUM POC
4.3 May 01

Directory traversal vulnerability in Elasticsearch before 1.4.5 and 1.5.x before 1.5.2, when a site plugin is enabled, a

CVE-2023-31419 HIGH
7.5 Oct 26

A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause

CVE-2026-82409 HIGH POC
8.4 Sep 23

Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r

CVE-2021-22146 HIGH POC
7.5 Jul 21

All versions of Elastic Cloud Enterprise has the Elasticsearch “anonymous” user enabled by default in deployed clusters.

CVE-2021-22145 MEDIUM POC
6.5 Jul 21

A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. Rated medium severit

CVE-2026-72649 HIGH
8.8 Sep 01

Remote code execution in Elasticsearch's machine learning component allows an authenticated user with ML model deploymen

CVE-2026-72642 HIGH
8.8 Aug 13

Heap corruption and potential remote code execution in Elasticsearch's native ML inference engine can be triggered by an

CVE-2020-7014 HIGH
8.8 Jun 03

The fix for CVE-2020-7009 was found to be incomplete. Rated high severity (CVSS 8.8), this vulnerability is remotely exp

CVE-2020-7009 HIGH
8.8 Mar 31

Elasticsearch versions from 6.7.0 before 6.8.8 and 7.0.0 before 7.6.2 contain a privilege escalation flaw if an attacker

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy