CVE-2024-58103 Wire has Uncontrolled Recursion on Nested Groups
Attackers can cause denial of service by sending deeply nested protocol buffer messages to applications using Square Wire.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-58103?
CVE-2024-58103 is a medium-severity denial of service vulnerability in Square Wire, published on 16 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Square Wire before 5.2.0 does not enforce a recursion limit on nested groups in ByteArrayProtoReader32.kt and ProtoReader.kt.
Weakness: CWE-674
Which versions are affected by CVE-2024-58103?
2 open source packages ship an affected version, including com.squareup.wire:wire-runtime.
| Package | Affected | Fixed in |
|---|---|---|
com.squareup.wire:wire-runtime Maven | All versions | 5.2.0 |
com.squareup.wire:wire-runtime Maven | All versions | 5.2.0 |
How do I fix CVE-2024-58103?
Upgrade com.squareup.wire:wire-runtime to 5.2.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2024-58103 being exploited?
There is no known exploitation of CVE-2024-58103 in the wild and no public exploit code.
Sources
Also known as GHSA-pwf9-q62p-v7wc.