CVEReports
CVEReports

Automated vulnerability intelligence platform. Comprehensive reports for high-severity CVEs generated by AI.

Product

  • Home
  • Sitemap
  • RSS Feed

Company

  • About
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 CVEReports. All rights reserved.

Made with love by Amit Schendel & Alon Barad



GHSA-PM4J-7R4Q-CCG8

GHSA-PM4J-7R4Q-CCG8: State Inconsistency in Soroban Host Storage Key Conversion

Amit Schendel
Amit Schendel
Senior Security Researcher

Mar 7, 2026·6 min read·23 visits

Executive Summary (TL;DR)

A flaw in `soroban-env-host` causes a state flag to get stuck if a storage key conversion fails. This prevents subsequent valid operations involving `MuxedAddress`, leading to transaction rollbacks. Fixed in version 26.0.0.

A logic error in the Soroban host environment (`soroban-env-host`) allows for internal state corruption during the conversion of smart contract values (`Val`) to storage keys (`ScVal`). When a conversion fails—specifically involving prohibited types like `MuxedAddress`—an internal status flag indicating that a 'storage conversion is in progress' may remain incorrectly set to `true`. This inconsistent state persists for the duration of the host's execution context. Consequently, valid subsequent operations that rely on this flag, such as emitting events containing `MuxedAddress` objects or performing XDR serialization, are erroneously rejected. This vulnerability can lead to unexpected transaction failures and contract logic denial of service.

Vulnerability Overview

The Soroban host environment acts as the runtime for smart contracts on the Stellar network, managing memory, execution, and storage access. To maintain ledger consistency and prevent specific classes of bugs, the host enforces strict type policies for data stored in the ledger. One such policy prohibits the use of MuxedAddress objects as keys in contract storage. This enforcement relies on an internal state tracking mechanism: before converting a Val (runtime value) to an ScVal (storage value) for use as a key, the host sets a context flag indicating a conversion is active.

GHSA-PM4J-7R4Q-CCG8 identifies a defect in this state management logic. The vulnerability manifests when a conversion attempt fails—whether due to malicious input, resource limits, or invalid types. In affected versions of soroban-env-host (prior to 26.0.0), the cleanup logic fails to reset the 'conversion in progress' flag upon encountering an error. This leaves the host in a corrupted state where it believes it is perpetually processing a storage key.

The immediate consequence is that subsequent legitimate operations within the same transaction are subjected to the strict storage key constraints inappropriately. If a contract attempts to emit an event or serialize data containing a MuxedAddress after the flag is stuck, the host rejects the operation, causing the transaction to fail. While this does not corrupt ledger data, it creates a denial-of-service vector for complex contract interactions.

Root Cause Analysis

The root cause lies in the error handling path of the Val to ScVal conversion routine within the host's storage subsystem. The host employs a flag—conceptually in_storage_key_conversion—to contextually alter the behavior of type conversion functions. When this flag is true, the converter strictly rejects MuxedAddress types, which are not permitted in storage keys but are allowed elsewhere (e.g., in events or return values).

In a correct implementation, this flag would be managed using a Resource Acquisition Is Initialization (RAII) pattern or a try/finally block to ensure it is reset regardless of the operation's outcome. However, in the vulnerable code, the reset logic is bypassed when an error occurs during the conversion process. If the conversion function returns early due to an error (such as a depth limit violation or an invalid type encounter), the instruction to toggle the flag back to false is never executed.

This results in a 'stuck' state. The host object persists across calls within a single transaction. Therefore, if a nested contract call triggers this failure and returns an error, the parent contract—if it handles the error gracefully—continues executing with the poisoned host state. Any subsequent call by the parent that triggers a check against in_storage_key_conversion will behave as if it is inside a storage key conversion, leading to false positives in the validation logic.

Exploitation Mechanism

Exploiting this vulnerability requires a specific transaction structure involving nested smart contract calls and error handling. The attacker does not need special privileges but must craft a transaction that induces a failure in a child call while keeping the parent execution alive. The goal is to trigger the bug in the child context and observe the side effect in the parent context.

