# CVE-2021-44549: SMTPS server hostname not checked when making TLS connection to SMTPS server

- Priority: **Prioritise**
- Reason: Severe, CVSS 7.4 (NVD); no exploitation reported by the 5 checked sources; EPSS 2% (FIRST, 04-12-2026)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2021-12-14 · Modified: 2024-08-04
- Aliases: GHSA-c69w-jj56-834w
- Record: https://cvemate.com/vulnerability/CVE-2021-44549 · JSON: https://cvemate.com/vulnerability/CVE-2021-44549/json

## Description

```text
Apache Sling Commons Messaging Mail provides a simple layer on top of JavaMail/Jakarta Mail for OSGi to send mails via SMTPS. To reduce the risk of "man in the middle" attacks additional server identity checks must be performed when accessing mail servers. For compatibility reasons these additional checks are disabled by default in JavaMail/Jakarta Mail. The SimpleMailService in Apache Sling Commons Messaging Mail 1.0 lacks an option to enable these checks for the shared mail session. A user could enable these checks nevertheless by accessing the session via the message created by SimpleMessageBuilder and setting the property mail.smtps.ssl.checkserveridentity to true. Apache Sling Commons Messaging Mail 2.0 adds support for enabling server identity checks and these checks are enabled by default. - https://javaee.github.io/javamail/docs/SSLNOTES.txt - https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html - https://github.com/eclipse-ee4j/mail/issues/429
```

## Signals

- CVSS: 7.4 high (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- EPSS: 2.081%, percentile 82.169%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected

- apache software foundation apache sling commons messaging mail: Apache Sling Commons Messaging Mail 1.0.0 1.0.0
- apache sling\_commons\_messaging\_mail: 1.0.0
- org.apache.sling org.apache.sling.commons.messaging.mail (Maven): \< 2.0

## References

- <https://lists.apache.org/thread/l8p9h2bqvkj6rhv4w8kzctb817415b7f>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-44549>
- <https://github.com/eclipse-ee4j/mail/issues/429>
- <https://github.com/eclipse-ee4j>
- <https://javaee.github.io/javamail/docs/SSLNOTES.txt>
- <https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html>

---

Data as of 2026-12-05T09:13:38.515Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
