Uncontrolled Recursion Affecting com.squareup.wire:wire-runtime package, versions [,5.2.0)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.04% (12th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-JAVA-COMSQUAREUPWIRE-9459041
  • published16 Mar 2025
  • disclosed16 Mar 2025
  • creditUnknown

Introduced: 16 Mar 2025

NewCVE-2024-58103  (opens in a new tab)
CWE-674  (opens in a new tab)

How to fix?

Upgrade com.squareup.wire:wire-runtime to version 5.2.0 or higher.

Overview

Affected versions of this package are vulnerable to Uncontrolled Recursion due to improper enforcement of recursion limits in ByteArrayProtoReader32.kt and ProtoReader.kt. An attacker can cause a denial of service by sending deeply nested group structures.

CVSS Base Scores

version 4.0
version 3.1