Skip to content
OpenAdvisories
Unscored CVE-2017-15042 EUVD-2017-6517GHSA-crv5-fmcw-6rw4GO-2021-0178

Cleartext transmission of credentials in net/smtp

Published Oct 5, 2017 · Updated Aug 5, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 18.04 LTS golang-1.8 No fix yet —
Ubuntu 16.04 LTS golang-1.6 No fix yet —
ReleasePackageFixed inAdvisory
RHEL 7 golang +5 1.9.4-1.el7 RHSA-2018:0878
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Red Hat Devtools 2 go-toolset-7 +4 1.8-10.el7 RHSA-2017:3463
Red Hat Devtools 2 go-toolset-7-golang +6 1.8.5-1.el7 RHSA-2017:3463
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed go 1.17-1.1 openSUSE-SU-2024:10802-1
openSUSE Tumbleweed go1.10 1.10.8-8.2 openSUSE-SU-2024:10803-1
openSUSE Tumbleweed go1.11 1.11.13-10.5 openSUSE-SU-2024:10804-1
openSUSE Tumbleweed go1.12 1.12.17-4.8 openSUSE-SU-2024:10805-1
openSUSE Tumbleweed go1.4 1.4.3-12.2 openSUSE-SU-2024:10811-1
openSUSE Tumbleweed go1.9 1.9.7-11.2 openSUSE-SU-2024:10812-1

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2 golang +5 1.9.4-1.amzn2 ALAS2-2018-1011

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 golang No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
Go stdlib >= 1.1.0-0, < 1.8.4 · >= 1.9.0-0, < 1.9.1 1.8.4, 1.9.1 GO-2021-0178

Advisories 9

References