CVE-2017-15042
golang: smtp.PlainAuth susceptible to man-in-the-middle password harvesting
Overview
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
| Ecosystem | Package | Vulnerable | Fixed 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
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in |
|---|---|---|
| 9 | golang-1-7 +1 | affected |
openSUSE 1 release · 6 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 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
| Release | Package | Fixed in |
|---|---|---|
| 18.04-ESM | golang-1-8 | affected |
References
- www.securityfocus.com http://www.securityfocus.com/bid/101197
- access.redhat.com https://access.redhat.com/errata/RHSA-2017:3463
- access.redhat.com https://access.redhat.com/errata/RHSA-2018:0878
- access.redhat.com https://access.redhat.com/security/cve/CVE-2017-15042
- github.com https://github.com/golang/go/issues/22134
- go.dev https://go.dev/cl/68170
- go.dev https://go.dev/issue/22134
- go.googlesource.com https://go.googlesource.com/go/+/ec3b6131de8f9c9c25283260c95c616c74f6d790
- golang.org https://golang.org/cl/68023
- golang.org https://golang.org/cl/68210
Show all 16 references
- groups.google.com https://groups.google.com/d/msg/golang-dev/RinSE3EiJBI/kYL7zb07AgAJ
- groups.google.com https://groups.google.com/g/golang-dev/c/RinSE3EiJBI/m/kYL7zb07AgAJ
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2017-15042
- pkg.go.dev https://pkg.go.dev/vuln/GO-2021-0178
- security.gentoo.org https://security.gentoo.org/glsa/201710-23
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2017-15042
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.