diff --git a/lang/java/avro/src/test/java/org/apache/avro/TestBinaryDecodingRejections.java b/lang/java/avro/src/test/java/org/apache/avro/TestBinaryDecodingRejections.java
new file mode 100644
index 00000000000..74dd45d870e
--- /dev/null
+++ b/lang/java/avro/src/test/java/org/apache/avro/TestBinaryDecodingRejections.java
@@ -0,0 +1,115 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.avro;
+
+import static org.junit.jupiter.api.Assertions.assertThrows;
+
+import java.io.IOException;
+import java.io.InputStream;
+import java.util.ArrayList;
+import java.util.List;
+import java.util.stream.Stream;
+
+import org.apache.avro.generic.GenericData;
+import org.apache.avro.generic.GenericDatumReader;
+import org.apache.avro.io.Decoder;
+import org.apache.avro.io.DecoderFactory;
+import org.junit.jupiter.params.ParameterizedTest;
+import org.junit.jupiter.params.provider.Arguments;
+import org.junit.jupiter.params.provider.MethodSource;
+
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.ObjectMapper;
+
+/**
+ * Java harness for the shared cross-SDK "must-reject" binary decoding vectors
+ * (AVRO-4304). It loads {@code share/test/data/binary-rejections.json} and
+ * asserts that every vector is rejected by the Avro binary decoder with a
+ * bounded, well-defined error (a {@link Throwable} that is an
+ * {@link Exception}, i.e. not a
+ * {@link StackOverflowError}/{@link OutOfMemoryError} crash), for both the
+ * classic and the fast reader paths.
+ *
+ * The shared fixtures guarantee that all language SDKs reject the same
+ * malformed inputs identically and do not drift.
+ */
+public class TestBinaryDecodingRejections {
+
+ private static final String RESOURCE = "/share/test/data/binary-rejections.json";
+
+ static Stream vectors() throws IOException {
+ List args = new ArrayList<>();
+ ObjectMapper mapper = new ObjectMapper();
+ try (InputStream in = TestBinaryDecodingRejections.class.getResourceAsStream(RESOURCE)) {
+ if (in == null) {
+ throw new IOException("Missing shared reject-vector fixture on classpath: " + RESOURCE);
+ }
+ JsonNode root = mapper.readTree(in);
+ for (JsonNode v : root.get("vectors")) {
+ args.add(Arguments.of(v.get("name").asText(), v.get("schema").asText(), v.get("category").asText(),
+ v.get("bytesHex").asText()));
+ }
+ }
+ if (args.isEmpty()) {
+ throw new IOException("No reject vectors found in " + RESOURCE);
+ }
+ return args.stream();
+ }
+
+ private static byte[] fromHex(String hex) {
+ if (hex.length() % 2 != 0) {
+ throw new IllegalArgumentException("Hex string must have an even length: '" + hex + "'");
+ }
+ byte[] out = new byte[hex.length() / 2];
+ for (int i = 0; i < out.length; i++) {
+ int hi = Character.digit(hex.charAt(2 * i), 16);
+ int lo = Character.digit(hex.charAt(2 * i + 1), 16);
+ if (hi < 0 || lo < 0) {
+ throw new IllegalArgumentException("Invalid hex character in '" + hex + "'");
+ }
+ out[i] = (byte) ((hi << 4) | lo);
+ }
+ return out;
+ }
+
+ private static void decode(String schemaJson, byte[] bytes, boolean fastReader) throws IOException {
+ Schema schema = new Schema.Parser().parse(schemaJson);
+ GenericData data = new GenericData();
+ data.setFastReaderEnabled(fastReader);
+ GenericDatumReader