Search Guard CVE-2025-12148
MEDIUMAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as low-privilege search user
-
ExploitQuery masked IP field with candidate IP values
-
ExecutionObserve which documents return as hits
-
ImpactReconstruct 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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
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.
Primary rating from Vendor (search-guard).
CVSS VectorVendor: search-guard
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.
More in Elasticsearch
View allThe Groovy scripting engine in Elasticsearch before 1.3.8 and 1.4.x before 1.4.3 allows remote attackers to bypass the s
The default configuration in Elasticsearch before 1.2 enables dynamic scripting, which allows remote attackers to execut
Directory traversal vulnerability in Elasticsearch before 1.6.1 allows remote attackers to read arbitrary files via unsp
Directory traversal vulnerability in Elasticsearch before 1.4.5 and 1.5.x before 1.5.2, when a site plugin is enabled, a
A flaw was discovered in Elasticsearch, affecting the _search API that allowed a specially crafted query string to cause
Maliciously crafted on-chain account names processed by Klever-Go prior to 1.7.20 are spliced into Elasticsearch _bulk r
All versions of Elastic Cloud Enterprise has the Elasticsearch “anonymous” user enabled by default in deployed clusters.
A memory disclosure vulnerability was identified in Elasticsearch 7.10.0 to 7.13.3 error reporting. Rated medium severit
Remote code execution in Elasticsearch's machine learning component allows an authenticated user with ML model deploymen
Heap corruption and potential remote code execution in Elasticsearch's native ML inference engine can be triggered by an
The fix for CVE-2020-7009 was found to be incomplete. Rated high severity (CVSS 8.8), this vulnerability is remotely exp
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
NVD
CVE.org
EPSS
GitHub PoC
Exploit-DB