Attack Sequence

  1. Orchestration: A malicious or compromised Contract A initiates a call to Contract B using a safe invocation method (e.g., try_call).
  2. Trigger: Contract B attempts to write to storage using a MuxedAddress as the key. The host sets in_storage_key_conversion = true and attempts the conversion.
  3. State Corruption: The conversion fails because MuxedAddress is prohibited. The host returns an error to Contract B, but due to the bug, in_storage_key_conversion remains true.
  4. Propagation: Contract B fails. Contract A catches the error (via try_call) and proceeds with its execution flow.
  5. Denial of Service: Contract A attempts a valid operation, such as emitting an event that includes a MuxedAddress. The host checks the stuck flag, incorrectly determines this is a storage key conversion, and rejects the valid event emission. The entire transaction rolls back.

This mechanism effectively allows a sub-call to sabotage the execution of the calling contract, even if the caller correctly handles the sub-call's failure. This violates the isolation guarantees expected between contract invocations.

Impact Assessment

The severity of this vulnerability is classified as Low (CVSS 1.7), primarily because it affects availability rather than confidentiality or integrity. There is no risk of data theft, arbitrary code execution, or permanent ledger corruption. The impact is limited to the runtime execution of specific transactions.

Availability Impact: The primary consequence is the failure of legitimate transactions. In complex DeFi protocols where contracts interact dynamically, a single failing sub-component could inadvertently trigger this state bug, causing the main protocol logic to fail unexpectedly. This could be used for griefing attacks, where an attacker intentionally triggers the bug to prevent a specific contract path from executing.

Integrity Impact: There is no direct integrity loss. The ledger state remains consistent because the transaction affecting the state is rolled back. The "corruption" is transient and confined to the volatile memory of the host during the transaction's lifecycle. Once the transaction concludes (fails), the host instance is discarded, and the state is reset for the next transaction.

Remediation and Mitigation

The vulnerability is addressed in soroban-env-host version 26.0.0, which introduces Protocol 26 changes. The fix involves ensuring that the state tracking flag is robustly reset even in the event of a conversion failure. This is likely achieved by implementing a Drop guard or similar scope-based cleanup mechanism that guarantees the flag's restoration upon scope exit.

Mitigation Strategies

Since this is a logic bug within the blockchain's execution environment, individual smart contract developers cannot "patch" the host. However, they can employ defensive coding practices to minimize impact until the network upgrades:

  1. Input Validation: Rigorously validate all inputs before attempting storage operations. Preventing the invalid conversion call (e.g., checking if a key is a MuxedAddress before using it) avoids triggering the host bug.
  2. Avoid MuxedAddress in Keys: Adhere strictly to best practices by avoiding complex or prohibited types in storage keys.
  3. Monitor Failures: Watch for unexpected HostError or transaction failures involving event emission, which may indicate this specific edge case is being triggered.

Official Patches

GitHubSoroban Environment Repository

Technical Appendix

CVSS Score
1.7/ 10
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U

Affected Systems

Stellar Network Validators running Protocol < 26Applications using `soroban-env-host` crate < 26.0.0Soroban smart contracts relying on `try_call` for error handling

Affected Versions Detail

Product
Affected Versions
Fixed Version
soroban-env-host
Stellar
< 26.0.026.0.0
AttributeDetail
CWE IDCWE-681
CVSS 4.01.7 (Low)
Attack VectorNetwork
Attack ComplexityLow
Privileges RequiredNone
ImpactDenial of Service (Transaction Rollback)

MITRE ATT&CK Mapping

T1499.003Endpoint Denial of Service: Application Mechanism Denial of Service
Impact
CWE-681
Incorrect Conversion between Numeric Types

Incorrect Conversion between Numeric Types (Applied to Object Type State)

Vulnerability Timeline

Advisory Published
2026-03-07
Fix Released (Version 26.0.0)
2026-03-07

