{"cve":"CVE-2021-44549","nvd":{"published":"2021-12-14T16:15:09.763","modified":"2026-06-17T04:12:33.303","status":"Modified","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","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-295"],"references":["https://lists.apache.org/thread/l8p9h2bqvkj6rhv4w8kzctb817415b7f","https://lists.apache.org/thread/l8p9h2bqvkj6rhv4w8kzctb817415b7f"],"products":["apache:sling_commons_messaging_mail"],"source":"nvd","synced_at":"2026-10-19T21:25:41.256909649+00:00"},"epss":{"cve":"CVE-2021-44549","score":0.02081,"percentile":0.81529,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-c69w-jj56-834w","url":"https://osv.dev/vulnerability/GHSA-c69w-jj56-834w","summary":"Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Apache Sling Commons Messaging Mail","modified":"2023-11-08T04:07:17.350592Z","packages":[{"ecosystem":"Maven","name":"org.apache.sling:org.apache.sling.commons.messaging.mail","purl":"pkg:maven/org.apache.sling/org.apache.sling.commons.messaging.mail","ranges":["<2.0"],"fixed":["2.0"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}