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.
fetch_source.sh
Shell · 1,894 bytes#!/usr/bin/env bash
# Fetches protocolbuffers/protobuf pinned to the exact commit this audit was
# run against, and stages only the files the harnesses need under
# third_party/. Nothing here is committed to git — this script is the
# reproducibility anchor instead of vendoring Google's source into this repo.
set -euo pipefail
PINNED_COMMIT="ead3f0029facc43da13588132e9091bf9bd7a26f"
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
VENDOR="$ROOT/third_party"
rm -rf "$VENDOR"
mkdir -p "$VENDOR/checkout"
echo "Cloning protobuf and checking out pinned commit $PINNED_COMMIT ..."
git clone https://github.com/protocolbuffers/protobuf.git "$VENDOR/checkout"
git -C "$VENDOR/checkout" checkout "$PINNED_COMMIT"
ACTUAL="$(git -C "$VENDOR/checkout" rev-parse HEAD)"
if [ "$ACTUAL" != "$PINNED_COMMIT" ]; then
echo "ERROR: checked out commit $ACTUAL does not match pinned $PINNED_COMMIT" >&2
exit 1
fi
mkdir -p "$VENDOR/upb_core" "$VENDOR/protos"
# The C source under test: the exact amalgamation shipped inside protobuf's
# Ruby native extension.
cp "$VENDOR/checkout/ruby/ext/google/protobuf_c/ruby-upb.c" "$VENDOR/upb_core/"
cp "$VENDOR/checkout/ruby/ext/google/protobuf_c/ruby-upb.h" "$VENDOR/upb_core/"
cp "$VENDOR/checkout/third_party/utf8_range/utf8_range.c" "$VENDOR/upb_core/"
cp "$VENDOR/checkout/third_party/utf8_range/utf8_range.h" "$VENDOR/upb_core/"
# The PHP amalgamation, kept alongside for the byte-diff check that confirms
# the guard logic is identical between bindings (see README, "PHP" row).
cp "$VENDOR/checkout/php/ext/google/protobuf/php-upb.c" "$VENDOR/upb_core/php-upb.c"
# Well-known-type .proto sources used to bootstrap the DefPool at runtime.
cp "$VENDOR/checkout/src/google/protobuf/any.proto" "$VENDOR/protos/"
cp "$VENDOR/checkout/src/google/protobuf/struct.proto" "$VENDOR/protos/"
echo "Fetch complete. Source staged under: $VENDOR"