CVE-2026-29795

stellar-xdr: `StringM::from_str` bypasses max length validation

HIGH
7.5
CVSS Score
Published: March 6, 2026 at 08:42 PM UTC
Updated: June 17, 2026 at 10:29 AM UTC
2 products affected across 1 vendorStellar XDRRs Stellar XDR

Using rs-stellar-xdr by stellar?

Get instant alerts when new vulnerabilities affect rs-stellar-xdr - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 25.0.1
v < 25.0.1
Affected range stops below 25.0.1, so it looks safe — our inference, not a vendor statement

References (4)

x_refsource_CONFIRMMitigationPatchVendor Advisory
Source: cverecord
https://github.com/stellar/rs-stellar-xdr/security/advisories/GHSA-x57h-xx53-v53w
x_refsource_MISCIssue Tracking
Source: cverecord
https://github.com/stellar/rs-stellar-xdr/issues/499
x_refsource_MISCIssue TrackingPatch
Source: cverecord
https://github.com/stellar/rs-stellar-xdr/pull/500

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
HIGH
Availability
NONE
Vector?

Quick Info

StatusANALYZED
CWE
CWE-770

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card