{"id":"CVE-2023-31421","summary":"Beats, Elastic Agent, APM Server, and Fleet Server Improper Certificate Validation issue","details":"It was discovered that when acting as TLS clients, Beats, Elastic Agent, APM Server, and Fleet Server did not verify whether the server certificate is valid for the target IP address; however, certificate signature validation is still performed. More specifically, when the client is configured to connect to an IP address (instead of a hostname) it does not validate the server certificate's IP SAN values against that IP address and certificate validation fails, and therefore the connection is not blocked as expected.","modified":"2026-08-12T03:51:26.893116540Z","published":"2023-10-26T03:10:52.684Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31421.json","unresolved_ranges":[{"extracted_events":[{"introduced":"8.0.0, 8.9.2"},{"last_affected":"8.0.0, 8.9.2"},{"introduced":"8.0.0, 8.9.2"},{"last_affected":"8.0.0, 8.9.2"},{"introduced":"8.0.0, 8.9.2"},{"last_affected":"8.0.0, 8.9.2"},{"introduced":"8.0.0, 8.9.2"},{"last_affected":"8.0.0, 8.9.2"}],"source":"AFFECTED_FIELD"}],"cna_assigner":"elastic","cwe_ids":["CWE-295"]},"references":[{"type":"WEB","url":"https://discuss.elastic.co/t/beats-elastic-agent-apm-server-and-fleet-server-8-10-1-security-update-improper-certificate-validation-issue-esa-2023-16/343385"},{"type":"WEB","url":"https://www.elastic.co/community/security"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/31xxx/CVE-2023-31421.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-31421"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/elastic/apm-server","events":[{"introduced":"6afb387ae002e5a8dc2427b53225aa42681e4208"},{"last_affected":"3620fff841a6ee8a11d8e4f1661fff1ea5d5e1c3"}],"database_specific":{"cpe":"cpe:2.3:a:elastic:apm_server:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"8.0.0"},{"last_affected":"8.9.2"}],"source":"CPE_RANGE"}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-31421.json"}},{"ranges":[{"type":"GIT","repo":"https://github.com/elastic/elastic-agent","events":[{"introduced":"0"},{"last_affected":"162ea92bd5d85f543a0746546b8cb5ec4cd8e2f8"}],"database_specific":{"source":"CPE_RANGE","cpe":"cpe:2.3:a:elastic:elastic_agent:*:*:*:*:*:*:*:*","extracted_events":[{"introduced":"8.0.0"},{"last_affected":"8.9.2"}]}}],"versions":["v8.9.2","v8.9.1","v8.9.0"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-31421.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N"}]}