# CVE-2020-14039: Security feature bypass in n/a

> Incomplete X.509 certificate verification on Windows allows bypassing Extended Key Usage checks when using nil roots.

- **Severity:** Medium 5.3 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 17 Jul 2020
- **Updated:** 4 Aug 2024
- **Also known as:** AZL-79080, AZL-98574, BIT-golang-2020-14039, GHSA-v8jf-78w9-hp93, GO-2021-0223, SUSE-SU-2021:0263-1, openSUSE-SU-2024:11430-1

## What is CVE-2020-14039?

CVE-2020-14039 is a medium-severity vulnerability in Golang Go, published on 17 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

In Go before 1.13.13 and 1.14.x before 1.14.5, Certificate.Verify may lack a check on the VerifyOptions.KeyUsages EKU requirements (if VerifyOptions.Roots equals nil and the installation is on Windows). Thus, X.509 certificate verification is incomplete.

Weakness: CWE-295 (Improper Certificate Validation)

## Which versions are affected by CVE-2020-14039?

2 open source packages ship an affected version, including golang and stdlib. It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `golang` | Bitnami | All versions | 1.13.13, 1.14.5 |
| `stdlib` | Go | All versions | 1.13.13, 1.14.5 |
| `terraform` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 0.13.4-6.3.1 |
| `terraform-provider-aws` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 3.11.0-6.3.1 |
| `terraform-provider-azurerm` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 2.32.0-6.3.1 |
| `terraform-provider-external` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 2.0.0-6.3.1 |
| `terraform-provider-google` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 3.43.0-6.3.1 |
| `terraform-provider-helm` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 1.3.2-6.3.1 |
| `terraform-provider-kubernetes` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 1.13.2-6.3.1 |
| `terraform-provider-local` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 2.0.0-6.3.1 |
| `terraform-provider-null` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 3.0.0-6.3.1 |
| `terraform-provider-random` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 3.0.0-6.3.1 |
| `terraform-provider-tls` | SUSE:Linux Enterprise Module for Public Cloud 15 SP2 | All versions | 3.0.0-5.3.2 |
| `terraform-provider-helm` | openSUSE:Tumbleweed | All versions | 2.0.0-1.4 |

Products: Golang Go, Opensuse Leap.

## How do I fix CVE-2020-14039?

Upgrade golang to a fixed version for your release line: 1.13.13 or 1.14.5.

## Is CVE-2020-14039 being exploited?

There is no known exploitation of CVE-2020-14039 in the wild and no public exploit code.

## Other vulnerabilities in Golang Go

- [CVE-2020-0601](https://insights.sbomify.com/CVE-2020-0601/): Microsoft Windows CryptoAPI Spoofing (high 8.1, exploited in the wild)
- [CVE-2026-27143](https://insights.sbomify.com/CVE-2026-27143/): Missing bound checks can lead to memory corruption in safe Go in cmd/compile (critical 9.8)
- [CVE-2024-24790](https://insights.sbomify.com/CVE-2024-24790/): Unexpected behavior from Is methods for IPv4-mapped IPv6 addresses in net/netip (critical 9.8)
- [CVE-2023-39320](https://insights.sbomify.com/CVE-2023-39320/): Arbitrary code execution via go.mod toolchain directive in cmd/go (critical 9.8)
- [CVE-2023-24540](https://insights.sbomify.com/CVE-2023-24540/): Improper handling of JavaScript whitespace in html/template (critical 9.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-14039 and fix it if it is affected.

What it is: CVE-2020-14039 is a medium-severity vulnerability in Golang Go, published on 17 Jul 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2020-14039 in the wild and no public exploit code.

Affected packages and fixed versions:
- golang (Bitnami): affected all versions; fixed in 1.13.13, 1.14.5
- stdlib (Go): affected all versions; fixed in 1.13.13, 1.14.5

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2020-14039/ (Markdown: https://insights.sbomify.com/CVE-2020-14039/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2020-14039
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2020-14039
- OSV: https://osv.dev/vulnerability/CVE-2020-14039

---
From sbomify Insights: https://insights.sbomify.com/CVE-2020-14039/
Summaries are generated and may contain mistakes; the official description above is the record.
