{"id":5954,"date":"2025-08-07T10:01:34","date_gmt":"2025-08-07T10:01:34","guid":{"rendered":"https:\/\/serisec.com\/index.php\/2025\/08\/07\/hashicorp-vault-0-day-vulnerabilities-let-attackers-execute-remote-code\/"},"modified":"2025-08-07T10:01:34","modified_gmt":"2025-08-07T10:01:34","slug":"hashicorp-vault-0-day-vulnerabilities-let-attackers-execute-remote-code","status":"publish","type":"post","link":"https:\/\/serisec.com\/index.php\/2025\/08\/07\/hashicorp-vault-0-day-vulnerabilities-let-attackers-execute-remote-code\/","title":{"rendered":"HashiCorp Vault 0-Day Vulnerabilities Let Attackers Execute Remote Code"},"content":{"rendered":"<p>    HashiCorp Vault 0-Day Vulnerabilities Let Attackers Execute Remote Code<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n    <!-- no image --><br \/>\n \t<BR><br \/>\n<BR><\/BR><\/p>\n<div>\n<p>Security researchers uncovered a series of critical zero-day vulnerabilities in HashiCorp Vault in early August 2025, the widely adopted secrets management solution.<\/p>\n<p>These flaws, spanning authentication bypasses, policy enforcement inconsistencies, and audit-log abuse, create end-to-end attack paths that culminate in remote code execution (RCE) on Vault servers.<\/p>\n<p>Initial evidence of logic-level defects emerged from manual code reviews of Vault\u2019s request routing and plugin interfaces, revealing stealthy logic mismatches rather than conventional memory corruption exploits.<\/p>\n<p>As organizations increasingly rely on Vault to safeguard API keys, certificates, and encryption keys in multi-cloud environments, the discovery of these flaws sends shockwaves through the cybersecurity community.<\/p>\n<p>CYATA analysts <a href=\"https:\/\/cyata.ai\/blog\/cracking-the-vault-how-we-found-zero-day-flaws-in-authentication-identity-and-authorization-in-hashicorp-vault\/#\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">noted<\/a> that some vulnerabilities persisted for nearly a decade, quietly embedded in core authentication flows and only recently exposed by meticulous manual auditing.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEjGAN1LWGUZJi4krWUdVoQARw6sXYkUF7I0FN-hUeJfv19JJL3_ecrQlFmbitVzee6zMBKIzI4KRvln3SoLyX_CWxtgx42zk4f17HS-EjOIIc2d9YrgF8tvW3v2alDk_RFQcWD3ntCk7h3CvmYq2uDFCCNhf4QjiHGtDgGgWOjWb2f-BEcDkMwLQPAgx_s\/s16000\/Userpass%2520Login%2520Flow%2520%28Source%2520-%2520Cyata%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Userpass Login Flow (Source \u2013 Cyata)<\/figcaption><\/figure>\n<\/div>\n<p>The impact extends beyond proof-of-concepts: attackers can chain these issues to bypass lockout protections in userpass and LDAP backends, evade TOTP <a href=\"https:\/\/cybersecuritynews.com\/aitm-phishing-kits-bypassing-mfa\/\" target=\"_blank\" rel=\"noreferrer noopener\">MFA<\/a> constraints, impersonate machine identities via certificate authentication, and finally escalate privileges from admin tokens to root.<\/p>\n<p>The remote code execution technique is novel in Vault\u2019s history. Rather than exploiting buffer overflows, adversaries leverage the archive of audit logs\u2014written in plaintext\u2014to inject a crafted shell payload into Vault\u2019s plugin directory.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhOJTB5a-7rhUiTVVAf0d6K5B6K7h7Zknu5lvD0EfDwrimRgmE6ONp_PFngNxuQtSgsp5N-qBSQtJzV0C_mjMuh0BD9xlvUx9ug0lOfgoC1EOCGHG7NiK9dTcscYsn1yUKYw8hdExj0ytFROC2iHLTR8iUK3zBQacBSvfg3d423OnpNNsCDTzgnLLvKKt0\/s16000\/LDAP%2520Login%2520Flow%2520%28Source%2520-%2520Cyata%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">LDAP Login Flow (Source \u2013 Cyata)<\/figcaption><\/figure>\n<\/div>\n<p>By configuring an audit backend with a custom <code>prefix<\/code> containing a shebang and Bash commands, attackers coerce Vault into writing executable scripts.<\/p>\n<p>Subsequent retrieval of the exact payload via a TCP-stream audit backend allows computation of a matching SHA256 hash, satisfying Vault\u2019s plugin registration requirements and triggering <a href=\"https:\/\/cybersecuritynews.com\/sophos-firewall-vulnerabilities-rce\/\" target=\"_blank\" rel=\"noreferrer noopener\">code execution<\/a>.<\/p>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-large\"><img data-recalc-dims=\"1\" decoding=\"async\" src=\"https:\/\/i0.wp.com\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEgOoCVFuM-IycE7MeuGgI8uAWOk2EYfeVtiILxeCoYUjUHOcCqgUTZFnk4Q6dtJMabSoL-spU5tc2-lFuzXgTk3yrHhQ4FFkybBUS8l4DGffer3jznoextgNhMr9Sms-tk74xJ8GVuZytvAcu3rKwaTqq0s1H1wcoQq-AwuvdYTxKcXUJXyqUWnYYA45qU\/s16000\/Exploit%2520chain%2520%28Source%2520-%2520Cyata%29.webp?ssl=1\" alt=\"\"><figcaption class=\"wp-element-caption\">Exploit chain (Source \u2013 Cyata)<\/figcaption><\/figure>\n<\/div>\n<p>Organizations are urged to upgrade immediately to patched versions released alongside responsible disclosure. HashiCorp has issued advisory updates addressing all nine CVEs, reinforcing normalization routines and tightening policy checks.<\/p>\n<p>The coordinated response between CYATA and HashiCorp exemplifies effective vulnerability management, yet underscores the need for deep logic validation alongside standard fuzzing and penetration testing.<\/p>\n<h2 class=\"wp-block-heading\" id=\"h-persistence-tactics-audit-log-based-shell-injection\"><strong>Persistence Tactics: Audit-Log-Based Shell Injection<\/strong><\/h2>\n<p>The most striking persistence tactic abuses Vault\u2019s audit logging subsystem to implant malicious code.<\/p>\n<p>Vault supports multiple concurrent audit backends, each capable of writing structured <a href=\"https:\/\/cybersecuritynews.com\/python-json-logger-vulnerability\/\" target=\"_blank\" rel=\"noreferrer noopener\">JSON<\/a> to arbitrary file paths with configurable file modes.<\/p>\n<p>Attackers begin by probing the plugin catalog endpoint (<code>POST \/v1\/sys\/plugins\/catalog\/:type\/:name<\/code>) with a non-existent plugin name, eliciting an error that leaks the absolute <code>plugin_directory<\/code> path. Next, they enable a file-based audit backend:-<\/p>\n<pre class=\"wp-block-code\"><code>audit \"file\" {\n  log_path = \"\/opt\/vault\/plugins\/evil.sh\"\n  prefix   = \"#!\/bin\/bashn$(cat \/tmp\/secret_payload)n\"\n  mode     = \"0755\"\n}<\/code><\/pre>\n<p>Upon sending any Vault request, the prefix is prepended to each JSON entry, causing Vault to create <code>\/opt\/vault\/plugins\/evil.sh<\/code> with executable permissions.<\/p>\n<p>Simultaneously, a TCP audit backend streams the identical payload to an attacker-controlled socket, ensuring the exact bytes can be hashed. Finally, the adversary issues:-<\/p>\n<pre class=\"wp-block-code\"><code>vault write sys\/plugins\/catalog\/secret\/evil \n  sha256=\"\" command=\"evil.sh\"<\/code><\/pre>\n<p>Vault then loads <code>evil.sh<\/code> as a plugin, executing it within the Vault process and granting arbitrary code execution privileges.<\/p>\n<p>While the following table enumerates the key CVEs, their technical root causes, and attacker impacts:-<\/p>\n<figure class=\"wp-block-table\">\n<table class=\"has-fixed-layout\">\n<thead>\n<tr>\n<th>CVE<\/th>\n<th>Root Cause<\/th>\n<th>Attacker Impact<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td>CVE-2025-6004<\/td>\n<td>Username lockout bypass via case and whitespace<\/td>\n<td>Unlimited brute-force attempts; username enumeration<\/td>\n<\/tr>\n<tr>\n<td>CVE-2025-6011<\/td>\n<td>Timing difference on bcrypt skip for non-existent users<\/td>\n<td>Username validation oracle; targeted credential attacks<\/td>\n<\/tr>\n<tr>\n<td>CVE-2025-6003<\/td>\n<td>MFA bypass when <code>username_as_alias=true<\/code> and EntityID mismatch<\/td>\n<td>Silently skips TOTP requirement under certain LDAP configurations<\/td>\n<\/tr>\n<tr>\n<td>CVE-2025-6016<\/td>\n<td>Combined TOTP logic flaws (replay, rate limit evasion)<\/td>\n<td>Brute-force valid TOTP codes; bypass one-time use and rate-limiting<\/td>\n<\/tr>\n<tr>\n<td>CVE-2025-6037<\/td>\n<td>CN unchecked in non-CA cert auth<\/td>\n<td>Impersonation of arbitrary machine identities with valid public key<\/td>\n<\/tr>\n<tr>\n<td>CVE-2025-5999<\/td>\n<td>Policy normalization mismatch<\/td>\n<td>Admin can assign <code>\" root\"<\/code> or uppercase <code>\"ROOT\"<\/code> policy names to escalate to <code>root<\/code> privileges<\/td>\n<\/tr>\n<tr>\n<td>CVE-2025-6000<\/td>\n<td>Audit-log prefix abuse for plugin creation<\/td>\n<td>Remote code execution with no memory corruption via malicious audit-log-backed plugin registration<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<\/figure>\n<p>This wave of logic-level vulnerabilities highlights that even memory-safe architectures can harbor critical flaws when input normalization and policy enforcement diverge.<\/p>\n<p>Cybersecurity teams must augment black-box testing with thorough source analysis to uncover subtle trust-model inconsistencies before adversaries exploit them.<\/p>\n<p class=\"has-text-align-center has-background\" style=\"background:linear-gradient(180deg,rgb(238,238,238) 90%,rgb(169,184,195) 100%)\">Equip your SOC with full access to the latest threat data from\u00a0<strong>ANY.RUN TI Lookup<\/strong>\u00a0that can Improve incident response -&gt;\u00a0<strong><a href=\"https:\/\/any.run\/threat-intelligence-feeds\/?utm_source=csn_aug&amp;utm_medium=article&amp;utm_campaign=how-to-get-real-time-iocs&amp;utm_content=feeds-cta1&amp;utm_term=050825#contact-sales\" target=\"_blank\" rel=\"noreferrer noopener nofollow\">Get 14-day\u00a0Free\u00a0Trial<\/a><\/strong><\/p>\n<p>The post <a href=\"https:\/\/cybersecuritynews.com\/hashicorp-vault-0-day-vulnerabilities\/\">HashiCorp Vault 0-Day Vulnerabilities Let Attackers Execute Remote Code<\/a> appeared first on <a href=\"https:\/\/cybersecuritynews.com\/\">Cyber Security News<\/a>.<\/p>\n<\/div>\n<p> \t<BR><br \/>\n <BR><\/BR><br \/>\n    Tushar Subhra Dutta<br \/>\n \t<BR><br \/>\n<BR><\/BR><br \/>\n<a href=\"https:\/\/cybersecuritynews.com\/hashicorp-vault-0-day-vulnerabilities\/\">Go to cyber-security-news<\/a><br \/>\n \t<BR><br \/>\n <BR><\/BR><\/p>\n","protected":false},"excerpt":{"rendered":"<p>HashiCorp Vault 0-Day Vulnerabilities Let Attackers Execute Remote Code Security researchers uncovered a series of critical zero-day vulnerabilities in HashiCorp Vault in early August 2025, the widely adopted secrets management solution. These flaws, spanning authentication bypasses, policy enforcement inconsistencies, and audit-log abuse, create end-to-end attack paths that culminate in remote code execution (RCE) on Vault [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[129,63,649],"tags":[130],"class_list":["post-5954","post","type-post","status-publish","format-standard","hentry","category-cyber-security","category-cyber-security-news","category-threats","tag-cyber-security-news"],"_links":{"self":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/5954"}],"collection":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/comments?post=5954"}],"version-history":[{"count":0,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/posts\/5954\/revisions"}],"wp:attachment":[{"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/media?parent=5954"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/categories?post=5954"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/serisec.com\/index.php\/wp-json\/wp\/v2\/tags?post=5954"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}