OpenBao, Information Disclosure, CVE-2025-XXXXX (Moderate)

Listen to this Post

The vulnerability, CVE-2025-XXXXX, stems from a flaw in how the audit logging mechanism handles `[]byte` (byte slice) data types. Normally, sensitive fields are redacted before being written to audit logs. However, when specific subsystems, such as the `sys/raw` endpoint with encoding=base64, return data as `[]byte` instead of string, the redaction process fails. Consequently, the raw, unredacted data is written directly to the log files. This bypasses the intended security controls, potentially exposing secrets, encryption keys, or other sensitive information to anyone with access to the audit logs. The issue is not limited to core functions and can also affect third-party plugins that similarly return `[]byte` data.
Platform: OpenBao, HashiCorp Vault
Version: < 2.4.2, <= 1.20.4

Vulnerability : Information Disclosure

Severity: Moderate

date: 2025-10-22

Prediction: 2025-10-29

What Undercode Say:

`grep -r “sys/raw” /var/log/openbao/`

`curl –header “X-Vault-Token: …” http://127.0.0.1:8200/v1/sys/raw/…?encoding=base64`

`cat /etc/openbao.d/openbao.hcl | grep raw_storage_endpoint</h2>
<h2 style="color: blue;">How Exploit:</h2>
An attacker with privileged access to read audit logs can extract unredacted secrets. By making authorized API calls to endpoints like `sys/raw` that return `[]byte` data, the sensitive response is permanently recorded in cleartext within the audit logs, bypassing all redaction.
<h2 style="color: blue;">Protection from this CVE:</h2>
<h2 style="color: blue;">Upgrade to OpenBao 2.4.2.</h2>
<h2 style="color: blue;">Set
raw_storage_endpoint=false`.

Restrict audit log access.

Impact:

Sensitive data exposure.

Secret leakage.

Privilege escalation potential.

🎯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