Exploit database

GH-5abfed605789add95486bda16f6e346b

securifera/cve-2026-20217

GitHubNot listedPoC
Download repository ZIP

Sources for CVE-2026-20217

1 source

Preferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.

Repository files8
securifera/cve-2026-20217Revision 696e73493822

Files from this repository share one source choice. Supporting files may cover other vulnerabilities.

scripts/setup.sh

Suggested starting fileShell · 2,897 bytes
#!/usr/bin/env bash
set -euo pipefail

ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
ARCHIVE="$ROOT/image/zendto-installer-systemd-debian12.tar.zst"
ARCHIVE_SHA='2618522b9296ae724fd9c7e3f868f11cb50e25bd58f2c326efafaffe849853ae'
IMAGE_ID='sha256:de6d2f06ca04943362a9bdec5026e808448953728f31bd926343a4ed2ca2ef7c'
RUNTIME_TAG='zendto-clamav-rce-repro:exact-20260806'

umask 077

for command in docker zstd python3 cc file readelf sha256sum; do
    command -v "$command" >/dev/null || {
        echo "missing required command: $command" >&2
        exit 1
    }
done
docker compose version >/dev/null
"$ROOT/scripts/verify-bundle.sh"

if [[ ! -f "$ARCHIVE" ]]; then
    echo "local target image archive is missing: $ARCHIVE" >&2
    echo "Docker images are intentionally not versioned; see source-recipe/README.md" >&2
    echo "Exact regression requires the archive SHA-256 recorded in PROFILE.json" >&2
    exit 1
fi

actual_archive_sha="$(sha256sum "$ARCHIVE" | awk '{print $1}')"
if [[ "$actual_archive_sha" != "$ARCHIVE_SHA" ]]; then
    echo "exact-image archive hash mismatch" >&2
    echo "expected $ARCHIVE_SHA" >&2
    echo "actual   $actual_archive_sha" >&2
    exit 1
fi
zstd -q -t "$ARCHIVE"

if ! docker image inspect "$IMAGE_ID" >/dev/null 2>&1; then
    zstd -q -dc "$ARCHIVE" | docker load
fi
loaded_id="$(docker image inspect "$IMAGE_ID" --format '{{.Id}}')"
if [[ "$loaded_id" != "$IMAGE_ID" ]]; then
    echo "loaded Docker image ID mismatch: $loaded_id" >&2
    exit 1
fi
docker image tag "$IMAGE_ID" "$RUNTIME_TAG"

if [[ ! -x "$ROOT/.venv/bin/python" ]]; then
    python3 -m venv "$ROOT/.venv"
fi
"$ROOT/.venv/bin/python" -m pip install --disable-pip-version-check -r "$ROOT/requirements.txt"

cc -O2 -Wall -Wextra \
    -o "$ROOT/third_party/installer-runtime/clamav-pespin/pespin_summit" \
    "$ROOT/third_party/installer-runtime/clamav-pespin/pespin_summit.c"
chmod 0755 "$ROOT/third_party/installer-runtime/clamav-pespin/pespin_summit"

"$ROOT/scripts/selftest-client.sh"
docker compose --project-directory "$ROOT" config --quiet

http_port="${ZENDTO_HTTP_PORT:-18084}"
https_port="${ZENDTO_HTTPS_PORT:-18447}"
fixture_id="$(docker compose --project-directory "$ROOT" ps -q zendto 2>/dev/null || true)"
for published_port in "$http_port" "$https_port"; do
    while IFS= read -r published_id; do
        [[ -z "$published_id" || "$published_id" == "$fixture_id" ]] && continue
        echo "host port $published_port is already in use by container $published_id" >&2
        echo "stop the conflicting fixture or select unused ZENDTO_*_PORT values" >&2
        exit 1
    done < <(docker ps --no-trunc --filter "publish=${published_port}" --format '{{.ID}}')
done

docker compose --project-directory "$ROOT" up -d
"$ROOT/scripts/verify-target.sh"

echo
echo "Exact ZendTo target is ready at https://127.0.0.1:${https_port}/"
echo "Python: $ROOT/.venv/bin/python"