Skip to content
OpenAdvisories
High · 7.4 CVE-2021-44549 EUVD-2021-2501GHSA-c69w-jj56-834w

SMTPS server hostname not checked when making TLS connection to SMTPS server

Published Dec 14, 2021 · Updated Aug 4, 2024 · 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

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache Sling Commons Messaging Mail Apache Sling Commons Messaging Mail 1.0.0 1.0.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat Ocp Tools 4 jenkins 2.462.3.1729837947-3.el8 RHSA-2024:8887, RHSA-2024:8886, RHSA-2024:8885
Red Hat Ocp Tools 4 jenkins-2-plugins 4.12.1730119231-1.el8 RHSA-2024:8887, RHSA-2024:8886, RHSA-2024:8885

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.sling:org.apache.sling.commons.messaging.mail < 2.0 2.0 GHSA-c69w-jj56-834w

Advisories 7

References