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

- Severity: High 7.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/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): 2.08%, higher than 82% of CVEs (2026-12-02)
- Published: 2021-12-14T15:15:10.000Z
- Modified: 2026-06-17T04:12:33.303Z
- Also known as: GHSA-c69w-jj56-834w
- Weaknesses: CWE-295, CWE-297
- Assigned by: apache

## Description

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

(As written by CVE List.)

## Affected

- Apache Software Foundation Apache Sling Commons Messaging Mail: Apache Sling Commons Messaging Mail 1.0.0 1.0.0
- org.apache.sling:org.apache.sling.commons.messaging.mail (Maven): before 2.0
- apache sling_commons_messaging_mail: 1.0.0

## Every score

- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

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

## Sources

- CVE List: [CVE-2021-44549](https://www.cve.org/CVERecord?id=CVE-2021-44549), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-c69w-jj56-834w](https://github.com/advisories/GHSA-c69w-jj56-834w), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-44549](https://nvd.nist.gov/vuln/detail/CVE-2021-44549), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-44549 · Whole record: https://cve.day/CVE-2021-44549.json · Rebuilt by cve.day 2026-11-25T22:24:36.240Z
