Elasticsearch Insertion of sensitive information in audit logs
Elasticsearch generally filters out sensitive information and credentials before logging to the audit log. It was found that this filtering was not applied when requests to Elasticsearch use certain deprecated URIs for APIs. The impact of this flaw is that sensitive information such as passwords and tokens might be printed in cleartext in Elasticsearch audit logs. Note that audit logging is disabled by default and needs to be explicitly enabled and even when audit logging is enabled, request bodies that could contain sensitive information are not printed to the audit log unless explicitly configured.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2023-31417
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 19:23 UTC · Revision 1
Source evidence
Elasticsearch Insertion of sensitive information in audit logs
core-osv · Original sourcePublished 26 Oct 2023, 17:47 UTC
Elasticsearch generally filters out sensitive information and credentials before logging to the audit log. It was found that this filtering was not applied when requests to Elasticsearch use certain deprecated URIs for APIs. The impact of this flaw is that sensitive information such as passwords and tokens might be printed in cleartext in Elasticsearch audit logs. Note that audit logging is disabled by default and needs to be explicitly enabled and even when audit logging is enabled, request bodies that could contain sensitive information are not printed to the audit log unless explicitly configured.
osv:CVE-2023-31417
Complete source record
{
"id": "b2dbaf363b2d29c47c19f66370a6f1a6cd73ea06fcd54cfa677a48462bda4b0d",
"url": "https://osv.dev/vulnerability/CVE-2023-31417",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Elasticsearch Insertion of sensitive information in audit logs",
"summary": "Elasticsearch generally filters out sensitive information and credentials before logging to the audit log. It was found that this filtering was not applied when requests to Elasticsearch use certain deprecated URIs for APIs. The impact of this flaw is that sensitive information such as passwords and tokens might be printed in cleartext in Elasticsearch audit logs. Note that audit logging is disabled by default and needs to be explicitly enabled and even when audit logging is enabled, request bodies that could contain sensitive information are not printed to the audit log unless explicitly configured.",
"evidence": "osv:CVE-2023-31417",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2023-31417",
"aliases": [
"BIT-elasticsearch-2023-31417",
"CVE-2023-31417",
"GHSA-99pc-69q9-jxf2"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/elastic/elasticsearch",
"type": "GIT",
"events": [
{
"introduced": "b7e28a7232616c7a21bc879a535d801b8553ba77"
},
{
"last_affected": "e3b0c3d3c5c130e1dc6d567d6baef1c73eeb2059"
},
{
"introduced": "1b6a7ece17463df5ff54a3e1302d825889aa1161"
},
{
"last_affected": "a813d015ef1826148d9d389bd1c0d781c6e349f0"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.0.0"
},
{
"last_affected": "7.17.12"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:elastic:elasticsearch:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "8.0.0"
},
{
"last_affected": "8.9.1"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-31417.json"
}
}
],
"modified": "2026-10-28T02:30:31.509030958Z",
"provider": "osv",
"references": [
"https://discuss.elastic.co/t/elasticsearch-8-9-2-and-7-17-13-security-update/342479",
"https://www.elastic.co/community/security",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31417.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-31417",
"https://security.netapp.com/advisory/ntap-20231130-0006/"
],
"provider_metadata": {
"cwe_ids": [
"CWE-532"
],
"cna_assigner": "elastic",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"introduced": "7.0.0"
},
{
"fixed": "7.17.12"
},
{
"introduced": "8.0.0"
},
{
"fixed": "8.9.1"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
}
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31417.json"
}
},
"related_cves": [
{
"value": "CVE-2023-31417",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 498678,
"published_at": "2023-10-26T17:47:37.065+00:00"
}