CVE-2024-58103: Wire has Uncontrolled Recursion on Nested Groups
5.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.19239%
CWE
Published
3/16/2025
Updated
3/18/2025
KEV Status
No
Technology
Java
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:L
| Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
|---|---|---|---|
| com.squareup.wire:wire-runtime | maven | < 5.2.0 | 5.2.0 |
Vulnerability Intelligence
Miggo AI
Root 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.