---
id: CVE-2025-12148
title: >-
  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…
summary: >-
  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…
severity: none
cwe:
  - CWE-200
  - CWE-732
published: '2025-10-29'
updated: '2026-10-08'
sourceUpdated: '2026-10-08T11:10:00.250'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2025-12148'
references:
  - url: 'https://docs.search-guard.com/latest/changelog-searchguard-flx-3_1_2'
    label: security@search-guard.com
  - url: 'https://search-guard.com/cve-advisory/'
    label: security@search-guard.com
tags:
  - nvd
epss: 0.00274
epssPercentile: 0.18137
ingestedAt: '2026-10-08T11:31:27.680Z'
---

## Overview

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.

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.
