# CVE-2023-49923: Enterprise Search Insertion of Sensitive Information into Log File

> Attackers with log access can read sensitive data from indexed documents logged at INFO level in Elastic Enterprise Search.

- **Severity:** Medium 6.8 (`CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 12 Dec 2023
- **Updated:** 24 May 2025
- **Also known as:** GHSA-q3p5-xqf4-5mgf

## What is CVE-2023-49923?

CVE-2023-49923 is a medium-severity vulnerability in Elastic Enterprise Search, published on 12 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

An issue was discovered by Elastic whereby the Documents API of App Search logged the raw contents of indexed documents at INFO log level. Depending on the contents of such documents, this could lead to the insertion of sensitive or private information in the App Search logs. Elastic has released 8.11.2 and 7.17.16 that resolves this issue by changing the log level at which these are logged to DEBUG, which is disabled by default.

Weakness: CWE-532 (Insertion of Sensitive Information into Log File)

## Which versions are affected by CVE-2023-49923?

It affects 1 product.


Products: Elastic Enterprise Search.

## How do I fix CVE-2023-49923?

No fix has been published for CVE-2023-49923 yet. Limit exposure of the affected software until one is available.

## Is CVE-2023-49923 being exploited?

There is no known exploitation of CVE-2023-49923 in the wild and no public exploit code.

## Other vulnerabilities in Elastic Enterprise Search

- [CVE-2021-22148](https://insights.sbomify.com/CVE-2021-22148/): Missing authorization in Elastic Enterprise Search (high 8.8)
- [CVE-2021-22149](https://insights.sbomify.com/CVE-2021-22149/): Missing authorization in Elastic Enterprise Search (high 8.8)
- [CVE-2020-7018](https://insights.sbomify.com/CVE-2020-7018/): Privilege escalation in Elastic Enterprise Search (high 8.8)
- [CVE-2021-37940](https://insights.sbomify.com/CVE-2021-37940/): Server-side request forgery in Enterprisesearch (medium 6.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2023-49923 and fix it if it is affected.

What it is: CVE-2023-49923 is a medium-severity vulnerability in Elastic Enterprise Search, published on 12 Dec 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2023-49923 in the wild and no public exploit code.

Affected product: Elastic Enterprise Search. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2023-49923/ (Markdown: https://insights.sbomify.com/CVE-2023-49923/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2023-49923
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2023-49923
- OSV: https://osv.dev/vulnerability/CVE-2023-49923

---
From sbomify Insights: https://insights.sbomify.com/CVE-2023-49923/
Summaries are generated and may contain mistakes; the official description above is the record.
