Exploit databaseDownload repository ZIP
GH-4baf60140f896b3cc89a3dcd9d3ad247
softjapan/php74-cve-patched
Sources for CVE-2026-109618
412 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars. Open preferred source
Repository files2
softjapan/php74-cve-patchedRevision d17ed8863bb6
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
scripts/verify-upstream-patch.sh
Shell · 1,672 bytes#!/bin/sh
# Check that the vendored patch is byte-identical to the upstream php-src commit,
# that every variant directory carries the same copy, and that the upstream
# backport branch has not moved (a new commit there means a new patch to ship).
set -eu
ROOT=$(cd "$(dirname "$0")/.." && pwd)
BRANCH=PHP-7.4-CVE-2026-109618-109619
COMMIT=712e60f9edfd03f0960fc4fc3c2c375f42b90aa2
PATCH="$ROOT/patches/7.4/CVE-2026-109618-109619.patch"
FAILED=0
sha() { (sha256sum "$1" 2>/dev/null || shasum -a 256 "$1") | cut -d' ' -f1; }
EXPECTED=$(cut -d' ' -f1 "$PATCH.sha256")
[ "$(sha "$PATCH")" = "$EXPECTED" ] && echo "ok patch matches .sha256" || { echo "FAIL patch does not match .sha256"; FAILED=1; }
for d in "$ROOT"/7.4/*/*/; do
f="$d/CVE-2026-109618-109619.patch"
if [ "$(sha "$f")" = "$EXPECTED" ] && grep -q "PHP_CVE_PATCH_SHA256=\"$EXPECTED\"" "$d/Dockerfile" \
&& cmp -s "$ROOT/conf/zz-cve-2026-mitigations.ini" "$d/zz-cve-2026-mitigations.ini"; then
echo "ok ${d#"$ROOT"/}"
else
echo "FAIL ${d#"$ROOT"/} (run: make sync)"; FAILED=1
fi
done
TMP=$(mktemp)
trap 'rm -f "$TMP"' EXIT
curl -fsSL -o "$TMP" "https://github.com/php/php-src/commit/$COMMIT.patch"
[ "$(sha "$TMP")" = "$EXPECTED" ] && echo "ok identical to php/php-src@${COMMIT%"${COMMIT#???????}"}" || { echo "FAIL differs from upstream commit"; FAILED=1; }
HEAD=$(git ls-remote https://github.com/php/php-src "refs/heads/$BRANCH" | cut -f1)
if [ "$HEAD" = "$COMMIT" ]; then
echo "ok upstream branch $BRANCH is still at the vendored commit"
else
echo "FAIL upstream branch $BRANCH moved to ${HEAD:-<missing>}: review and update the patch"; FAILED=1
fi
exit $FAILED