Exploit databaseDownload repository ZIP
GH-dad2833ad24f18be92e78ca6555e7541
vardhan0257/upb-any-recursion-audit
Sources for CVE-2026-0994
1 sourcePreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files10
vardhan0257/upb-any-recursion-auditRevision 0d9429c33632
- .github/
- csharp/
- src/
- .gitignore
- LICENSE
- README.md
- build.sh
- fetch_source.sh
- run_tests.sh
- verify_php_identical.sh
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
run_tests.sh
Shell · 1,940 bytes#!/usr/bin/env bash
# Runs the test matrix this audit was based on:
# - JSON decoder: 5000 nested Any levels (well past the depth=64 cap)
# - Wire decoder: 60-level boundary payload, then a 200000-level stress
# payload, each run under both an 8MB stack and a 1MB stack (the
# latter approximating a non-main Ruby thread's stack).
set -euo pipefail
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
BUILD="$ROOT/build"
PAYLOADS="$ROOT/payloads"
for f in "$BUILD/harness_json" "$BUILD/harness_wire" "$BUILD/wkt.pb"; do
if [ ! -f "$f" ]; then
echo "ERROR: $f not found. Run ./build.sh first." >&2
exit 1
fi
done
mkdir -p "$PAYLOADS"
echo "=== Generating payloads ==="
python3 "$ROOT/src/gen_json_payload.py" 5000 "$PAYLOADS/json_5000.json"
python3 "$ROOT/src/gen_binary_payload.py" 60 "$PAYLOADS/wire_60.bin"
python3 "$ROOT/src/gen_binary_payload.py" 200000 "$PAYLOADS/wire_200000.bin"
export ASAN_OPTIONS=detect_leaks=0
run_case() {
local label="$1"; shift
local stack_kb="$1"; shift
echo ""
echo "--- $label (stack=${stack_kb}KB) ---"
( ulimit -s "$stack_kb" && timeout 60 "$@" )
echo "exit code: $?"
}
run_case "JSON: 5000 nested Any" 8192 "$BUILD/harness_json" "$BUILD/wkt.pb" "$PAYLOADS/json_5000.json"
run_case "Wire: 60-level boundary" 8192 "$BUILD/harness_wire" "$BUILD/wkt.pb" "$PAYLOADS/wire_60.bin"
run_case "Wire: 200000-level stress, 8MB stack" 8192 "$BUILD/harness_wire" "$BUILD/wkt.pb" "$PAYLOADS/wire_200000.bin"
run_case "Wire: 200000-level stress, 1MB stack" 1024 "$BUILD/harness_wire" "$BUILD/wkt.pb" "$PAYLOADS/wire_200000.bin"
echo ""
echo "=== Done. Expected (per the original audit): every case above returns"
echo " a clean 'Recursion limit exceeded' / MaxDepthExceeded error, exit 0,"
echo " with no ASan/UBSan violation printed. Anything else is a new result"
echo " — don't explain it away, go find out why. ==="