Security mailing lists by PureSourceCode

CVE-2017-15042

MEDIUM 5.9CVSS 3.0

Cleartext transmission of credentials in net/smtp

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.

Published
5 Oct 2017
Last modified
17 Jun 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-319
Also known as
GO-2021-0178
Sources
NVDJSONOSV GO-2021-0178JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.0 MEDIUM 5.9 CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 4.3 AV:N/AC:M/Au:N/C:P/I:N/A:N

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD golang go
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
<= 1.8.3
NVD golang go
cpe:2.3:a:golang:go:1.9:*:*:*:*:*:*:*
= 1.9
OSV Go stdlib >= 1.1.0-0, < 1.8.4; >= 1.9.0-0, < 1.9.1 1.8.4, 1.9.1

References

History

  • 25 Nov 2026 20:20 UTC · NVD: first stored (published 5 Oct 2017)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 7 Jan 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.