# CVE-2023-31421: Beats, Elastic Agent, APM Server, and Fleet Server Improper Certificate Validation issue

- Severity: Medium 5.9 (CVSS:3.1, scored by elastic) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 27% of CVEs (2026-12-01)
- Published: 2023-10-26T03:10:52.684Z
- Modified: 2026-06-17T05:56:54.707Z
- Weaknesses: CWE-295
- Assigned by: elastic

## 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.

(As written by CVE List.)

## Affected

- Elastic Beats: 8.0.0, 8.9.2
- Elastic Elastic Agent: 8.0.0, 8.9.2
- Elastic APM Server: 8.0.0, 8.9.2
- Elastic Fleet Server: 8.0.0, 8.9.2
- elastic elastic_beats: from 8.0.0 up to 8.9.2
- elastic elastic_agent: from 8.0.0 up to 8.9.2
- elastic apm_server: from 8.0.0 up to 8.9.2
- elastic elastic_fleet_server: from 8.0.0 up to 8.9.2

## Every score

- elastic: CVSS:3.1 5.9 Medium `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N`

## References

- <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> (vendor-advisory)
- <https://www.elastic.co/community/security> (vendor-advisory)

## Sources

- CVE List: [CVE-2023-31421](https://www.cve.org/CVERecord?id=CVE-2023-31421), CVE Terms of Use, modified 2024-08-02
- NVD: [CVE-2023-31421](https://nvd.nist.gov/vuln/detail/CVE-2023-31421), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-31421 · Whole record: https://cve.day/CVE-2023-31421.json · Rebuilt by cve.day 2026-11-25T22:58:29.677Z
