Breaking News: Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret
Read the Report
Learn How MCP Is Bypassing a Decade of Cloud Security Best Practices
Read the Report
Are you exposed? Connect a repo in minutes.
Scan your repos free

CVE-2017-15042

golang: smtp.PlainAuth susceptible to man-in-the-middle password harvesting

Overview

Published
5 Oct 2017
Modified
17 Jun 2026
Medium CVE
1 Registry packages
40 OS packages
4 Linux distributions
Yes Fix available

Description

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.

Source: OX vulnerability database

Severity

5.9 · MEDIUM

CVSS 3.0 base score, scored by NVD.

Attack vector
Network
Attack complexity
High
Privileges required
None
User interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Weakness: CWE-319

Affected packages · 1

Packages affected by CVE-2017-15042
EcosystemPackageVulnerableFixed in
Go stdlib >=1.1.0-0, <1.8.4>=1.9.0-0, <1.9.1 1.8.41.9.1

Open a package to see all its vulnerabilities.

Operating systems · 12 fixes

Red Hat 1 release · 3 packages

wont fix 1 fixed 3
golang go-toolset-7 go-toolset-7-golang
Red Hat fixes for CVE-2017-15042
ReleasePackageFixed inAdvisory
7 golang +4 wont fix —
7 go-toolset-7 +4 0:1.8-10.el7 RHSA-2017:3463
7 go-toolset-7-golang +6 0:1.8.5-1.el7 RHSA-2017:3463
7 golang +5 0:1.9.4-1.el7 RHSA-2018:0878

debian 1 release · 1 package

affected 1
golang-1-7
debian fixes for CVE-2017-15042
ReleasePackageFixed in
9 golang-1-7 +1 affected

openSUSE 1 release · 6 packages

fixed 6
go1-10 go1-11 go1-12 go go1-4 go1-9
openSUSE fixes for CVE-2017-15042
ReleasePackageFixed inAdvisory
Tumbleweed go1-10 +2 1.10.8-8.2 openSUSE-SU-2024:10803-1
Tumbleweed go1-11 +2 1.11.13-10.5 openSUSE-SU-2024:10804-1
Tumbleweed go1-12 +2 1.12.17-4.8 openSUSE-SU-2024:10805-1
Tumbleweed go +2 1.17-1.1 openSUSE-SU-2024:10802-1
Tumbleweed go1-4 +2 1.4.3-12.2 openSUSE-SU-2024:10811-1
Tumbleweed go1-9 +2 1.9.7-11.2 openSUSE-SU-2024:10812-1

ubuntu 1 release · 1 package

affected 1
golang-1-8
ubuntu fixes for CVE-2017-15042
ReleasePackageFixed in
18.04-ESM golang-1-8 affected

References

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.