Miggo Logo

CVE-2023-46135: stellar-strkey vulnerable to panic in SignedPayload::from_payload

5.3

CVSS Score
3.1

Basic Information

EPSS Score
0.38709%
Published
10/25/2023
Updated
11/9/2023
KEV Status
No
Technology
TechnologyRust

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
stellar-strkeyrust< 0.0.80.0.8

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability manifests in the from_payload constructor of SignedPayload, as shown in the commit diff modifying src/ed25519.rs. The added MAX_INNER_PAYLOAD_LENGTH check and test case in tests/tests.rs explicitly target this function. The arithmetic operation's overflow potential is directly addressed by the patch, confirming this as the vulnerable entry point.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t P*ni* vuln*r**ility w**n * sp**i*lly *r**t** p*ylo** is us**. T*is is ****us* o* t** *ollowin* **l*ul*tion: ```rust inn*r_p*ylo**_l*n + (* - inn*r_p*ylo**_l*n % *) % * ``` I* `inn*r_p*ylo**_l*n` is `*x********`, `(* - inn*r_p*ylo**_l*n %

Reasoning

T** vuln*r**ility m*ni**sts in t** `*rom_p*ylo**` *onstru*tor o* Si*n**P*ylo**, *s s*own in t** *ommit *i** mo*i*yin* sr*/*******.rs. T** ***** M*X_INN*R_P*YLO**_L*N*T* ****k *n* t*st **s* in t*sts/t*sts.rs *xpli*itly t*r**t t*is *un*tion. T** *rit*m