# CVE-2020-7942: Improper Certificate Validation in Puppet

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 6.5
- **CVSS:** 6.5 (v3.1, NVD) `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: None; Availability impact: None
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Remote, login needed
- **EPSS:** 0.80% (percentile 53, 2026-11-26)
- **CWE:** CWE-295
- **Aliases:** GHSA-gqvf-892r-vjm5
- **Published:** 2020-02-19T20:52:03.000Z
- **Modified:** 2026-06-17T03:25:40.200Z

## Who should check

- Projects that depend on RubyGems package puppet (\>= 6.0.0, \< 6.13.0)
- Anyone running Puppet 5.5.x prior to 5.5.19; Fixed in 5.5.19; 6.x prior to 6.13.0; Fixed in 6.13.0
- Anyone running Puppet Agent 5.5.x prior to 5.5.19; Fixed in 5.5.19; 6.x prior to 6.13.0; Fixed in 6.13.0

## Description

Previously, Puppet operated on a model that a node with a valid certificate was entitled to all information in the system and that a compromised certificate allowed access to everything in the infrastructure. When a node's catalog falls back to the \`default\` node, the catalog can be retrieved for a different node by modifying facts for the Puppet run. This issue can be mitigated by setting \`strict\_hostname\_checking = true\` in \`puppet.conf\` on your Puppet master. Puppet 6.13.0 and 5.5.19 changes the default behavior for strict\_hostname\_checking from false to true. It is recommended that Puppet Open Source and Puppet Enterprise users that are not upgrading still set strict\_hostname\_checking to true to ensure secure behavior. Affected software versions: Puppet 6.x prior to 6.13.0 Puppet Agent 6.x prior to 6.13.0 Puppet 5.5.x prior to 5.5.19 Puppet Agent 5.5.x prior to 5.5.19 Resolved in: Puppet 6.13.0 Puppet Agent 6.13.0 Puppet 5.5.19 Puppet Agent 5.5.19

## Affected and fixed versions

- RubyGems `puppet`: affected \>= 6.0.0, \< 6.13.0; fixed 6.13.0, 5.5.19 (osv)
- Puppet: 5.5.x prior to 5.5.19; Fixed in 5.5.19; 6.x prior to 6.13.0; Fixed in 6.13.0 (cvelist)
- Puppet Agent: 5.5.x prior to 5.5.19; Fixed in 5.5.19; 6.x prior to 6.13.0; Fixed in 6.13.0 (cvelist)

## Mitigation

- Upgrade puppet to one of 6.13.0, 5.5.19 (or later in the same release line).

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2020-7942. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2020-7942.md
Affected: puppet >= 6.0.0, < 6.13.0
Fixed in: 6.13.0, 5.5.19

Steps:
1. Search this machine and project for puppet (RubyGems), Puppet, Puppet Agent: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2020-7942 being exploited?

There is no confirmed exploitation: CVE-2020-7942 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.80% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2020-7942?

Medium: CVSS 6.5 (v3.1, scored by NVD). Remote, login needed.

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

puppet \>= 6.0.0, \< 6.13.0.

### Is there a fix for CVE-2020-7942?

Yes. Fixed in 6.13.0, 5.5.19. Upgrade puppet to one of 6.13.0, 5.5.19 (or later in the same release line).

### How do I check if I'm affected by CVE-2020-7942?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- vendor: <https://puppet.com/security/cve/CVE-2020-7942/>
- vendor: <https://nvd.nist.gov/vuln/detail/CVE-2020-7942>
- other: <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/puppet/CVE-2020-7942.yml>
- other: <https://puppet.com/security/cve/CVE-2020-7942>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2020-7942>
- OSV: CC-BY 4.0 <https://osv.dev/vulnerability/GHSA-gqvf-892r-vjm5> (license: <https://creativecommons.org/licenses/by/4.0/>)

HTML: <https://flawdb.com/CVE-2020-7942> · JSON: <https://flawdb.com/api/v1/entries/CVE-2020-7942>