References & Sources

  • [1]GHSA-PM4J-7R4Q-CCG8 Advisory
  • [2]OSV Record

Attack Flow Diagram

Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

More Reports

•about 17 hours ago•GHSA-XF4V-W5X5-PV79
5.1

GHSA-XF4V-W5X5-PV79: CSV Formula Injection in Spree Customer Export

A CSV Formula Injection vulnerability (CWE-1236) exists in the Spree headless eCommerce platform within the customer export functionality. An unauthenticated attacker can register a customer profile containing malicious formula sequences in fields like the first name or last name. When an administrator exports the customer data to a CSV file and opens it in a spreadsheet application, the spreadsheet engine can interpret and execute these formulas, potentially leading to remote command execution on the administrator's workstation or out-of-band data exfiltration.

Alon Barad
Alon Barad
4 views•6 min read
•about 18 hours ago•CVE-2026-47694
5.4

CVE-2026-47694: Stored Cross-Site Scripting in WWBN AVideo Category Descriptions

A Stored Cross-Site Scripting (XSS) vulnerability exists in WWBN AVideo versions up to and including 29.0. Unsanitized category descriptions are stored in the database and subsequently rendered as raw HTML in the Gallery view plugin, allowing low-privileged authenticated users to execute arbitrary JavaScript in the browsers of visiting users.

Alon Barad
Alon Barad
6 views•7 min read
•about 18 hours ago•GHSA-JPVJ-WPMJ-H7RV
9.6

GHSA-JPVJ-WPMJ-H7RV: Supply Chain Compromise and Malicious Code Injection in @cap-js/openapi

A critical supply chain compromise was identified in the Node.js package @cap-js/openapi at version 1.4.1. An attacker gained unauthorized publishing access to the npm registry and distributed a backdoored release that harvests sensitive developer credentials, environment variables, and SSH keys. The malicious code then exfiltrates the collected data to external actor-controlled servers.

Amit Schendel
Amit Schendel
12 views•5 min read
•about 19 hours ago•CVE-2026-47696
7.1

CVE-2026-47696: Authenticated Wallet Credit Bypass in WWBN AVideo AuthorizeNet Plugin

An authenticated wallet credit bypass vulnerability exists in WWBN AVideo version 29.0 and earlier. The AuthorizeNet plugin includes an unfinished mockup endpoint, processPayment.json.php, which lacks actual transaction verification and hardcodes success. This allows any authenticated user to credit their wallet with arbitrary balances without making any payments.

Amit Schendel
Amit Schendel
4 views•5 min read
•about 19 hours ago•GHSA-8WHC-2WMV-WW35
8.8

GHSA-8whc-2wmv-ww35: Unauthenticated Stored DOM-based Cross-Site Scripting in WWBN AVideo YPTSocket Plugin

An unauthenticated stored DOM-based Cross-Site Scripting (DOM XSS) vulnerability in the YPTSocket plugin of WWBN AVideo (formerly YouPHPTube) allows remote attackers to execute arbitrary JavaScript within the session context of administrative users. Unsanitized metadata parameters supplied during the WebSocket handshake are persisted in an SQLite database and broadcast to connected users. The frontend application processes these parameters through an unsafe jQuery append sink, leading to silent, high-impact administrative context compromise.

Amit Schendel
Amit Schendel
6 views•7 min read
•about 20 hours ago•CVE-2026-47676
5.3

CVE-2026-47676: Inconsistent Path Parsing and Slicing in Hono Framework Sub-Application Mounting

A path parsing and normalization inconsistency vulnerability exists in the Hono web framework prior to version 4.12.21. When hosting sub-applications via the app.mount() routing interface, Hono calculates the routing path prefix length on a percent-decoded representation of the URI but executes the path-slicing offset on the raw, percent-encoded string. This discrepancy results in malformed request paths being dispatched to mounted sub-applications, potentially leading to route bypasses, route confusion, and application-level Denial of Service.

Alon Barad
Alon Barad
4 views•6 min read