GitHub Advisoryadvisory · Maven
GHSA-4qrj-99r6-jfrh Missing hostname validation in Email Extension Plugin
MEDIUM
Official page ↗
- Aliases
- CVE-2020-2253
- Ecosystem
- Maven
- Packages
- org.jenkins-ci.plugins:email-ext
- Severity
- Moderate
- CVSS vector
- CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N
- Weaknesses
- CWE-295
- Reviewed
- 2022-12-29
Affected packages
• Maven org.jenkins-ci.plugins:email-ext: < 2.76 → fixed in 2.76
Description
Email Extension Plugin 2.75 and earlier does not perform hostname validation when connecting to the configured SMTP server. This lack of validation could be abused using a man-in-the-middle attack to intercept these connections.
Email Extension Plugin 2.76 validates the SMTP hostname when connecting via TLS by default. In Email Extension Plugin 2.75 and earlier, administrators can set the Java system property `mail.smtp.ssl.checkserveridentity` to `true` on startup to enable this protection. Alternatively, this protection can be enabled (or disabled in the new version) via the 'Advanced Email Properties' field in the plugin’s configuration in Configure System.
In case of problems, this protection can be disabled again by setting `mail.smtp.ssl.checkserveridentity` to `false` using either method.
Related
Alias · CVE (1)
- CVE-2020-2253 Jenkins Email Extension Plugin 2.75 and earlier does not perform hostname validation when connecting to the configured SMTP server. vulnerability
Weakness · CWE (1)
- CWE-295 Improper Certificate Validation weakness
References
- https://nvd.nist.gov/vuln/detail/CVE-2020-2253 advisory
- https://github.com/jenkinsci/email-ext-plugin/commit/ac039ba581f5946975a327709ff201b459900caa web
- https://github.com/jenkinsci/email-ext-plugin package
- https://www.jenkins.io/security/advisory/2020-09-16/#SECURITY-1851 web
- http://www.openwall.com/lists/oss-security/2020/09/16/3 web