CVE-2018-21029
Description
systemd 239 through 245 accepts any certificate signed by a trusted certificate authority for DNS Over TLS. Server Name Indication (SNI) is not sent, and there is no hostname validation with the GnuTLS backend. NOTE: This has been disputed by the developer as not a vulnerability since hostname validation does not have anything to do with this issue (i.e. there is no hostname to be sent)
Severity
CRITICAL
CVSS v3
9.8
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H · source nvd
Exploit chance (EPSS)
3.138%
chance of exploitation in the next 30 days
higher than 88.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
Yes
Exploit references (NVD and CNA): 2
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-295: Improper Certificate Validation
Timeline
- 2019-10-30Published by the CNA21:46 UTC
Affected products
| Vendor | Product |
|---|---|
| fedoraproject | fedora |
| systemd_project | systemd |
References
- https://github.com/systemd/systemd/blob/v243/src/resolve/resolved-dnstls-gnutls.c#L62-L63
- https://github.com/systemd/systemd/pull/13870
- https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4NLJVOJMB6ANDILRLDZK26YGLYBEPHKY/
- https://github.com/systemd/systemd/blob/v239/man/resolved.conf.xml#L199-L207
- https://github.com/systemd/systemd/blob/v243/man/resolved.conf.xml#L196-L207
- https://blog.cloudflare.com/dns-encryption-explained/
- https://github.com/systemd/systemd/issues/9397
- https://security.netapp.com/advisory/ntap-20191122-0002/
- https://tools.ietf.org/html/rfc7858#section-4.1
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-21029'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-21029'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-21029'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-21029'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).