{"id":"CVE-2021-44549","aliases":["EUVD-2021-2501","GHSA-c69w-jj56-834w","RHSA-2024:8884","RHSA-2024:8885","RHSA-2024:8886","RHSA-2024:8887"],"status":"published","title":"SMTPS server hostname not checked when making TLS connection to SMTPS server","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","severity":{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-09","score":0.02081,"percentile":0.81665,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-295","CWE-297"],"published":"2021-12-14T15:15:10Z","modified":"2026-10-24T10:30:57Z","fixes":[{"ecosystem":"Maven","package":"org.apache.sling:org.apache.sling.commons.messaging.mail","fixed_in":["2.0"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Maven","package":"org.apache.sling:org.apache.sling.commons.messaging.mail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0"}]}]},{"source":"osv","ecosystem":"Maven","package":"org.apache.sling:org.apache.sling.commons.messaging.mail","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.0"}]}],"versions":["1.0.0"]},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.15::el8","package":"jenkins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.462.3.1729837947-3.el8"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.15::el8","package":"jenkins-2-plugins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.15.1729838165-1.el8"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.14::el8","package":"jenkins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.462.3.1729839727-3.el8"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.14::el8","package":"jenkins-2-plugins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.14.1729839844-1.el8"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.12::el8","package":"jenkins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.462.3.1730119132-3.el8"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.12::el8","package":"jenkins-2-plugins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.12.1730119231-1.el8"}]}],"bundled":5},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.13::el8","package":"jenkins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:2.462.3.1729839924-3.el8"}]}],"bundled":4},{"source":"osv","ecosystem":"Red Hat:ocp_tools:4.13::el8","package":"jenkins-2-plugins","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0:4.13.1729840148-1.el8"}]}],"bundled":4}],"products":[{"vendor":"apache","product":"sling_commons_messaging_mail"},{"vendor":"apache software foundation","product":"apache sling commons messaging mail"}],"references":[{"url":"https://lists.apache.org/thread/l8p9h2bqvkj6rhv4w8kzctb817415b7f","tags":["x_refsource_MISC","x_transferred","Mailing List","Vendor Advisory","advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-44549","tags":["advisory"]},{"url":"https://github.com/eclipse-ee4j/mail/issues/429","tags":["web"]},{"url":"https://javaee.github.io/javamail/docs/SSLNOTES.txt","tags":["web"]},{"url":"https://javaee.github.io/javamail/docs/api/com/sun/mail/smtp/package-summary.html","tags":["web"]},{"url":"https://github.com/advisories/GHSA-c69w-jj56-834w"},{"url":"https://github.com/eclipse-ee4j","tags":["package"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8884","tags":["advisory"]},{"url":"https://access.redhat.com/security/updates/classification/#important","tags":["article"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_8884.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2021-44549","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2315808","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-44549","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-38808","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2305959","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-38808","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-38808","tags":["advisory"]},{"url":"https://spring.io/security/cve-2024-38808","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-47803","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2316137","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-47803","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47803","tags":["advisory"]},{"url":"https://www.jenkins.io/security/advisory/2024-10-02/#SECURITY-3451","tags":["article"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-47804","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2316131","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-47804","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-47804","tags":["advisory"]},{"url":"https://www.jenkins.io/security/advisory/2024-10-02/#SECURITY-3448","tags":["article"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8885","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_8885.json","tags":["advisory"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8886","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_8886.json","tags":["advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2024-34144","tags":["report"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2278820","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-34144","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-34144","tags":["advisory"]},{"url":"http://www.openwall.com/lists/oss-security/2024/05/02/3","tags":["article"]},{"url":"https://www.jenkins.io/security/advisory/2024-05-02/#SECURITY-3341","tags":["article"]},{"url":"https://access.redhat.com/errata/RHSA-2024:8887","tags":["advisory"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2024/rhsa-2024_8887.json","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2021-44549","title":"SMTPS server hostname not checked when making TLS connection to SMTPS server","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","status":"published","published":"2021-12-14T15:15:10Z","modified":"2024-08-04T04:25:16.815Z","cwes":["CWE-295"],"updated_at":"2026-11-02T14:33:01.166399Z"}],"euvd":[{"id":"EUVD-2021-2501","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","status":"published","published":"2021-12-14T15:15:10Z","modified":"2024-08-04T04:25:16Z","updated_at":"2026-11-03T03:24:12.005069Z"}],"ghsa":[{"id":"GHSA-c69w-jj56-834w","title":"Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Apache Sling Commons Messaging Mail","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","status":"published","published":"2021-12-16T14:12:49Z","modified":"2023-02-01T05:07:03Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-295","CWE-297"],"updated_at":"2026-11-02T14:36:39.76883Z"}],"nvd":[{"id":"CVE-2021-44549","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","status":"published","published":"2021-12-14T16:15:09.763Z","modified":"2026-06-17T04:12:33.303Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high","assessor":"primary"},{"version":"2.0","score":5.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:N","level":"medium","assessor":"primary"}],"cwes":["CWE-295"],"updated_at":"2026-11-02T14:07:02.189991Z"}],"osv":[{"id":"CVE-2021-44549","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","status":"published","published":"2021-12-14T16:15:09.763Z","modified":"2026-10-24T10:30:57.725252647Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:44:21.877444Z"},{"id":"GHSA-c69w-jj56-834w","title":"Improper Certificate Validation and Improper Validation of Certificate with Host Mismatch in Apache Sling Commons Messaging Mail","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","status":"published","published":"2021-12-16T14:12:49Z","modified":"2023-11-08T04:07:17.350592Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"cwes":["CWE-295","CWE-297"],"updated_at":"2026-11-02T15:46:44.571161Z"},{"id":"RHSA-2024:8884","title":"Red Hat Security Advisory: Red Hat Product OCP Tools 4.15 Openshift Jenkins security update","status":"published","published":"2024-11-15T21:24:04Z","modified":"2026-10-20T10:02:56Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:53:14.610978Z"},{"id":"RHSA-2024:8885","title":"Red Hat Security Advisory: Red Hat Product OCP Tools 4.14 Openshift Jenkins security update","status":"published","published":"2024-11-15T21:24:14Z","modified":"2026-10-20T10:02:56Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:53:14.610978Z"},{"id":"RHSA-2024:8886","title":"Red Hat Security Advisory: Red Hat Product OCP Tools 4.12 Openshift Jenkins security update","status":"published","published":"2024-11-15T21:24:34Z","modified":"2026-10-20T10:02:57Z","cvss":[{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:53:14.610978Z"},{"id":"RHSA-2024:8887","title":"Red Hat Security Advisory: Red Hat Product OCP Tools 4.13 Openshift Jenkins security update","status":"published","published":"2024-11-15T21:24:24Z","modified":"2026-10-20T10:02:57Z","cvss":[{"version":"3.1","score":7.4,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N","level":"high"}],"updated_at":"2026-11-02T15:53:14.610978Z"}]}}
