Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/opentofu/opentofu
  4. ›
  5. GHSA-mjcp-gpgx-ggcg

GHSA-mjcp-gpgx-ggcg: OpenTofu incorrectly validates excluded subdomain constraint in conjunction with TLS certificates containing wildcard SANs

December 9, 2025

When OpenTofu is acting as a TLS client authenticating a certificate chain provided by a TLS server, an excluded subdomain constraint in a certificate chain does not restrict the usage of wildcard SANs in the leaf certificate.

For example a constraint that excludes the subdomain test.example.com does not prevent a leaf certificate from claiming the SAN *.example.com.

References

  • github.com/advisories/GHSA-mjcp-gpgx-ggcg
  • github.com/opentofu/opentofu
  • github.com/opentofu/opentofu/issues/3546
  • github.com/opentofu/opentofu/releases/tag/v1.10.8
  • github.com/opentofu/opentofu/security/advisories/GHSA-mjcp-gpgx-ggcg
  • nvd.nist.gov/vuln/detail/CVE-2025-61727

Code Behaviors & Features

Detect and mitigate GHSA-mjcp-gpgx-ggcg with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.10.8

Fixed versions

  • 1.10.8

Solution

Upgrade to version 1.10.8 or above.

Impact 5.9 MEDIUM

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-1395: Dependency on Vulnerable Third-Party Component
  • CWE-296: Improper Following of a Certificate's Chain of Trust

Source file

go/github.com/opentofu/opentofu/GHSA-mjcp-gpgx-ggcg.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 20 Jan 2026 00:17:07 +0000.