CVE-2023-31421: Elastic Stack - TLS Certificate Validation Bypass
- Cve: CVE-2023-31421
- Name: Elastic Stack - TLS Certificate Validation Bypass
- Description: 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.
- Impact: Potential for man-in-the-middle attacks by connecting to servers with invalid or malicious certificates, compromising data confidentiality and integrity.
- Remediation: Update to the latest versions where this issue is fixed, or apply security patches that enforce IP SAN validation.
- Vulnerability type: misconfiguration
- Vulnerability impact: man_in_the_middle, information_disclosure
- Requirement type: none
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 7.5
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
- Epss score: 0.00323
- Epss percentile: 0.25598
- Assignee: [email protected]
- Published at: 2023-10-26T04:15:16Z
- Age in days: 1125
- Modified at: 2026-06-17T05:56:54Z
- References total: 2
- Products total: 4
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2023-31421
- Nvd status: modified
- Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-295 | Improper Certificate Validation |
References
Products
Same in every row:
- Affected: >= 8.0.0, <= 8.9.2
- Platform bound: no
- Sources: nvd
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Remote: yes
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, authentication required
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts