cve.bz

CVE-2021-44549 apache sling commons messaging mail: Improper Certificate Validation

7.4 highEPSS 2.1%Fix available

High (7.4) in apache sling commons messaging mail. EPSS 2.1% estimated probability of exploitation activity in the next 30 days. Fixed in org.apache.sling:org.apache.sling.commons.messaging.mail 2.0.

On this page
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

Severity

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
EPSS
2.1% (unchanged from 2.1% a week ago; 2.1% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-295 Improper Certificate Validation
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-44549 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-44549?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-44549?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-44549 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
apache:sling_commons_messaging_mail1.0.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-c69w-jj56-834wMavenorg.apache.sling:org.apache.sling.commons.messaging.mail<2.02.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Red Hatocp_tools:4.12::el8jenkins0:2.462.3.1730119132-3.el8RHSA-2024:8886
Red Hatocp_tools:4.12::el8jenkins-2-plugins0:4.12.1730119231-1.el8RHSA-2024:8886
Red Hatocp_tools:4.13::el8jenkins0:2.462.3.1729839924-3.el8RHSA-2024:8887
Red Hatocp_tools:4.13::el8jenkins-2-plugins0:4.13.1729840148-1.el8RHSA-2024:8887
Red Hatocp_tools:4.14::el8jenkins0:2.462.3.1729839727-3.el8RHSA-2024:8885
Red Hatocp_tools:4.14::el8jenkins-2-plugins0:4.14.1729839844-1.el8RHSA-2024:8885
Red Hatocp_tools:4.15::el8jenkins0:2.462.3.1729837947-3.el8RHSA-2024:8884
Red Hatocp_tools:4.15::el8jenkins-2-plugins0:4.15.1729838165-1.el8RHSA-2024:8884

From the distributions' data via OSV.dev: Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability should be considered of important severity rather than moderate because it directly impacts the integrity and confidentiality of email communications over SMTPS. By disabling server identity checks, it leaves the communication channel vulnerable to "man-in-the-middle" (MITM) attacks, where an attacker could intercept, alter, or eavesdrop on email traffic by impersonating the legitimate mail server.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

ProductPackageStateAdvisory
OCP-Tools-4.12-RHEL-8jenkins-0:2.462.3.1730119132-3.el8Fixed 2024-11-05RHSA-2024:8886
OCP-Tools-4.12-RHEL-8jenkins-2-plugins-0:4.12.1730119231-1.el8Fixed 2024-11-05RHSA-2024:8886
OCP-Tools-4.13-RHEL-8jenkins-0:2.462.3.1729839924-3.el8Fixed 2024-11-05RHSA-2024:8887
OCP-Tools-4.13-RHEL-8jenkins-2-plugins-0:4.13.1729840148-1.el8Fixed 2024-11-05RHSA-2024:8887
OCP-Tools-4.14-RHEL-8jenkins-0:2.462.3.1729839727-3.el8Fixed 2024-11-05RHSA-2024:8885
OCP-Tools-4.14-RHEL-8jenkins-2-plugins-0:4.14.1729839844-1.el8Fixed 2024-11-05RHSA-2024:8885
OCP-Tools-4.15-RHEL-8jenkins-0:2.462.3.1729837947-3.el8Fixed 2024-11-05RHSA-2024:8884
OCP-Tools-4.15-RHEL-8jenkins-2-plugins-0:4.15.1729838165-1.el8Fixed 2024-11-05RHSA-2024:8884
Red Hat build of Quarkus Native builderangus-mailFixed 2024-10-10RHSA-2024:7676
Red Hat build of Quarkus Native builderFixed 2024-10-10RHSA-2024:7670
OpenShift Serverlessangus-mailNot affected
Red Hat build of Apache Camel 4 for Quarkus 3angus-mailWill not fix
Red Hat build of Apache Camel for Spring Boot 4angus-mailAffected
Red Hat Build of Keycloakangus-mailWill not fix
Red Hat Data Grid 8angus-mailNot affected
Red Hat JBoss Enterprise Application Platform 8angus-mailNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-44549.

Attack patterns (CAPEC)

  • CAPEC-459 Creating a Rogue Certification Authority Certificate Likelihood: Medium · Severity: Very High
  • CAPEC-475 Signature Spoofing by Improper Validation Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON