{"id":"CVE-2017-15042","published":"2017-10-05T21:00:00Z","modified":"2024-08-05T19:42:22Z","title":"An unintended cleartext issue exists in Go before 1.8.4 and 1.9.x before 1.9.1","vendor":null,"product":null,"tier":"tail","description":{"text":"An unintended cleartext issue exists in Go before 1.8.4 and 1.9.x before 1.9.1. RFC 4954 requires that, during SMTP, the PLAIN auth scheme must only be used on network connections secured with TLS. The original implementation of smtp.PlainAuth in Go 1.0 enforced this requirement, and it was documented to do so. In 2013, upstream issue #5184, this was changed so that the server may decide whether PLAIN is acceptable. The result is that if you set up a man-in-the-middle SMTP server that doesn't advertise STARTTLS and does advertise that PLAIN auth is OK, the smtp.PlainAuth implementation sends the username and password.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01282,"percentile":0.70786,"provenance":"source"},"cwes":[],"references":[{"url":"https://access.redhat.com/errata/RHSA-2017:3463","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"https://access.redhat.com/errata/RHSA-2018:0878","tags":["vendor-advisory","x_refsource_REDHAT"]},{"url":"http://www.securityfocus.com/bid/101197","tags":["vdb-entry","x_refsource_BID"]},{"url":"https://golang.org/cl/68210","tags":["x_refsource_CONFIRM"]},{"url":"https://golang.org/cl/68023","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/golang/go/issues/22134","tags":["x_refsource_CONFIRM"]},{"url":"https://security.gentoo.org/glsa/201710-23","tags":["vendor-advisory","x_refsource_GENTOO"]},{"url":"https://groups.google.com/d/msg/golang-dev/RinSE3EiJBI/kYL7zb07AgAJ","tags":["x_refsource_CONFIRM"]}],"priority":{"score":14.2,"factors":[{"name":"EPSS percentile","points":14.16}]},"affected":[{"ecosystem":"Go","package":"stdlib","vulnerableRanges":[">=1.1.0-0, <1.8.4",">=1.9.0-0, <1.9.1"],"patched":["1.8.4","1.9.1"],"from":["GO-2021-0178"],"provenance":"source"}],"summary":{"text":"The Go standard library's net/smtp package, in versions before 1.8.4 and 1.9.x before 1.9.1, contains a flaw in smtp.PlainAuth where the PLAIN authentication scheme is not restricted to TLS-protected connections as RFC 4954 requires, because the check was removed in 2013 and the server now decides whether PLAIN is acceptable. An attacker who can act as a man-in-the-middle on the SMTP path, operating an SMTP server that does not advertise STARTTLS but does advertise PLAIN, can cause the client to send the username and password in cleartext.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:50:37Z"},"euvd":{"id":"EUVD-2017-6517","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2017-1000097","published":"2017-10-04","fixed":"1.7.4","kev":false},{"cve":"CVE-2017-1000098","published":"2017-10-04","fixed":"1.7.4","kev":false},{"cve":"CVE-2017-8932","published":"2017-07-06","fixed":"1.8.2","kev":false,"link":{"from":"CVE-2017-8932","to":"CVE-2017-15042","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.8.2","toFixed":"1.8.4","daysApart":91}]}},{"cve":"CVE-2017-15042","published":"2017-10-05","fixed":"1.9.1","kev":false},{"cve":"CVE-2018-16875","published":"2018-12-14","fixed":"1.11.3","kev":false,"link":{"from":"CVE-2017-15042","to":"CVE-2018-16875","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Go:stdlib","fromFixed":"1.9.1","toFixed":"1.10.6","daysApart":435}]}},{"cve":"CVE-2019-6486","published":"2019-01-24","fixed":"1.11.5","kev":false},{"cve":"CVE-2019-9634","published":"2019-03-08","fixed":"1.12.2","kev":false}],"package":"Go:stdlib"}}