What’s Vulnerable › Vulnerabilities
CVE-2023-6687: Elastic Agent Insertion of Sensitive Information into Log File
- Severity: medium (CVSS 6.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2023-12-12 · updated 2026-06-17
- Weakness: CWE-532
Description
An issue was discovered by Elastic whereby 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 Elastic Agent attempted to ingest, this could lead to the insertion of sensitive or private information in the 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.
Affected products
- Elastic Agent: from 7.0.0 before 7.17.16; from 8.0.0 before 8.11.3 — fixed in 7.17.16, 8.11.3
How to fix
Upgrade to a fixed version: Elastic Agent 7.17.16, 8.11.3. Check the vendor advisory for mitigations.
References
- https://discuss.elastic.co/t/beats-and-elastic-agent-8-11-3-7-17-16-security-update-esa-2023-30/349180
- https://discuss.elastic.co/t/beats-and-elastic-agent-8-11-3-7-17-16-security-update-esa-2023-30/349180
Get alerted when CVE-2023-6687 or the next vulnerability affects your stack