# CVE-2026-29795: stellar-xdr: `StringM::from_str` bypasses max length validation

- Severity: Medium 4.0 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.23%, higher than 14% of CVEs (2026-12-02)
- Published: 2026-03-05T20:45:46.000Z
- Modified: 2026-06-17T10:29:54.127Z
- Also known as: GHSA-x57h-xx53-v53w
- Weaknesses: CWE-770
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- stellar rs-stellar-xdr: < 25.0.1
- stellar-xdr (crates.io): before 25.0.1
- stellar stellar-xdr: before 25.0.1

## Every score

- GitHub_M: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- GitHub: CVSS:3.1 4.0 Medium `CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`

## References

- <https://github.com/stellar/rs-stellar-xdr/security/advisories/GHSA-x57h-xx53-v53w> (mitigation, patch, vendor-advisory, web)
- <https://github.com/stellar/rs-stellar-xdr/issues/499> (issue-tracking, web)
- <https://github.com/stellar/rs-stellar-xdr/pull/500> (issue-tracking, patch, web)
- <https://github.com/stellar/rs-stellar-xdr/commit/1f840013c3e2fca0321fb844b048afa01d10dda6> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-29795> (advisory)
- <https://github.com/stellar/rs-stellar-xdr> (package)

## Sources

- CVE List: [CVE-2026-29795](https://www.cve.org/CVERecord?id=CVE-2026-29795), CVE Terms of Use, modified 2026-03-09
- GitHub Advisory Database: [GHSA-x57h-xx53-v53w](https://github.com/advisories/GHSA-x57h-xx53-v53w), CC-BY-4.0, modified 2026-03-06
- NVD: [CVE-2026-29795](https://nvd.nist.gov/vuln/detail/CVE-2026-29795), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-29795 · Whole record: https://cve.day/CVE-2026-29795.json · Rebuilt by cve.day 2026-11-25T22:59:15.422Z
