CVE-2021-44549
SMTPS server hostname not checked when making TLS connection to SMTPS server
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
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- High
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- High
- Integrity
- High
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
7.4
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
- Record
CVE-2021-44549- 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 - CVSS 2.0
- 5.8 Medium
AV:N/AC:M/Au:N/C:P/I:P/A:N - Weakness
- CWE-295
- Updated
- 2026-11-02
CVE List No score
SMTPS server hostname not checked when making TLS connection to SMTPS server
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
- Record
CVE-2021-44549- Weakness
- CWE-295
- Updated
- 2026-11-02
EUVDEUVD-2021-2501 No score
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
- Record
EUVD-2021-2501- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-c69w-jj56-834w
7.4
Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Apache Sling Commons Messaging Mail
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
- Record
GHSA-c69w-jj56-834w- 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 - Weakness
- CWE-295, CWE-297
- Updated
- 2026-11-02
OSV
7.4
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
- Record
CVE-2021-44549- 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 - Updated
- 2026-11-02
OSVGHSA-c69w-jj56-834w
7.4
Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Apache Sling Commons Messaging Mail
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
- Record
GHSA-c69w-jj56-834w- 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 - Weakness
- CWE-295, CWE-297
- Updated
- 2026-11-02
Show 4 moreShow less
OSVRHSA-2024:8884
7.4
Red Hat Security Advisory: Red Hat Product OCP Tools 4.15 Openshift Jenkins security update
- Record
RHSA-2024:8884- 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 - Updated
- 2026-11-02
OSVRHSA-2024:8885
7.4
Red Hat Security Advisory: Red Hat Product OCP Tools 4.14 Openshift Jenkins security update
- Record
RHSA-2024:8885- 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 - Updated
- 2026-11-02
OSVRHSA-2024:8886
8.8
Red Hat Security Advisory: Red Hat Product OCP Tools 4.12 Openshift Jenkins security update
- Record
RHSA-2024:8886- CVSS 3.1
- 8.8 High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H - Updated
- 2026-11-02
OSVRHSA-2024:8887
7.4
Red Hat Security Advisory: Red Hat Product OCP Tools 4.13 Openshift Jenkins security update
- Record
RHSA-2024:8887- 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 - Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
org.apache.sling:org.apache.sling.commons.messaging.mailMaven |
before 2.0 | 2.0 |
org.apache.sling:org.apache.sling.commons.messaging.mailMaven |
before 2.0, plus listed versions 1.0.0 |
2.0 |
jenkinsRed Hat:ocp_tools:4.15::el8 From an advisory covering 4 CVEs |
before 0:2.462.3.1729837947-3.el8 | 0:2.462.3.1729837947-3.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.15::el8 From an advisory covering 4 CVEs |
before 0:4.15.1729838165-1.el8 | 0:4.15.1729838165-1.el8 |
jenkinsRed Hat:ocp_tools:4.14::el8 From an advisory covering 4 CVEs |
before 0:2.462.3.1729839727-3.el8 | 0:2.462.3.1729839727-3.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.14::el8 From an advisory covering 4 CVEs |
before 0:4.14.1729839844-1.el8 | 0:4.14.1729839844-1.el8 |
jenkinsRed Hat:ocp_tools:4.12::el8 From an advisory covering 5 CVEs |
before 0:2.462.3.1730119132-3.el8 | 0:2.462.3.1730119132-3.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.12::el8 From an advisory covering 5 CVEs |
before 0:4.12.1730119231-1.el8 | 0:4.12.1730119231-1.el8 |
jenkinsRed Hat:ocp_tools:4.13::el8 From an advisory covering 4 CVEs |
before 0:2.462.3.1729839924-3.el8 | 0:2.462.3.1729839924-3.el8 |
jenkins-2-pluginsRed Hat:ocp_tools:4.13::el8 From an advisory covering 4 CVEs |
before 0:4.13.1729840148-1.el8 | 0:4.13.1729840148-1.el8 |
History
| Recorded | Changed | Sources |
|---|---|---|
| affected, facts | ||
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2021-44549 is a high vulnerability (CVSS 7.4) in Apache Sling Commons Messaging Mail, published December 14, 2021. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 2.08%, the 81st percentile. Fixed in org.apache.sling:org.apache.sling.commons.messaging.mail 2.0.
References
lists.apache.org/thread/l8p9h2bqvkj6rhv4w8kzctb817415b7f
nvd.nist.gov/vuln/detail/CVE-2021-44549
github.com/eclipse-ee4j/mail/issues/429
javaee.github.io/javamail/docs/SSLNOTES.txt
javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html
github.com/advisories/GHSA-c69w-jj56-834w
Show 33 moreShow less
github.com/eclipse-ee4j
access.redhat.com/errata/RHSA-2024:8884
access.redhat.com/security/updates/classification
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_8884.json
access.redhat.com/security/cve/CVE-2021-44549
bugzilla.redhat.com/show_bug.cgi?id=2315808
cve.org/CVERecord?id=CVE-2021-44549
access.redhat.com/security/cve/CVE-2024-38808
bugzilla.redhat.com/show_bug.cgi?id=2305959
cve.org/CVERecord?id=CVE-2024-38808
nvd.nist.gov/vuln/detail/CVE-2024-38808
spring.io/security/cve-2024-38808
access.redhat.com/security/cve/CVE-2024-47803
bugzilla.redhat.com/show_bug.cgi?id=2316137
cve.org/CVERecord?id=CVE-2024-47803
nvd.nist.gov/vuln/detail/CVE-2024-47803
jenkins.io/security/advisory/2024-10-02
access.redhat.com/security/cve/CVE-2024-47804
bugzilla.redhat.com/show_bug.cgi?id=2316131
cve.org/CVERecord?id=CVE-2024-47804
nvd.nist.gov/vuln/detail/CVE-2024-47804
access.redhat.com/errata/RHSA-2024:8885
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_8885.json
access.redhat.com/errata/RHSA-2024:8886
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_8886.json
access.redhat.com/security/cve/CVE-2024-34144
bugzilla.redhat.com/show_bug.cgi?id=2278820
cve.org/CVERecord?id=CVE-2024-34144
nvd.nist.gov/vuln/detail/CVE-2024-34144
openwall.com/lists/oss-security/2024/05/02/3
jenkins.io/security/advisory/2024-05-02
access.redhat.com/errata/RHSA-2024:8887
security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_8887.json