stellar-xdr: `StringM::from_str` bypasses max length validation
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| stellar | rs-stellar-xdr | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Stellar | Rs-stellar-xdr |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-x57h-xx53-v53w | stellar-xdr's StringM::from_str bypasses max length validation |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.224% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Stellar stellar-xdr
|
|
| CPEs | cpe:2.3:a:stellar:stellar-xdr:*:*:*:*:*:rust:*:* | |
| Vendors & Products |
Stellar stellar-xdr
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Stellar
Stellar rs-stellar-xdr |
|
| Vendors & Products |
Stellar
Stellar rs-stellar-xdr |
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | stellar-xdr: `StringM::from_str` bypasses max length validation | |
| Weaknesses | CWE-770 | |
| References |
| |
| Metrics |
cvssV3_1
|