CVE-2026-29795Stellar-xdr
High 7.5 No auth needed
Follow: this CVE · Stellar · Stellar-xdr We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Mar 6, 2026
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-770
- SSVC (CISA)
- Exploitation: none · Automatable: no · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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.
What to do
- Apply the vendor's security update for Stellar-xdr.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| crates.io | stellar-xdr |
< 25.0.1 |
25.0.1 |
cargo update -p stellar-xdr --precise 25.0.1 |
Per OSV / GitHub Advisories (GHSA-x57h-xx53-v53w). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| stellar | stellar-xdr | < 25.0.1 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Patch
- github.com Issue Tracking
- github.com Issue Tracking Patch
- github.com Mitigation Patch Vendor Advisory