CVE-2026-45799: CWE-129: Improper Validation of Array Index in square wire
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.
AI Analysis
Technical Summary
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.
CVE-2026-45799: CWE-129: Improper Validation of Array Index in square 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
Affected software
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.