Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-45799: CWE-129: Improper Validation of Array Index in square wire

0
High
VulnerabilityCVE-2026-45799cvecve-2026-45799cwe-129
Published: 07/17/2026 (07/17/2026, 19:49:30 UTC)
Source: CVE Database V5
Vendor/Project: square
Product: wire

Description

Wire provides gRPC and protocol buffers for Android, Kotlin, Swift, and Java. Prior to 6.3.0 and 7.0.0-alpha03, ByteArrayProtoReader32.skipGroup() and ProtoReader.skipGroup() in wire-runtime do not validate that a LENGTH_DELIMITED field length is non-negative before skip(), allowing a crafted protobuf varint encoding -128 as a signed Int to make skip(-128) move the internal position negative and make the next readByte() throw ArrayIndexOutOfBoundsException instead of the documented IOException or ProtocolException, which can crash services using ProtoAdapter.decode(byte[]) on untrusted payloads. This issue is fixed in versions 6.3.0 and 7.0.0-alpha03.

CVSS v3.1

Score 7.5high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Affected software

Affected versions
<6.3.0=7.0.0-alpha03

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/18/2026, 11:51:17 UTC

Technical Analysis

Square Wire is a library providing gRPC and protocol buffers support for Android, Kotlin, Swift, and Java. Versions before 6.3.0 and 7.0.0-alpha03 contain a vulnerability (CWE-129) in ByteArrayProtoReader32.skipGroup() and ProtoReader.skipGroup() where the LENGTH_DELIMITED field length is not validated to be non-negative before calling skip(). A crafted protobuf varint encoding of -128 as a signed integer can cause skip(-128), moving the internal read position to a negative value. This leads to an ArrayIndexOutOfBoundsException on the next readByte() call, causing a crash instead of the expected IOException or ProtocolException. The issue is fixed in versions 6.3.0 and 7.0.0-alpha03.

Potential Impact

The vulnerability can cause denial of service by crashing applications that decode untrusted protobuf payloads using the affected Wire library versions. There is no indication of confidentiality or integrity impact. The CVSS score is 7.5 (high) due to network attack vector, low attack complexity, no privileges required, no user interaction, and an impact on availability.

Mitigation Recommendations

Upgrade to Wire library version 6.3.0 or later, or 7.0.0-alpha03 or later, where this issue is fixed. No other mitigations are documented. Patch status is not explicitly stated as 'patchAvailable' or 'official-fix' in the input, but the description clearly states the issue is fixed in these versions. Therefore, upgrading to these versions is the recommended remediation.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
GitHub_M
Date Reserved
2026-05-13T08:19:32.603Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a5b5eac2d1edb114c7fb214

Added to database: 07/18/2026, 11:08:28 UTC

Last enriched: 07/18/2026, 11:51:17 UTC

Last updated: 07/18/2026, 13:12:57 UTC

Views: 3

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses