Miggo Logo

CVE-2024-58103: Wire has Uncontrolled Recursion on Nested Groups

5.8

CVSS Score
3.1

Basic Information

EPSS Score
0.19239%
Published
3/16/2025
Updated
3/18/2025
KEV Status
No
Technology
TechnologyJava

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L
Package NameEcosystemVulnerable VersionsFirst Patched Version
com.squareup.wire:wire-runtimemaven< 5.2.05.2.0

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The vulnerability manifests in group parsing logic where both ByteArrayProtoReader32 and ProtoReader classes handled nested groups through skipGroup calls without recursion depth tracking. The patch adds recursionDepth counter checks around these calls, confirming these were the vulnerable paths. Both implementations shared identical vulnerable patterns for STATE_START_GROUP handling prior to the enforced recursion limit.

Vulnerable functions

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

WAF Protection Rules

WAF Rule

Squ*r* Wir* ***or* *.*.* *o*s not *n*or** * r**ursion limit on n*st** *roups in *yt**rr*yProtoR****r**.kt *n* ProtoR****r.kt.

Reasoning

T** vuln*r**ility m*ni**sts in *roup p*rsin* lo*i* w**r* *ot* *yt**rr*yProtoR****r** *n* ProtoR****r *l*ss*s **n*l** n*st** *roups t*rou** skip*roup **lls wit*out r**ursion **pt* tr**kin*. T** p*t** ***s r**ursion**pt* *ount*r ****ks *roun* t**s* **l