{"cve":"CVE-2026-29795","nvd":{"published":"2026-03-06T21:16:15.950","modified":"2026-06-17T10:29:54.127","status":"Analyzed","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","score":7.5},"cwes":["CWE-770"],"references":["https://github.com/stellar/rs-stellar-xdr/commit/1f840013c3e2fca0321fb844b048afa01d10dda6","https://github.com/stellar/rs-stellar-xdr/issues/499","https://github.com/stellar/rs-stellar-xdr/pull/500","https://github.com/stellar/rs-stellar-xdr/security/advisories/GHSA-x57h-xx53-v53w"],"products":["stellar:stellar-xdr"],"source":"nvd","synced_at":"2026-10-19T22:25:53.701907451+00:00"},"epss":{"cve":"CVE-2026-29795","score":0.00205,"percentile":0.10477,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-x57h-xx53-v53w","url":"https://osv.dev/vulnerability/GHSA-x57h-xx53-v53w","summary":"stellar-xdr's StringM::from_str bypasses max length validation","modified":"2026-03-06T23:02:40.557695Z","packages":[{"ecosystem":"crates.io","name":"stellar-xdr","purl":"pkg:cargo/stellar-xdr","ranges":["<25.0.1"],"fixed":["25.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}