{"id":"CVE-2026-29795","published":"2026-03-06T20:42:43Z","modified":"2026-03-09T20:54:30Z","title":"stellar-xdr: `StringM::from_str` bypasses max length validation","vendor":"stellar","product":"rs-stellar-xdr","tier":"tail","description":{"text":"stellar-xdr is a library and CLI containing types and functionality for working with Stellar XDR. Prior to version 25.0.1, StringM::from_str does not validate that the input length is within the declared maximum (MAX). Calling StringM::<N>::from_str(s) where s is longer than N bytes succeeds and returns an Ok value instead of Err(Error::LengthExceedsMax), producing a StringM that violates its length invariant. This affects any code that constructs StringM values from string input using FromStr (including str::parse), and relies on the type's maximum length constraint being enforced. An oversized StringM could propagate through serialization, validation, or other logic that assumes the invariant holds. This issue has been patched in version 25.0.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00224,"percentile":0.13295,"provenance":"source"},"cwes":[{"id":"CWE-770","name":"Allocation of Resources Without Limits or Throttling"}],"references":[{"url":"https://github.com/stellar/rs-stellar-xdr/security/advisories/GHSA-x57h-xx53-v53w","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/stellar/rs-stellar-xdr/issues/499","tags":["x_refsource_MISC"]},{"url":"https://github.com/stellar/rs-stellar-xdr/pull/500","tags":["x_refsource_MISC"]},{"url":"https://github.com/stellar/rs-stellar-xdr/commit/1f840013c3e2fca0321fb844b048afa01d10dda6","tags":["x_refsource_MISC"]}],"priority":{"score":5.5,"factors":[{"name":"EPSS percentile","points":2.66},{"name":"CVSS severity","points":2.8}]},"vendorSlug":"stellar","affectedVersions":[{"vendor":"stellar","product":"rs-stellar-xdr","versions":["< 25.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2026-03-09T20:49:57.353796Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"crates.io","package":"stellar-xdr","vulnerableRanges":["<25.0.1"],"patched":["25.0.1"],"from":["GHSA-x57h-xx53-v53w"],"provenance":"source"}],"summary":{"text":"The stellar-xdr library's StringM::from_str in the rs-stellar-xdr product fails to enforce the declared maximum length, so calling it with a string longer than N bytes returns Ok instead of an error, producing a StringM that violates its length invariant. An attacker with no privileges and no user interaction, operating locally, could supply such oversized input to any code that builds StringM values via FromStr or str::parse, and the resulting value could then propagate into serialization or validation logic that assumes the length limit holds.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:21:11Z"},"euvd":{"id":"EUVD-2026-10071","exploited":false,"provenance":"source"}}