{"id":"CVE-2026-32129","published":"2026-03-12T17:47:10Z","modified":"2026-03-13T16:23:54Z","title":"Poseidon V1 variable-length input collision via implicit zero-padding","vendor":"stellar","product":"rs-soroban-poseidon","tier":"tail","description":{"text":"soroban-poseidon provides Poseidon and Poseidon2 cryptographic hash functions for Soroban smart contracts. Poseidon V1 (PoseidonSponge) accepts variable-length inputs without injective padding. When a caller provides fewer inputs than the sponge rate (inputs.len() < T - 1), unused rate positions are implicitly zero-filled. This allows trivial hash collisions: for any input vector [m1, ..., mk] hashed with a sponge of rate > k, hash([m1, ..., mk]) equals hash([m1, ..., mk, 0]) because both produce identical pre-permutation states. This affects any use of PoseidonSponge or poseidon_hash where the number of inputs is less than T - 1 (e.g., hashing 1 input with T=3). Poseidon2 (Poseidon2Sponge) is not affected.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00234,"percentile":0.14652,"provenance":"source"},"cwes":[{"id":"CWE-328","name":"Use of Weak Hash"}],"references":[{"url":"https://github.com/stellar/rs-soroban-poseidon/security/advisories/GHSA-g2p6-hh5v-7hfm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/stellar/rs-soroban-poseidon/pull/10","tags":["x_refsource_MISC"]},{"url":"https://github.com/stellar/rs-soroban-poseidon/releases/tag/v25.0.1","tags":["x_refsource_MISC"]}],"priority":{"score":9.0,"factors":[{"name":"EPSS percentile","points":2.93},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"stellar","affectedVersions":[{"vendor":"stellar","product":"rs-soroban-poseidon","versions":["< 25.0.1"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-03-13T16:23:48.432393Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"soroban-poseidon","vulnerableRanges":["<25.0.1"],"patched":["25.0.1"],"from":["GHSA-g2p6-hh5v-7hfm"],"provenance":"source"}],"summary":{"text":"The rs-soroban-poseidon library's Poseidon V1 sponge (PoseidonSponge and poseidon_hash) fails to apply injective padding to variable-length inputs, so unused rate positions are zero-filled and inputs differing only by trailing zeros hash identically; Poseidon2Sponge is not affected. An attacker with network access and no privileges or user interaction can produce trivial collisions in any Soroban smart contract using Poseidon V1 with fewer inputs than the sponge rate minus one, which requires no special configuration beyond that usage.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:08:01Z"},"euvd":{"id":"EUVD-2026-11645","exploited":false,"provenance":"source"}}