{"id":"CVE-2021-44549","aliases":["CVE-2021-44549","GHSA-c69w-jj56-834w"],"related":[],"kind":"vulnerability","state":"published","title":"SMTPS server hostname not checked when making TLS connection to SMTPS server","summary":"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","summarySource":"cvelist","descriptions":[{"lang":"en","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","source":"cvelist"},{"lang":"es","text":"Apache Sling Commons Messaging Mail proporciona una capa sencilla sobre JavaMail/Jakarta Mail para OSGi para enviar correos por medio de SMTPS. Para reducir el riesgo de ataques de tipo \"man in the middle\" deben realizarse comprobaciones adicionales de la identidad del servidor cuando accede a los servidores de correo. Por razones de compatibilidad, estas comprobaciones adicionales están deshabilitadas por defecto en JavaMail/Jakarta Mail. El SimpleMailService de Apache Sling Commons Messaging Mail versión 1.0 carece de una opción para habilitar estas comprobaciones para la sesión de correo compartido. Sin embargo, un usuario podría habilitar estas comprobaciones accediendo a la sesión por medio del mensaje creado por SimpleMessageBuilder y estableciendo la propiedad mail.smtps.ssl.checkserveridentity a true. Apache Sling Commons Messaging Mail versión 2.0 añade soporte para habilitar las comprobaciones de identidad del servidor y estas comprobaciones están habilitadas por defecto. - 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","source":"nvd"}],"published":"2021-12-14T15:15:10.000Z","modified":"2026-06-17T04:12:33.303Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","score":7.4,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-295","CWE-297"],"affected":[{"ranges":[{"version":"Apache Sling Commons Messaging Mail 1.0.0 1.0.0","status":"affected"}],"vendor":"Apache Software Foundation","product":"Apache Sling Commons Messaging Mail","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"2.0"}],"ecosystem":"Maven","package":"org.apache.sling:org.apache.sling.commons.messaging.mail","purl":"pkg:maven/org.apache.sling/org.apache.sling.commons.messaging.mail","source":"ghsa"},{"ranges":[{"status":"affected","version":"1.0.0"}],"vendor":"apache","product":"sling_commons_messaging_mail","cpe":"cpe:2.3:a:apache:sling_commons_messaging_mail:1.0.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://lists.apache.org/thread/l8p9h2bqvkj6rhv4w8kzctb817415b7f","tags":["mailing-list","vendor-advisory","web","x-refsource-misc","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44549","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/eclipse-ee4j/mail/issues/429","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/eclipse-ee4j","tags":["package"],"sources":["ghsa"]},{"url":"https://javaee.github.io/javamail/docs/SSLNOTES.txt","tags":["web"],"sources":["ghsa"]},{"url":"https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html","tags":["web"],"sources":["ghsa"]}],"credits":["The issue was reported by Michael Lescisin."],"assigner":"apache","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-44549","url":"https://www.cve.org/CVERecord?id=CVE-2021-44549","licence":"CVE Terms of Use","modified":"2024-08-04T04:25:16.815Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-c69w-jj56-834w","url":"https://github.com/advisories/GHSA-c69w-jj56-834w","licence":"CC-BY-4.0","modified":"2023-11-08T04:07:17.350Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-44549","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44549","licence":"Public domain","modified":"2026-06-17T04:12:33.303Z"}],"updatedAt":"2026-11-25T22:24:36.240Z","epss":{"score":0.02081,"percentile":0.82094,"date":"2026-12-02T12:00:21.000Z"}}