diff --git a/.env.example b/.env.example index 8dd166d..828ef34 100644 --- a/.env.example +++ b/.env.example @@ -1,145 +1,66 @@ -# Copy to .env for your LOCAL synthetic test environment; never commit .env. -# Values below are the variables this implementation actually reads -# (viper: section.name -> SECTION_NAME, see internal/config/config.go). -# -# Mapping to the logical names suggested by the skeleton: -# APP_HOST / APP_PORT -> SERVER_HOST / SERVER_PORT -# SESSION_STORE=postgres -> server-side sessions live in PostgreSQL (SESSION_TTL_SECONDS) -# DATABASE_URL_FILE -> unused: POSTGRES_* below pass no secret files -# CACHE_URL_FILE -> unused: REDIS_* below pass no secret files -# API_REPLICAS -> number of API replicas of the stand (compose.yaml) -# -# APP_ENV selects config//config.yaml; the implementation supports only `dev`. +# Local synthetic stand. Copy to .env; this file contains NO credential values. +# make prepare generates role keys/backend secrets; operator root/unseal state +# stays outside the checkout under ~/.local/share/mtusi-lab7/ (0700). +COMPOSE_PROJECT_NAME=mtusi-messenger-lab6 +LAB7_SECRETS_DIR=secrets/lab7 +BASE_URL=https://localhost:8443 +CA_FILE=secrets/lab7/pki/operator/current/ca.crt +PUBLIC_PORT=8443 +S3_PORT=8333 +BAO_PORT=8200 +GRAFANA_PORT=3000 +PROMETHEUS_PORT=9090 +LOKI_PORT=3100 +TEMPO_PORT=3200 +BROKER_MANAGEMENT_PORT=15671 +LB_STATS_PORT=8404 + +# Operator-local integration ports (only docker-compose.local.yaml publishes them). +TEST_POSTGRES_PORT=15432 +TEST_REDIS_PORT=16379 + +# Service identities/CA/CRL are per-role mounts, set explicitly in compose.yaml: +# TLS_CA_FILE=/run/identity/current/ca.crt +# TLS_CERT_FILE=/run/identity/current/tls.crt +# TLS_KEY_FILE=/run/identity/current/tls.key +# TLS_CRL_FILE=/run/identity/current/ca.crl +# TLS_VERSION_FILE=/run/identity/current-version (atomic immutable-version selector) +# BAO_ADDR=https://openbao:8200; BAO_ROLE=api/worker/relay; +# BAO_KV_PATH=secret/data/; credentials fetched by cert-auth at startup. +# Password PHC parameters: Argon2id v19 m=19456 KiB,t=2,p=1 (measured in REPORT). +# Shared login allowance: account8/minute, sourceIP120/minute, global16/second. +# Hashing concurrency: at most2 derivations per API replica; no unbounded queue. + APP_ENV=dev - -SERVER_HOST=0.0.0.0 -SERVER_PORT=8080 -SERVER_READ_HEADER_TIMEOUT=10s -SERVER_READ_TIMEOUT=60s -SERVER_SHUTDOWN_TIMEOUT=10s -# Предел размера тела запроса (байт): защищает реплику от чтения огромного тела -# до валидации. Для вложений LAB4 (до 10 MiB) значение нужно поднять. SERVER_MAX_BODY_BYTES=262144 - -LOG_LEVEL=info -LOG_FORMAT=json - -# Synthetic credentials for the local stand only; override in .env for anything else. -POSTGRES_HOST=localhost -POSTGRES_PORT=5432 -POSTGRES_DATABASE=messenger -POSTGRES_USER=messenger -POSTGRES_PASSWORD=messenger -POSTGRES_SSL_MODE=disable -POSTGRES_MAX_CONNS=10 -POSTGRES_MIN_CONNS=1 -POSTGRES_MAX_CONN_LIFETIME=1h -POSTGRES_MAX_CONN_IDLE_TIME=30m -POSTGRES_CONNECT_TIMEOUT=5s -POSTGRES_QUERY_TIMEOUT=5s - -REDIS_ENABLED=true -REDIS_HOST=localhost -REDIS_PORT=6379 -REDIS_PASSWORD= -REDIS_DB=0 -# -1 disables go-redis retries; 0 keeps the library default (3 retries). -REDIS_MAX_RETRIES=-1 -REDIS_DIAL_TIMEOUT=300ms -REDIS_READ_TIMEOUT=200ms -REDIS_WRITE_TIMEOUT=200ms -REDIS_POOL_SIZE=10 - -CACHE_ENABLED=true -CACHE_CHAT_LIST_TTL=5m -CACHE_LOCK_TTL=10s -CACHE_LOCK_WAIT_TIMEOUT=2s - SESSION_TTL_SECONDS=3600 - -# Retention of a message Idempotency-Key in the shared store; contract 1.3.0 -# requires at least 24 h. IDEMPOTENCY_TTL_SECONDS=86400 - -# Lab3 stand (compose.yaml): number of API replicas behind the LB and per-replica -# CPU/RAM limits. Track 1 varies them to compare 1/2/4 replicas at a fixed total -# budget, e.g. API_REPLICAS=4 API_CPU_LIMIT=0.25 API_MEM_LIMIT=192M. API_REPLICAS=2 API_CPU_LIMIT=0.50 API_MEM_LIMIT=256M - -# Connections of ONE API replica to PostgreSQL; the total is replicas × value. -# Track 1 checks whether the shared connection budget becomes the saturation -# point: at 4 replicas the default 10 means 40 connections against one database. -POSTGRES_MAX_CONNS=10 - -# CPU quota of the shared database. Track 1 shows it is the stand's saturation -# point: the API uses a fraction of its budget while PostgreSQL sits at its own. POSTGRES_CPU_LIMIT=0.50 - -# Memory quota of the shared database. The track 1 series r/g/pool were measured -# with 512M, the db1cpu control — with 384M (see evidence/track1/profile-*.json). -POSTGRES_MEM_LIMIT=192M - -# Loopback port of the HAProxy operator page (UP/DOWN of every replica). -LB_STATS_PORT=8404 - -# --- Lab4: private S3 object store (SeaweedFS) ------------------------------- -# Synthetic local application credentials. infra/s3/s3.json must contain the -# same app values; scripts/check_s3_creds.py enforces that before the stand starts. -# Admin credentials live only in infra/s3/s3.json and s3-init defaults; never put -# them in .env, because the API service loads this file. -S3_ENDPOINT=http://localhost:8333 -S3_PUBLIC_ENDPOINT=http://127.0.0.1:8333 -S3_PORT=8333 -S3_REGION=us-east-1 +POSTGRES_MEM_LIMIT=320M +POSTGRES_MAX_CONNS=10 S3_BUCKET=messenger-attachments -S3_ACCESS_KEY_ID=lab4app -S3_SECRET_ACCESS_KEY=lab4app-secret - -# Attachment limits from contract 1.5.0. MAX_UPLOAD_BYTES=10485760 MAX_IMAGE_PIXELS=40000000 -# Presigned upload lifetime and the sweeper's safety window. S3_PRESIGN_TTL=5m S3_SWEEP_INTERVAL=1m S3_SWEEP_GRACE=10m -# --- Lab5: durable queues and async image processing ------------------------- -# Synthetic broker credentials for the local Compose stand. The relay/worker -# connect inside the compose network; the management UI is published only on -# loopback by compose.yaml. -BROKER_USER=messenger -BROKER_PASSWORD=messenger -BROKER_VHOST=messenger -BROKER_URL=amqp://messenger:messenger@broker:5672/messenger -BROKER_EXCHANGE=attachments.jobs -BROKER_QUEUE=attachment.process.v1 -BROKER_DLX=attachments.dlx -BROKER_DLQ=attachment.process.dead -BROKER_MANAGEMENT_PORT=15672 -BROKER_CPU_LIMIT=0.50 -BROKER_MEM_LIMIT=384M - -# Worker process bounds. Concurrency=1 is the safe default for a 40 MP image on -# the course VM; raise it together with WORKER_MEM_LIMIT. WORKER_CONCURRENCY=1 WORKER_PREFETCH=1 WORKER_CPU_LIMIT=1.00 WORKER_MEM_LIMIT=1G -WORKER_SHUTDOWN_TIMEOUT=30s -WORKER_HEALTH_PORT=8081 - -# Shared job contract. The API chooses the pipeline version for new uploads. +BROKER_CPU_LIMIT=0.50 +BROKER_MEM_LIMIT=384M PROCESSING_PIPELINE_VERSION=1 PROCESSING_MAX_ATTEMPTS=5 -PROCESSING_JOB_TIMEOUT=120s -PROCESSING_LEASE_TTL=180s -PROCESSING_HEARTBEAT=30s +PROCESSING_JOB_TIMEOUT=60s +PROCESSING_LEASE_TTL=90s +PROCESSING_HEARTBEAT=15s PROCESSING_RETRY_BASE=2s PROCESSING_RETRY_CAP=60s - -# Outbox relay and lease reaper. OUTBOX_POLL_INTERVAL=1s OUTBOX_CLAIM_TTL=30s OUTBOX_BATCH=20 @@ -148,9 +69,6 @@ OUTBOX_RECONCILE_AFTER=5m OUTBOX_RETENTION=168h RELAY_CPU_LIMIT=0.25 RELAY_MEM_LIMIT=128M -RELAY_HEALTH_PORT=8082 - -# Staging cleanup and admission control. STAGING_ORPHAN_GRACE=1h STAGING_FAILED_RETENTION=168h ADMISSION_MAX_PENDING_PER_USER=20 @@ -158,19 +76,10 @@ ADMISSION_MAX_PENDING=200 ADMISSION_MAX_STAGED_BYTES=2147483648 ADMISSION_MAX_CONCURRENT_UPLOADS=8 -# --- Lab6: observability ----------------------------------------------------- -# SDK/Collector settings; OTLP traffic must never carry message bodies, -# attachment bytes, credentials or user/chat/message ids as metric labels. -# Service names are set per service in compose.yaml (API/worker/relay must differ). -OTEL_EXPORTER_OTLP_ENDPOINT=http://otel-collector:4318 -OTEL_EXPORTER_OTLP_PROTOCOL=http/protobuf -OTEL_RESOURCE_ATTRIBUTES=deployment.environment.name=lab -OTEL_METRIC_EXPORT_INTERVAL=15000 +# Telemetry is part of the full stand, not a plaintext optional profile. TELEMETRY_ENABLED=1 -PROMETHEUS_PORT=9090 -LOKI_PORT=3100 -TEMPO_PORT=3200 -GRAFANA_PORT=3000 +OTEL_TRACES_SAMPLER=always_on +OTEL_METRIC_EXPORT_INTERVAL=5000 OTEL_COLLECTOR_CPU_LIMIT=0.25 OTEL_COLLECTOR_MEM_LIMIT=192M PROMETHEUS_CPU_LIMIT=0.50 diff --git a/.github/workflows/app.yml b/.github/workflows/app.yml index 67a411d..166985b 100644 --- a/.github/workflows/app.yml +++ b/.github/workflows/app.yml @@ -1,17 +1,15 @@ name: Application - on: [push, pull_request] - permissions: contents: read env: - GO_VERSION: "1.27.0" - GOLANGCI_LINT_VERSION: v2.13.2 + GO_VERSION: "1.27.3" + GOLANGCI_LINT_VERSION: v2.15.0 jobs: - lint: - name: Lint + quality: + name: Go invariants and static checks runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -19,107 +17,44 @@ jobs: with: go-version: ${{ env.GO_VERSION }} cache: true - - run: make lint - - unit-test: - name: Unit tests - needs: lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - cache: true - - run: make unit-test - - build: - name: Docker build - needs: unit-test - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - uses: docker/setup-buildx-action@v3 - - uses: docker/build-push-action@v6 - with: - context: . - push: false - tags: mtusi-messenger:ci + - run: make sqlc generate-mocks + - run: make lint unit-test stand: - name: Lab6 stand scenario (lab5 base) - needs: build + name: Lab7 verified TLS and retained features + needs: quality runs-on: ubuntu-latest - timeout-minutes: 20 - steps: - - uses: actions/checkout@v4 - - run: cp .env.example .env && sed -i 's/^TELEMETRY_ENABLED=.*/TELEMETRY_ENABLED=0/' .env - - run: ./scripts/init-secrets.sh - - run: docker compose --env-file .env config --quiet - - run: docker compose --env-file .env up -d --build - - name: Wait for readiness through the load balancer - run: | - for attempt in $(seq 1 60); do - if curl -fsS -o /dev/null http://localhost:8080/health/ready; then exit 0; fi - sleep 2 - done - docker compose --env-file .env ps - exit 1 - - name: Public smoke through the LB - run: make test - - name: Attachment negative scenarios - run: make test-attachments - - name: Presigned direct upload (async complete) - run: make test-presign - - name: Worker process is separate and healthy - run: docker compose --env-file .env ps worker relay broker - - name: Async worker and broker durability - run: make test-queue - - name: Track 2 duplicate and stale-version harness - run: python3 scripts/lab5_track2.py --reps 1 - - name: Parallel idempotency through the LB - run: python3 student-tests/idempotency_parallel.py --base-url http://localhost:8080 - - name: LB removes a not-ready replica - run: make test-lb-readiness - - name: Upload, stop the serving replica, download through another - run: python3 student-tests/attachment_failover.py --base-url http://localhost:8080 - - name: Stop one API replica and keep writing - run: make test-failover ACTION_SCRIPT=scripts/stop-one.sh - - name: Logs on failure - if: failure() - run: docker compose --env-file .env logs --tail 100 api worker relay - - if: always() - run: docker compose --env-file .env down -v - - observability: - name: Lab6 observability stand - needs: build - runs-on: ubuntu-latest - timeout-minutes: 25 + timeout-minutes: 30 steps: - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + cache: true + - uses: actions/setup-python@v5 + with: + python-version: "3.14" - run: cp .env.example .env - - run: ./scripts/init-secrets.sh - - run: docker compose --env-file .env --profile telemetry config --quiet - - run: docker compose --env-file .env --profile telemetry up -d --build - - name: Validate Prometheus configuration and rules + - name: Build, initialize, unseal and start isolated stand + run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci up + - name: Public HTTPS and trust + run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test test-security + - name: Internal identities and permissions + run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test-lab7 + - name: Preserved asynchronous attachment features + run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test-attachments test-presign test-queue test-idempotency + - name: Telemetry configuration and all three signals run: | - docker compose --env-file .env --profile telemetry exec -T prometheus promtool check config /etc/prometheus/prometheus.yml - docker compose --env-file .env --profile telemetry exec -T prometheus sh -c 'promtool check rules /etc/prometheus/rules/*.yml' - - name: Wait for readiness through the LB - run: | - for attempt in $(seq 1 60); do - if curl -fsS -o /dev/null http://localhost:8080/health/ready; then exit 0; fi - sleep 2 - done - docker compose --env-file .env ps - exit 1 - - name: Public smoke with telemetry enabled - run: make test - - name: Observability and privacy checks - run: make test-observability - - name: Logs on failure - if: failure() - run: docker compose --env-file .env --profile telemetry logs --tail 120 api worker relay otel-collector prometheus loki tempo grafana - - if: always() - run: docker compose --env-file .env --profile telemetry down -v + docker compose --project-name mtusi-lab7-ci --env-file .env exec -T prometheus promtool check config /etc/prometheus/prometheus.yml + make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test-observability + - name: Persist data through operator restart + run: make COMPOSE_PROJECT_NAME=mtusi-lab7-ci test-persistence ACTION_SCRIPT=scripts/restart.sh + - name: Publish sanitized evidence + if: always() + uses: actions/upload-artifact@v4 + with: + name: lab7-evidence + path: evidence/lab7/ + - name: Isolated runner cleanup + if: always() + run: docker compose --project-name mtusi-lab7-ci --env-file .env down -v diff --git a/Dockerfile b/Dockerfile index e1f5ae4..16a893b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,11 @@ # syntax=docker/dockerfile:1.7 -ARG GO_VERSION=1.27.1 +ARG GO_VERSION=1.27.3 ARG ALPINE_VERSION=3.22 +ARG GO_IMAGE_DIGEST=sha256:fa3d596898d9f126af7c01d14ee7597bab3f39cccf392ef36b69fe77cd681f18 +ARG ALPINE_IMAGE_DIGEST=sha256:49340b346798875b5592e5d420241f2f9cfba5f47e62ebb1446a1b34734e898f -FROM golang:${GO_VERSION}-alpine AS build +FROM golang:${GO_VERSION}-alpine@${GO_IMAGE_DIGEST} AS build # Platform of the produced binaries. Left empty on purpose: the classic builder # does not supply these args, and the previous hardcoded `amd64` default silently # produced x86-64 binaries inside an arm64 image. Those ran under emulation and @@ -55,7 +57,7 @@ RUN CGO_ENABLED=0 GOOS=${TARGETOS} GOARCH=${TARGETARCH} \ -ldflags="-s -w -X main.version=${VERSION}" \ -o /out/jobctl ./cmd/jobctl -FROM alpine:${ALPINE_VERSION} AS runtime +FROM alpine:${ALPINE_VERSION}@${ALPINE_IMAGE_DIGEST} AS runtime RUN apk add --no-cache ca-certificates wget \ && addgroup -S -g 10001 app \ && adduser -S -D -H -u 10001 -G app app @@ -72,6 +74,6 @@ USER 10001:10001 EXPOSE 8080 STOPSIGNAL SIGTERM HEALTHCHECK --interval=10s --timeout=3s --start-period=5s --retries=3 \ - CMD wget -q -O /dev/null "http://127.0.0.1:${SERVER_PORT:-8080}/health/live" || exit 1 + CMD wget -q -O /dev/null http://127.0.0.1:8084/health/live || exit 1 ENTRYPOINT ["/usr/local/bin/messenger"] diff --git a/Makefile b/Makefile index 9561a9a..995db5f 100644 --- a/Makefile +++ b/Makefile @@ -1,32 +1,100 @@ PYTHON ?= python3 +GO ?= go VERSION ?= $(shell git describe --always --dirty 2>/dev/null || echo dev) -export VERSION -# Lab1–lab6 base still serves plain HTTP on 8080; the lab7 implementation moves -# the stand to the contract default https://localhost:8443. -BASE_URL ?= http://localhost:8080 -CA_FILE ?= +BASE_URL ?= https://localhost:8443 +LAB7_SECRETS_DIR ?= secrets/lab7 +CA_FILE ?= $(LAB7_SECRETS_DIR)/pki/operator/current/ca.crt ACTION_SCRIPT ?= PIPELINE ?= 2 -TLS_ARGS = $(if $(CA_FILE),--ca-file "$(CA_FILE)",) +ROLE ?= api +CERT_TTL ?= 1h +TLS_ARGS = --ca-file "$(CA_FILE)" +COMPOSE_BIN ?= docker compose +COMPOSE_FILE ?= compose.yaml +ENV_FILE ?= .env +COMPOSE = $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) PYTHON_LOCAL = env -u HTTP_PROXY -u HTTPS_PROXY -u ALL_PROXY -u http_proxy -u https_proxy -u all_proxy NO_PROXY=localhost,127.0.0.1,::1 no_proxy=localhost,127.0.0.1,::1 $(PYTHON) +LOCAL_BIN := $(CURDIR)/bin +GOLANGCI_LINT_VERSION ?= v2.15.0 +GOLANGCI_LINT := $(LOCAL_BIN)/golangci-lint +OPENAPI_SPEC := contracts/openapi.json +OGEN_CONFIG := .ogen.yml +OAS_DIR := internal/transport/rest/internal/oas -.PHONY: help check validate test test-attachments test-presign load test-persistence test-failover test-security smoke-local load-local test-idempotency test-lb-readiness test-observability test-slo up up-base init-secrets down ps logs +-include .env +export +ENV_KEYS := $(shell sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' .env 2>/dev/null) +CLEAN_ENV = env $(addprefix -u ,$(ENV_KEYS)) + +.DEFAULT_GOAL := help +.PHONY: help check validate prepare build bootstrap up down ps logs test test-security test-lab7 test-pki auth-budget pki-issue pki-renew renew-watch bao-unseal test-attachments test-presign test-queue test-faults test-track2 test-observability test-slo test-idempotency test-lb-readiness load test-persistence test-failover jobs-failed replay reprocess unit-test integration-test test-db-up test-db-down dev-up dev-down dev-reload migrate generate generate-api generate-mocks sqlc cover lint help: - @echo "check: offline structure; validate: full OpenAPI (requirements-dev.txt); test: running API; load: synthetic writes" - @echo "up: lab6 stand with telemetry profile; up-base: lab5 regression without telemetry" - @echo "down/ps/logs: same profile; test-observability/test-slo: lab6 checks" + @echo "prepare/build/up: local PKI, image, operator Bao init/unseal and full verified-TLS stand" + @echo "test/test-security/test-lab7: public HTTPS, external trust, complete internal security probes" + @echo "test-pki: 3 isolated lifecycle experiments; auth-budget: measured Argon2/login budget" + @echo "pki-issue/pki-renew/renew-watch ROLE=api CERT_TTL=1h; bao-unseal: operator recovery" check: $(PYTHON) scripts/check_contract.py - $(PYTHON) scripts/check_s3_creds.py validate: $(PYTHON) scripts/validate_openapi.py +prepare: + $(PYTHON_LOCAL) scripts/securityctl.py prepare + +build: prepare + $(COMPOSE) build api + +bootstrap: + $(PYTHON_LOCAL) scripts/securityctl.py bootstrap + +up: build + $(PYTHON_LOCAL) scripts/securityctl.py up + +down: + $(COMPOSE) down + +ps: + $(COMPOSE) ps + +logs: + $(COMPOSE) logs -f --tail 100 + +bao-unseal: + $(PYTHON_LOCAL) scripts/securityctl.py unseal + +pki-issue: + $(PYTHON_LOCAL) scripts/securityctl.py issue "$(ROLE)" --ttl "$(CERT_TTL)" + +pki-renew: + $(PYTHON_LOCAL) scripts/securityctl.py renew "$(ROLE)" --ttl "$(CERT_TTL)" + +renew-watch: + $(PYTHON_LOCAL) scripts/securityctl.py renew "$(ROLE)" --ttl "$(CERT_TTL)" --watch --interval 1 + +renewer: + $(PYTHON_LOCAL) scripts/lab7_renewer.py --interval 1800 --ttl "$(CERT_TTL)" + +renew-once: + $(PYTHON_LOCAL) scripts/lab7_renewer.py --once --ttl "$(CERT_TTL)" --output evidence/lab7/renewer.json + test: $(PYTHON_LOCAL) tests/smoke.py --base-url "$(BASE_URL)" $(TLS_ARGS) +test-security: + $(PYTHON_LOCAL) tests/security.py --base-url "$(BASE_URL)" $(TLS_ARGS) + +test-lab7: + $(PYTHON_LOCAL) student-tests/lab7_security.py --base-url "$(BASE_URL)" $(TLS_ARGS) --output evidence/lab7/security.json + +test-pki: + $(PYTHON_LOCAL) scripts/lab7_track2.py --reps 3 --duration 30 --output evidence/lab7/track2.json + +auth-budget: + $(PYTHON_LOCAL) scripts/lab7_auth_benchmark.py --api $(TLS_ARGS) --output evidence/lab7/auth.json + test-attachments: $(PYTHON_LOCAL) student-tests/attachments_negative.py --base-url "$(BASE_URL)" $(TLS_ARGS) @@ -42,7 +110,6 @@ test-faults: test-track2: $(PYTHON_LOCAL) scripts/lab5_track2.py --base-url "$(BASE_URL)" $(TLS_ARGS) -# Lab6 observability and SLO checks (stand must be running with the telemetry profile). test-observability: $(PYTHON_LOCAL) scripts/check_evidence.py $(PYTHON_LOCAL) scripts/lab6_verify.py --base-url "$(BASE_URL)" $(TLS_ARGS) @@ -50,154 +117,78 @@ test-observability: test-slo: $(PYTHON_LOCAL) scripts/lab6_track2.py --base-url "$(BASE_URL)" $(TLS_ARGS) +test-idempotency: + $(PYTHON_LOCAL) student-tests/idempotency_parallel.py --base-url "$(BASE_URL)" $(TLS_ARGS) + +test-lb-readiness: + scripts/lb_readiness_check.sh + load: $(PYTHON_LOCAL) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS) test-persistence: - @test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable restart hook"; exit 2) + @test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT=scripts/restart.sh"; exit 2) $(PYTHON_LOCAL) tests/resilience.py --mode persistence --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS) test-failover: - @test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT to your implemented executable stop-one hook"; exit 2) + @test -n "$(ACTION_SCRIPT)" || (echo "Set ACTION_SCRIPT=scripts/stop-one.sh"; exit 2) $(PYTHON_LOCAL) tests/resilience.py --mode failover --action-script "$(ACTION_SCRIPT)" --base-url "$(BASE_URL)" $(TLS_ARGS) -# Lab7: external endpoint must reject an untrusted CA; internal mTLS is checked -# by the student's own tests per contracts/trust-matrix.md. -test-security: - $(PYTHON_LOCAL) tests/security.py --base-url "$(BASE_URL)" $(TLS_ARGS) - -# Локальный запуск без прокси: в окружении автора HTTP(S)_PROXY ломает localhost. -smoke-local: - $(PYTHON_LOCAL) tests/smoke.py --base-url "$(BASE_URL)" $(TLS_ARGS) - -load-local: - $(PYTHON_LOCAL) tests/load.py --base-url "$(BASE_URL)" $(TLS_ARGS) - -# Собственная проверка уровня 4: параллельные повторы одного Idempotency-Key -# через LB обязаны создать ровно одно сообщение. -test-idempotency: - $(PYTHON_LOCAL) student-tests/idempotency_parallel.py --base-url "$(BASE_URL)" $(TLS_ARGS) - -# Собственная проверка уровня 4: LB обязан убрать из ротации реплику, которая -# осталась доступной, но потеряла БД (readiness 503). -test-lb-readiness: - scripts/lb_readiness_check.sh - -COMPOSE_BIN ?= docker compose -COMPOSE_FILE ?= compose.yaml -ENV_FILE ?= .env - -TELEMETRY_PROFILE ?= telemetry - -up: init-secrets - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) --profile $(TELEMETRY_PROFILE) up -d --build - -# Lab5 regression without the telemetry profile. -up-base: init-secrets - TELEMETRY_ENABLED=0 $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) up -d --build - -init-secrets: - ./scripts/init-secrets.sh - -down: - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) --profile $(TELEMETRY_PROFILE) down - -ps: - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) --profile $(TELEMETRY_PROFILE) ps - -logs: - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) --profile $(TELEMETRY_PROFILE) logs -f --tail 100 - -# Operator views: the failed registry is PostgreSQL, the DLQ is a backstop. jobs-failed: - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) run --rm --entrypoint /usr/local/bin/jobctl worker failed + $(PYTHON_LOCAL) scripts/securityctl.py jobctl failed replay: @test -n "$(JOB)" || (echo "Set JOB="; exit 2) - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) run --rm --entrypoint /usr/local/bin/jobctl worker replay -job "$(JOB)" + $(PYTHON_LOCAL) scripts/securityctl.py jobctl replay -job "$(JOB)" reprocess: @test -n "$(ATTACHMENT)" || (echo "Set ATTACHMENT="; exit 2) - $(COMPOSE_BIN) --env-file $(ENV_FILE) -f $(COMPOSE_FILE) run --rm --entrypoint /usr/local/bin/jobctl worker reprocess -attachment "$(ATTACHMENT)" -pipeline "$(PIPELINE)" + $(PYTHON_LOCAL) scripts/securityctl.py jobctl reprocess -attachment "$(ATTACHMENT)" -pipeline "$(PIPELINE)" -.DEFAULT_GOAL := help -GO ?= go -APP_NAME ?= messenger -CMD_PKG := ./cmd/$(APP_NAME) -LOCAL_BIN := $(CURDIR)/bin -GOLANGCI_LINT_VERSION ?= v2.13.2 -GOLANGCI_LINT := $(LOCAL_BIN)/golangci-lint -OPENAPI_SPEC := contracts/openapi.json -OGEN_CONFIG := .ogen.yml -OAS_DIR := internal/transport/rest/internal/oas - --include .env -export - -# .env feeds local tooling, but its application variables must not leak into the -# Go test process: the config tests assert defaults and the dev YAML, so an -# ambient REDIS_ENABLED/CACHE_ENABLED would fail them. -ENV_KEYS := $(shell sed -n 's/^\([A-Za-z_][A-Za-z0-9_]*\)=.*/\1/p' .env 2>/dev/null) -CLEAN_ENV = env $(addprefix -u ,$(ENV_KEYS)) - -.PHONY: unit-test unit-test: $(CLEAN_ENV) $(GO) test -race -shuffle=on -count=1 -timeout=5m ./... -.PHONY: integration-test integration-test: - $(GO) test -tags=integration -p 1 -count=1 -timeout=15m ./internal/storage/postgres ./internal/storage/redis + $(PYTHON_LOCAL) scripts/lab7_integration.py -.PHONY: test-db-up test-db-down test-db-up: - @docker-compose -f docker-compose.local.yaml up -d --wait postgres redis + $(COMPOSE_BIN) --env-file $(ENV_FILE) -f docker-compose.local.yaml up -d --no-build postgres redis test-db-down: - @docker-compose -f docker-compose.local.yaml down + $(COMPOSE_BIN) --env-file $(ENV_FILE) -f docker-compose.local.yaml down -# не учитываем генеренные файлы, также cmd в подсчете покрытия -COVER_EXCLUDE ?= /(mocks|oas)/|/cmd/ +dev-up: build + COMPOSE_FILE=docker-compose.local.yaml $(PYTHON_LOCAL) scripts/securityctl.py up -.PHONY: cover -cover: - $(CLEAN_ENV) $(GO) test -race -shuffle=on -count=1 -timeout=5m \ - -covermode=atomic -coverprofile=coverage.out.tmp ./... - @grep -Ev '$(COVER_EXCLUDE)' coverage.out.tmp > coverage.out - @rm coverage.out.tmp - $(GO) tool cover -func=coverage.out | tail -n 1 - $(GO) tool cover -html=coverage.out +dev-down: + $(COMPOSE_BIN) --env-file $(ENV_FILE) -f docker-compose.local.yaml down + +dev-reload: + COMPOSE_FILE=docker-compose.local.yaml $(PYTHON_LOCAL) scripts/securityctl.py restart + +migrate: + $(COMPOSE) run --rm --no-deps migrate -.PHONY: generate generate: generate-api generate-mocks sqlc -.PHONY: generate-api generate-api: $(GO) run ./tools/specgen $(GO) tool ogen --config $(OGEN_CONFIG) --target $(OAS_DIR) --package oas --clean .cache/openapi.codegen.json -.PHONY: generate-mocks generate-mocks: $(GO) tool mockery -.PHONY: sqlc sqlc: $(GO) tool sqlc generate -.PHONY: dev-up dev-down dev-reload -dev-up: - @docker-compose -f docker-compose.local.yaml up -d --build +COVER_EXCLUDE ?= /(mocks|oas)/|/cmd/ +cover: + $(CLEAN_ENV) $(GO) test -race -shuffle=on -count=1 -timeout=5m -covermode=atomic -coverprofile=coverage.out.tmp ./... + @grep -Ev '$(COVER_EXCLUDE)' coverage.out.tmp > coverage.out + @rm coverage.out.tmp + $(GO) tool cover -func=coverage.out -dev-down: - @docker-compose -f docker-compose.local.yaml down - -dev-reload: - @docker-compose -f docker-compose.local.yaml up -d --build --force-recreate - -.PHONY: migrate -migrate: - $(GO) run ./cmd/migrate up - -$(GOLANGCI_LINT): +$(GOLANGCI_LINT): go.mod Makefile GOBIN=$(LOCAL_BIN) $(GO) install github.com/golangci/golangci-lint/v2/cmd/golangci-lint@$(GOLANGCI_LINT_VERSION) lint: $(GOLANGCI_LINT) diff --git a/REPORT.md b/REPORT.md index 9801db4..52a1fe6 100644 --- a/REPORT.md +++ b/REPORT.md @@ -1,37 +1,98 @@ # Отчёт — лабораторная 7 -- Автор, группа: TODO -- Целевая оценка; выбранный трек 5, если нужен: TODO -- Commit/PR: TODO после публикации -- Использованные источники, библиотеки и помощь ИИ: TODO +- Автор, группа: Кунецкий Владислав, bvt2303 +- Целевая оценка: 5; выбран трек 2 (жизненный цикл PKI/secrets) +- Commit/PR: ветка `lab7` в этом репозитории; commit/PR указывается после публикации +- Использованные источники: README lab7 и `contracts/trust-matrix.md`; OWASP Password Storage и File Upload Cheat Sheets; документация OpenBao (AppRole/cert auth, policies, PKI, production hardening); документация Go `crypto/tls`, `crypto/x509`, `os.Root`; документация HAProxy, RabbitMQ, SeaweedFS, Grafana/Loki/Tempo/Prometheus, OpenTelemetry Collector. ИИ-ассистент использовался для генерации и ревью кода, подготовки проверок и текста отчёта; все команды и наблюдения перепроверены на локальном стенде, секреты в отчёт не включались. ## Запуск из чистого clone -TODO: версии runtime/образов, prerequisites, команды создания локальных secrets/.env, build, миграций, запуска, ожидания готовности, тестов и остановки. Указать необходимые действия оператора. Не вставлять секреты. Отдельно указать безопасную остановку и команду намеренного удаления учебных данных. +Требования: Docker Desktop/Compose v2, Go 1.27.3, Python 3.9+, `make`, `openssl` в PATH. Внешние сервисы не нужны: все зависимости поднимаются из `compose.yaml`, версии образов закреплены digest. + +```sh +cp .env.example .env +make up # prepare -> build -> bootstrap -> up; создаёт локальные PKI/секреты +make test # публичный HTTPS smoke +make test-security # внешний TLS trust + отрицательные проверки +``` + +`make up` создаёт PKI, backend credentials, init/unseal OpenBao, применяет миграции, инициализирует S3 и поднимает стенд. Секреты и приватные ключи создаются локально; в Git, образы и telemetry они не попадают. CA для тестов: `secrets/lab7/pki/operator/current/ca.crt` (публичный сертификат; приватный ключ остаётся у оператора). Готовность — `GET /health/ready` по `https://localhost:8443` с проверкой CA и hostname. + +Дополнительные проверки: + +```sh +make test-lab7 # security.json: полный набор отрицательных проверок +make test-pki # 3 изолированных прогона PKI lifecycle (трек 2) +make auth-budget # измеренный бюджет Argon2/login +make renewer # foreground renewal/CRL loop; под supervisor — постоянный +make renew-once # один цикл renew всех ролей + sync-crls (evidence/lab7/renewer.json) +make validate PYTHON=.venv/bin/python +make unit-test integration-test +python3 scripts/lab7_scan.py --output evidence/lab7/scans +``` + +Остановка: `make down` (volumes сохраняются). Намеренное удаление учебных данных: `make down`, затем `docker compose --env-file .env down --volumes --remove-orphans`, удалить `secrets/lab7` и `~/.local/share/mtusi-lab7/` (root/unseal state). Команда удаляет все данные стенда и необратима. ## Архитектура и решения -TODO: схема процессов/хранилищ, источник истины, транзакционные границы, ограничения. Что перенесено из lab6, что изменено в этой работе. Соответствие переменных из .env.example реальной конфигурации. +Процессы: HAProxy LB (TLS ingress + mTLS к API), две Go API-реплики, worker, relay, PostgreSQL, Redis, RabbitMQ, SeaweedFS, OpenBao, OTel Collector с TLS-gateway, Prometheus, Loki, Tempo, Grafana. Одноразовые `migrate`, `s3init`, `volume-init`, `jobctl` — явные operator jobs. + +Клиент проходит TLS с проверкой CA и DNS SAN до LB; LB требует mTLS к каждой API-реплике, Go server требует точный URI `spiffe://mtusi/lb`. Для остальных связей — отдельные identities и проверка SAN/ACL по матрице: PostgreSQL native TLS + SCRAM и раздельные роли, S3 native TLS + SigV4 и role prefixes, RabbitMQ native mTLS с EXTERNAL-пользователями и ACL, Collector mTLS gateway с CN allowlist, Grafana→data sources mTLS с query-only allowlist, Redis TLS + ACL. OpenBao — не dev-mode, persistent raft; приложение аутентифицируется сертификатом, получает собственный KV и собственный PKI issue path; токены 60 s (max 300 s), KV freshness 60 s, admission закрывается за 1 s до ближайшего lease. + +Секреты версионируются: immutable `versions/` + атомарный regular-file `current-version`; Go и HAProxy перечитывают leaf/CRL на новых соединениях, trust changes требуют рестарта. `securityctl revoke` после `pki/revoke` явно вызывает OpenBao `GET /pki/crl/rotate` и публикует свежий CRL: `auto_rebuild` сам по себе обновляет только истёкший CRL, поэтому без rotate отозванный serial оставался бы вне bundle. Отдельный offline root/unseal state — у оператора (`~/.local/share/mtusi-lab7/`, 0700/0600). `make renewer` — host-side supervisor loop: каждые 30 минут выпускает новые leaf для всех ролей (service cert auth; operator fallback только при классифицированном expiry, иначе fail loudly), перезагружает native owners и вызывает `sync-crls`; CRL обновляются чаще срока действия, offline root CRL — за сутки до NextUpdate. Если стенд был остановлен дольше TTL, `bootstrap`/`make up` вызывает `recover_transport` и перевыпускает истёкшие role-leaf до старта зависимостей (`expired_identities_renewed`). Loop не монтируется в app-контейнеры, потому что ему нужен Docker CLI для reload native services. Контейнеры: non-root, read_only где совместимо, `no-new-privileges`, drop ALL capabilities (кроме объяснённых), resource limits, отдельные сети `default`/`observability`/`edge`; наружу опубликованы только нужный TLS ingress и локальные admin-интерфейсы. + +Из lab6 перенесены API/worker/relay, асинхронные вложения с outbox, идемпотентность, кэш/лимиты и наблюдаемость. В lab7 добавлены: TLS/mTLS на всех границах, OpenBao с cert auth и scoped policies, PKI lifecycle (renewal/expiry/revocation/CA rollover), Argon2id, общий login rate limit, hardening контейнеров, модель угроз и scan triage. Контракт OpenAPI 1.7.0 не менялся; публичные тесты не ослаблялись. ## Доказательства критериев | Критерий README | Команда/сценарий | Наблюдаемый результат | Файл доказательства | | --- | --- | --- | --- | -| Публичный smoke | make test | TODO | TODO | -| Остальные пункты уровня 3 | TODO | TODO | TODO | -| Все пункты уровня 4, если заявлен | TODO | TODO | TODO | -| Выбранный трек 5, если заявлен | TODO | TODO | TODO | +| Публичный smoke, HTTPS CA/hostname | `make test`; `make test-security` | trusted HTTPS проходит; недоверенный CA отклоняется ошибкой верификации | `evidence/lab7/security.json` (`public_ca_hostname`), `verification.json` | +| Argon2id salt/параметры | `make auth-budget`; `internal/platform/password` | m=19 MiB, t=2, p=1; host-бенчмарк Argon2 p50 15.9 ms, p95 17.5 ms; API login: 120 запросов, p50 5.3 ms, p95 58.8 ms, 429 при исчерпании бюджета; cgroup peak 74–84 MB | `evidence/lab7/auth.json` | +| LB→API обязательный mTLS + identity | `make test-lab7`; `make test-pki` | lb 200; нет cert/чужой CA/неверный URI — TLS rejection; отзыв старого LB отклоняется на свежем соединении | `security.json` (`mtls_and_telemetry_acl`), `native-revocation.json`, `track2.json` | +| Backend TLS и минимальные права | `make test-lab7` | PostgreSQL SQLSTATE 42501 для чужих таблиц; S3 prefix/COPY 403; Redis foreign key NOPERM; broker EXTERNAL ACL; Bao foreign KV/issuer 403 | `security.json` (`database_privileges`, `s3_prefix_acl`, `redis_tls_cache_acl`, `broker_external_acl`, `bao_api_policy`) | +| OpenBao non-dev, scoped, persistent | `securityctl.py up`, `audit-summary`; `make test-lab7` | root token отозван; app использует cert auth; unseal — у оператора; KV/issuer только свои; audit пишет login/issue/revoke/renew | `security.json`, `evidence/lab7/root-crl.json`, `restart-scope.json` | +| Контейнеры без privileged/host/socket | `runtime_container_network_isolation` | apps non-root/read_only; из соседнего namespace connection refused; лишние capabilities сняты | `security.json`, `compose.yaml` | +| Rate limit/body limit/ACL/logout/expiry | `make test-lab7`; `make test` | общий 429 + `Retry-After`; чужой чат/вложение недоступны; logout и DB expiry закрывают доступ; forged `X-User-Id` не меняет identity | `security.json` (`shared_rate_limit`, `http_acl_logout_expiry_bounds`, `real_async_pipeline`) | +| Уровень 4: broker и Collector mTLS | `broker_external_acl`, `mtls_and_telemetry_acl` | разные identities; разрешённая роль 200/публикация, запрещённая роль 403, нет cert/чужой CA — TLS rejection | `security.json` | +| Отказ plaintext/чужому CA на backends и telemetry | `make test-lab7` | PostgreSQL/Redis/S3 plaintext-канал отвергнут; S3 с чужим CA — ca_rejected; Loki не содержит sentinel-секретов | `security.json` (`plaintext_refusal`, `credential_log_sentinels`) | +| Уровень 4: rehash, отсутствие утечек, login DoS | `auth-budget`, `credential_log_sentinels` | rehash старого hash при успешном входе; пароли/токены не в логах; бюджет измерен | `auth.json`, `security.json` | +| Уровень 4: ротация secret/leaf, отзыв, expiry/sealed | `make test-pki`; `make test-lab7`; `native-revocation.json` | leaf renewal без пересборки; отзыв старого leaf; sealed Bao закрывает admission; CA prepare→issue→retire с проверкой старой identity | `track2.json`, `native-revocation.json` | +| Уровень 4: hardening + scans + threat model | `runtime_container_network_isolation`; `scans/summary.json`; `security/THREAT_MODEL.md` | 13 образов просканированы, все scanner exits 0; достижимых findings в коде приложения нет; остаточные CVE разобраны по применимости | `scans/summary.json`, `security/SCAN_TRIAGE.md`, `THREAT_MODEL.md` | +| Уровень 5, трек 2 | `make test-pki` | 3 изолированных прогона: renewal/expiry/sealed/revocation/CA rollover под нагрузкой; измерены ошибки и восстановление; fallback на plaintext/verify-off отсутствует | `evidence/lab7/track2.json`, `root-crl.json`, `native-revocation.json` | -TODO: добавить отдельную строку для каждого заявленного критерия. PASS без команды и наблюдения не является доказательством. Проверка инфраструктурного hook требует подтверждения, какие реальные процессы/хранилища перезапущены. +### Наблюдаемые отказы и восстановление + +| Воздействие | Ожидание | Наблюдение | Время восстановления / потеря | +| --- | --- | --- | --- | +| Рестарт стенда (`make test-persistence ACTION_SCRIPT=scripts/restart.sh`) | сообщение, полные байты вложения и сессия сохраняются | Full attachment bytes, confirmed message and existing session preserved; имена volumes не изменились | данные не потеряны | +| Остановка одной API-реплики (`make test-failover ACTION_SCRIPT=scripts/stop-one.sh`) | вторая реплика продолжает сервис | 93 успешные записи, 0 failed attempts; message/attachment/session сохранены; stateful-сервисы не перезапускались | first recovery 1.36 s (`evidence/lab7/resilience-final.txt`) | +| Последовательная остановка обеих реплик (`student-tests/replica_failover.py`) | сервис восстанавливается после возврата реплик | 91 и 100 успешных записей, 0 failed; история 191 сообщение, дублей/потерь нет | 1.786 s / 0.889 s | +| Истечение API leaf под нагрузкой | admission закрывается, процесс завершается в bound, затем recovery | ready закрыт; bounded process exit; после issue 1h API восстановлен; сообщение/вложение сохранены | recovery 0.85–1.70 s в прогонах | +| Sealed OpenBao | admission закрывается не позже 60 s freshness; после unseal — recovery | ready закрыт; после unseal API/worker/relay восстановлены; сообщение/вложение сохранены | recovery 1.9–2.1 s | +| Отзыв старого leaf LB/Collector | свежие и resumption-попытки отклоняются | `tls_certificate_rejected`; новый leaf работает | без потери данных | +| CA rollover prepare→issue→retire | overlap старого trust, затем отказ старой identity и работа нового pipeline | старый leaf проходит в overlap; после retire отклоняется; новый upload/readiness, Bao/Redis/telemetry пути и retained bytes проходят | см. `track2.json` | +| Истечение offline root CRL | CRL обновляется оператором до final 24h | refreshed signed CRL, NextUpdate > 24h; unexpired CRL не перегенерируется; Docker targets не мутируются | без простоя | ## Эксперименты и отказы -TODO: гипотеза, hardware/лимиты, версии, объём данных, профиль нагрузки, concurrency/arrival rate, длительность/прогрев, повторы, успешные RPS, ошибки, p50/p95/p99, CPU/RAM. Сохранить raw summary без tokens и объяснить ограничения измерения. +Методика трека 2: `scripts/lab7_track2.py` создаёт отдельный compose-проект на каждый повтор (свои порты и volumes), поднимает полный стенд, гоняет замкнутый HTTPS-клиент 2 rps и выполняет фазы: baseline → leaf renewal (20 s TTL, watcher) → intentional expiry → recovery → sealed Bao → recovery → LB leaf revoke → worker S3 secret rotation → CA prepare/issue/retire. Для каждой фазы фиксируются HTTP-статусы, ошибки по классам, latency, окна отказа и восстановление. После каждой фазы CA rollover сначала прогоняется полный публичный upload pipeline (retry с 15 s timeout, deadline 180 s), затем проверяются контрактные детали. Ограничения: один Docker Desktop host, single-node PostgreSQL/Redis/RabbitMQ/SeaweedFS/OpenBao, замкнутый клиент — это lifecycle-проба, а не capacity benchmark; оба API leaf намеренно истекают (total outage, не A/B failover); TLS tickets/cache отключены. -| Воздействие | Что ожидаем | Что наблюдали | Время восстановления / потеря данных | -| --- | --- | --- | --- | -| TODO | TODO | TODO | TODO | +Результат трека: `evidence/lab7/track2.json` — 3/3 повторений, `passed: true`. Leaf renewal: по 138–139 запросов на прогон, 0 ошибок, p95 ≈ 17–18 ms. Intentional expiry: наблюдаемое окно 6.4–7.5 s, recovery 0.6–1.6 s; sealed Bao: окно 6.5–7.6 s, recovery 1.8–3.3 s; отзыв LB leaf: окна ≈ 0.5 s; CA prepare/issue/retire: 192.4–196.6 s на фазу, 114–125 ошибок на 380–388 запросов (1–2 connection/TLS, 5–7 HTTP 502, 106–119 HTTP 503 при rolling restart/store reload), затем `final_recovery_control` — 59–60/60 успешных, 0 ошибок. `warm_pipeline` после каждой фазы: 1 попытка, 0 ошибок; retire перепубликовал 19 identities, старый LB отклонён с `TLSV1_ALERT_UNKNOWN_CA`. Ошибки ограничены окнами рестартов и перечислены в `load.observed_outage_windows`; fallback на plaintext/verify-off отсутствует. + +Argon2/login: `auth.json` содержит два измерения. Host-бенчмарк `hash_verify`: m=19 MiB, t=2, p=1, p50 15.9 ms, p95 17.5 ms, peak RSS 47.9 MB; это верхняя оценка стоимости Argon2, не API-контейнер. API-проба `api_auth`: 120 запросов, p50 5.3 ms, p95 58.8 ms, 429 при превышении account/source/global лимитов, cgroup peak 74–84 MB. Бюджет дериваций ограничен per-process, `ErrBusy` отдаётся как 429 с `Retry-After`, неизвестный пользователь тратит тот же Argon2-бюджет (dummy verify), rehash не блокирует успешный вход при занятом бюджете. Ограничение: host-бенчмарк не воспроизводит CPU-квоту API; API-проба измеряет реальный контейнер, но включает сеть и rate limiter. + +Сканирование: `scans/summary.json` — 13 образов, все scanner exits 0; `govulncheck` не нашёл достижимых symbol/package findings в коде приложения (module-only GO-2026-5932 разобран в triage). Остаточные HIGH/MEDIUM относятся к инфраструктурным образам (Grafana/Loki и др.) и ограничены сетевыми границами, non-root, resource limits и отсутствием публикации; детали и residual risk — в `security/SCAN_TRIAGE.md`. ## Ограничения и следующие шаги -TODO: какие отказы выдерживаются и какие нет; что не реализовано; где учебное упрощение; какое улучшение подтверждено, а какое пока гипотеза. +- Стенд single-node: нет HA для PostgreSQL/Redis/RabbitMQ/SeaweedFS/OpenBao; проверены отказ API-реплик и рестарты, но не отказ stateful-узла. +- Замкнутый клиент 2 rps и 30 s control-фазы — измерение lifecycle, не пропускная способность; p95 включает окна рестартов. +- Оба API leaf истекают намеренно, поэтому expiry-фаза измеряет fail-closed total outage и recovery, а не переключение между валидными leaf. +- TLS tickets/ClientSessionCache отключены: проверяется fresh connection и явная resumption-попытка, положительный resumption не заявляется. +- CA private key/unseal shares — offline у оператора; автоматизация их хранения не реализована и не заявляется. +- Модель оператора учебная: root key и 2-of-3 unseal shares лежат в одном operator-only каталоге на том же хосте (0700/0600), а operator-сертификат по политике эквивалентен root. Это не HSM и не раздельное хранение долей; отзыв root token — defense-in-depth, а не граница против скомпрометированного оператора. +- `jobctl`/миграции используют DB-роль оператора; отдельная least-privilege migration role — production-улучшение, не заявленное здесь. +- TLS-аудит покрывает заявленные mTLS/ACL-границы и negative TLS-проверки, но не содержит отдельного plaintext-refusal теста для PostgreSQL/Redis/S3 и sentinel-скана Loki/Tempo; это остаточный пробел, перечисленный в threat model. +- `make renewer` — host-side loop под supervisor; в production его место занимает оркестратор/короткоживущие workload identities. +- Следующие шаги: HA stateful-слоя, динамические DB credentials, автоматическая ротация backend secrets по TTL, более строгий контроль первого bootstrap root of trust. diff --git a/cmd/jobctl/main.go b/cmd/jobctl/main.go index 248b8b3..40ddce9 100644 --- a/cmd/jobctl/main.go +++ b/cmd/jobctl/main.go @@ -7,6 +7,8 @@ import ( "fmt" "log/slog" "os" + "os/signal" + "syscall" "time" "github.com/google/uuid" @@ -23,23 +25,35 @@ func main() { os.Exit(2) } - cfg, err := config.Load() - if err != nil { - fmt.Fprintln(os.Stderr, "load config:", err) + switch os.Args[1] { + case "failed", "replay", "reprocess", "duplicate", "inspect": + default: + usage() + os.Exit(2) + } + if err := run(); err != nil { + fmt.Fprintln(os.Stderr, "error:", err) os.Exit(1) } +} + +func run() error { + ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) + defer stop() + cfg, err := config.LoadOperator() + if err != nil { + return fmt.Errorf("load config: %w", err) + } log := logger.New(logger.WithLevel(cfg.SlogLevel()), logger.WithFormat(logger.FormatConsole)) slog.SetDefault(log) - ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second) + ctx, cancel := context.WithTimeout(ctx, 30*time.Second) defer cancel() store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second) if err != nil { - fmt.Fprintln(os.Stderr, "connect database:", err) - cancel() - os.Exit(1) //nolint:gocritic // main exits after DB setup failure + return fmt.Errorf("connect database: %w", err) } defer store.Close() @@ -47,18 +61,17 @@ func main() { switch os.Args[1] { case "failed": - runFailed(ctx, repo) + return runFailed(ctx, repo) case "replay": - runReplay(ctx, repo, cfg) + return runReplay(ctx, repo, cfg) case "reprocess": - runReprocess(ctx, repo, cfg) + return runReprocess(ctx, repo, cfg) case "duplicate": - runDuplicate(ctx, repo) + return runDuplicate(ctx, repo) case "inspect": - runInspect(ctx, repo) + return runInspect(ctx, repo) default: - usage() - os.Exit(2) + return fmt.Errorf("unknown command %q", os.Args[1]) } } @@ -72,119 +85,132 @@ func usage() { inspect -attachment ATTACHMENT_ID`) } -func runFailed(ctx context.Context, repo *postgres.PipelineRepository) { - flags := flag.NewFlagSet("failed", flag.ExitOnError) +func runFailed(ctx context.Context, repo *postgres.PipelineRepository) error { + flags := flag.NewFlagSet("failed", flag.ContinueOnError) limit := flags.Int("limit", 50, "maximum jobs") - _ = flags.Parse(os.Args[2:]) + if err := flags.Parse(os.Args[2:]); err != nil { + return err + } jobs, err := repo.ListFailedJobs(ctx, *limit) if err != nil { - fail(err) + return err } - printJSON(jobs) + return printJSON(jobs) } -func runReplay(ctx context.Context, repo *postgres.PipelineRepository, cfg config.Config) { - flags := flag.NewFlagSet("replay", flag.ExitOnError) +func runReplay(ctx context.Context, repo *postgres.PipelineRepository, cfg config.Config) error { + flags := flag.NewFlagSet("replay", flag.ContinueOnError) jobID := flags.String("job", "", "job id") attempts := flags.Int("attempts", cfg.Processing.MaxAttempts, "additional attempts") - _ = flags.Parse(os.Args[2:]) + if err := flags.Parse(os.Args[2:]); err != nil { + return err + } id, err := uuid.Parse(*jobID) if err != nil { - fail(fmt.Errorf("invalid job id: %w", err)) + return fmt.Errorf("invalid job id: %w", err) } job, err := repo.ReplayJob(ctx, id, *attempts) if err != nil { - fail(err) + return err } - printJSON(job) + return printJSON(job) } -func runReprocess(ctx context.Context, repo *postgres.PipelineRepository, cfg config.Config) { - flags := flag.NewFlagSet("reprocess", flag.ExitOnError) +func runReprocess(ctx context.Context, repo *postgres.PipelineRepository, cfg config.Config) error { + flags := flag.NewFlagSet("reprocess", flag.ContinueOnError) attachmentID := flags.String("attachment", "", "attachment id") version := flags.Int("pipeline", 2, "target pipeline version") - _ = flags.Parse(os.Args[2:]) + if err := flags.Parse(os.Args[2:]); err != nil { + return err + } if _, ok := imageproc.Pipeline(*version); !ok { - fail(fmt.Errorf("unsupported pipeline version %d", *version)) + return fmt.Errorf("unsupported pipeline version %d", *version) } id, err := uuid.Parse(*attachmentID) if err != nil { - fail(fmt.Errorf("invalid attachment id: %w", err)) + return fmt.Errorf("invalid attachment id: %w", err) } jobID, err := uuid.NewV7() if err != nil { - fail(err) + return err } - job, err := repo.Reprocess(ctx, id, *version, cfg.Processing.MaxAttempts, jobID) + job, err := repo.Reprocess( + ctx, + id, + *version, + cfg.Processing.MaxAttempts, + jobID, + ) if err != nil { - fail(err) + return err } - printJSON(job) + return printJSON(job) } -func runDuplicate(ctx context.Context, repo *postgres.PipelineRepository) { - flags := flag.NewFlagSet("duplicate", flag.ExitOnError) +func runDuplicate(ctx context.Context, repo *postgres.PipelineRepository) error { + flags := flag.NewFlagSet("duplicate", flag.ContinueOnError) attachmentID := flags.String("attachment", "", "attachment id") jobID := flags.String("job", "", "specific job id (old pipeline version)") - _ = flags.Parse(os.Args[2:]) - + if err := flags.Parse(os.Args[2:]); err != nil { + return err + } if *jobID != "" { id, err := uuid.Parse(*jobID) if err != nil { - fail(fmt.Errorf("invalid job id: %w", err)) + return fmt.Errorf("invalid job id: %w", err) } message, err := repo.DuplicateJob(ctx, id) if err != nil { - fail(err) + return err } - printJSON(message) - - return + return printJSON(message) } id, err := uuid.Parse(*attachmentID) if err != nil { - fail(fmt.Errorf("attachment or job id is required: %w", err)) + return fmt.Errorf("attachment or job id is required: %w", err) } message, err := repo.Duplicate(ctx, id) if err != nil { - fail(err) + return err } - printJSON(message) + return printJSON(message) } -func runInspect(ctx context.Context, repo *postgres.PipelineRepository) { - flags := flag.NewFlagSet("inspect", flag.ExitOnError) +func runInspect(ctx context.Context, repo *postgres.PipelineRepository) error { + flags := flag.NewFlagSet("inspect", flag.ContinueOnError) attachmentID := flags.String("attachment", "", "attachment id") - _ = flags.Parse(os.Args[2:]) + if err := flags.Parse(os.Args[2:]); err != nil { + return err + } id, err := uuid.Parse(*attachmentID) if err != nil { - fail(fmt.Errorf("invalid attachment id: %w", err)) + return fmt.Errorf("invalid attachment id: %w", err) } attachment, err := repo.GetForID(ctx, id) if err != nil { - fail(err) + return err } variants, err := repo.ListVariants(ctx, id, attachment.PipelineVersion) if err != nil { - fail(err) + return err } var jobOutput any @@ -194,22 +220,18 @@ func runInspect(ctx context.Context, repo *postgres.PipelineRepository) { jobOutput = job } - printJSON(map[string]any{ + return printJSON(map[string]any{ "attachment": attachment, "variants": variants, "job": jobOutput, }) } -func printJSON(value any) { +func printJSON(value any) error { encoder := json.NewEncoder(os.Stdout) encoder.SetIndent("", " ") if err := encoder.Encode(value); err != nil { - fail(err) + return fmt.Errorf("write output: %w", err) } -} - -func fail(err error) { - fmt.Fprintln(os.Stderr, "error:", err) - os.Exit(1) + return nil } diff --git a/cmd/messenger/main.go b/cmd/messenger/main.go index c6a1099..12fc803 100644 --- a/cmd/messenger/main.go +++ b/cmd/messenger/main.go @@ -5,18 +5,20 @@ import ( "errors" "fmt" "log/slog" + "net" "net/http" "os" "os/signal" - "sync" "syscall" "time" "mtusi-messenger/internal/config" "mtusi-messenger/internal/health" "mtusi-messenger/internal/logger" + "mtusi-messenger/internal/platform/bao" "mtusi-messenger/internal/platform/cache" "mtusi-messenger/internal/platform/objectstore" + "mtusi-messenger/internal/platform/tlsconfig" "mtusi-messenger/internal/platform/token" "mtusi-messenger/internal/service/attachment" "mtusi-messenger/internal/service/chat" @@ -32,58 +34,85 @@ import ( var version = "dev" func main() { - log := logger.New() + if err := execute(); err != nil { + logger.New().Error("api stopped with error", slog.Any("error", err)) + os.Exit(1) + } +} + +func execute() (err error) { + ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) + defer stop() + + serviceCtx, manager, err := bao.Start(ctx, "api") + if err != nil { + return fmt.Errorf("start secret manager: %w", err) + } + var shutdown func(context.Context) error + defer func() { + manager.Stop() + shutdownCtx, cancel := manager.ShutdownContext(serviceCtx) + defer cancel() + if shutdown != nil { + err = errors.Join(err, shutdown(shutdownCtx)) + } + err = errors.Join(err, manager.Close(serviceCtx)) + if errors.Is(context.Cause(serviceCtx), bao.ErrExpired) { + err = errors.Join(err, bao.ErrExpired) + } + }() cfg, err := config.Load() if err != nil { - log.Error("load config", slog.Any("error", err)) - os.Exit(1) + return fmt.Errorf("load config: %w", err) } - - log = logger.New( + log := logger.New( logger.WithLevel(cfg.SlogLevel()), logger.WithFormat(cfg.LoggerFormat()), ) - - shutdown, telemetryErr := telemetry.Setup(context.Background(), "messenger-api", version) - if telemetryErr != nil { - log.Warn("telemetry setup failed; continuing without OTLP", slog.Any("error", telemetryErr)) - shutdown = func(context.Context) error { return nil } + shutdown, err = telemetry.Setup(serviceCtx, "messenger-api", version) + if err != nil { + return fmt.Errorf("setup telemetry: %w", err) } log = telemetry.WrapLogger(log, "messenger-api", cfg.SlogLevel()) slog.SetDefault(log) - if err := run(cfg, log); err != nil { - log.Error("shutdown with error", slog.Any("error", err)) - shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) - _ = shutdown(shutdownCtx) - cancel() - os.Exit(1) - } - - shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) - defer cancel() - if err := shutdown(shutdownCtx); err != nil { - log.Warn("telemetry shutdown failed", slog.Any("error", err)) - } + return run( + serviceCtx, + cfg, + log, + manager, + ) } -func run(cfg config.Config, log *slog.Logger) error { - ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) - defer stop() - - store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, postgres.WithQueryTracer(telemetry.NewPGXTracer())) +func run( + ctx context.Context, + cfg config.Config, + log *slog.Logger, + manager *bao.Manager, +) (err error) { + store, err := postgres.New( + ctx, + cfg.Postgres, + time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, + postgres.WithQueryTracer(telemetry.NewPGXTracer()), + ) if err != nil { return fmt.Errorf("connect database: %w", err) } - defer store.Close() + defer func() { + err = errors.Join(err, finish(ctx, manager, func(context.Context) error { + store.Close() + return nil + })) + }() if err := telemetry.RegisterDBPool(store.PoolStats); err != nil { - log.Warn("register db pool metrics", slog.Any("error", err)) + log.WarnContext(ctx, "register db pool metrics", slog.Any("error", err)) } if err := telemetry.RegisterProcessMetrics(); err != nil { - log.Warn("register process metrics", slog.Any("error", err)) + log.WarnContext(ctx, "register process metrics", slog.Any("error", err)) } objectStoreConcrete, err := objectstore.New(objectstore.Config{ @@ -99,6 +128,7 @@ func run(cfg config.Config, log *slog.Logger) error { if err != nil { return fmt.Errorf("connect object store: %w", err) } + defer objectStoreConcrete.Close() objectStore := telemetry.WrapStore(objectStoreConcrete) @@ -120,39 +150,16 @@ func run(cfg config.Config, log *slog.Logger) error { log, ) - sweeper := attachment.NewSweeper( - pipelineRepository, - objectStore, - store, - cfg.S3.SweepGrace, - cfg.Staging.OrphanGrace, - cfg.Staging.FailedRetention, - cfg.S3.SweepInterval, - log, - ) - - sweepCtx, stopSweeper := context.WithCancel(context.Background()) - var sweepWait sync.WaitGroup - - sweepWait.Add(1) - - go func() { - defer sweepWait.Done() - - sweeper.Run(sweepCtx) - }() - - defer func() { - stopSweeper() - sweepWait.Wait() - }() - - redisCache, err := connectRedis(cfg.Redis) + redisCache, err := connectRedis(ctx, cfg.Redis) if err != nil { return err } - defer func() { _ = redisCache.Close() }() + defer func() { + err = errors.Join(err, finish(ctx, manager, func(context.Context) error { + return redisCache.Close() + })) + }() sessionRepo := session.Repository(store.Sessions()) chatRepo := chat.Repository(store.Chats()) @@ -177,7 +184,7 @@ func run(cfg config.Config, log *slog.Logger) error { ) } - log.Info("redis cache enabled", slog.String("host", cfg.Redis.Host), slog.Int("port", cfg.Redis.Port)) + log.InfoContext(ctx, "redis cache enabled", slog.String("host", cfg.Redis.Host), slog.Int("port", cfg.Redis.Port)) } ttl := time.Duration(cfg.Session.TTLSeconds) * time.Second @@ -201,58 +208,59 @@ func run(cfg config.Config, log *slog.Logger) error { if err != nil { return fmt.Errorf("build router: %w", err) } + router = rest.WithLoginLimits(router, store, rest.DefaultLoginLimits(), log) + loader, err := tlsconfig.New(tlsconfig.FilesFromEnv()) + if err != nil { + return fmt.Errorf("load server identity: %w", err) + } server := &http.Server{ - Addr: cfg.Addr(), - Handler: router, + Addr: net.JoinHostPort(cfg.Server.Host, "8080"), + Handler: admission(ctx, router), + TLSConfig: loader.Server("spiffe://mtusi/lb"), ReadHeaderTimeout: cfg.Server.ReadHeaderTimeout, ReadTimeout: cfg.Server.ReadTimeout, + BaseContext: func(net.Listener) context.Context { return ctx }, } - - errc := make(chan error, 1) - - go func() { - log.Info("server started", slog.String("addr", cfg.Addr())) - - if err := server.ListenAndServe(); err != nil && !errors.Is(err, http.ErrServerClosed) { - errc <- err - } - - close(errc) + healthServer := localHealthServer(ctx, health.New(pingers...), loader.VerifyTrust) + defer func() { + err = errors.Join(err, finish(ctx, manager, func(shutdownCtx context.Context) error { + results := make(chan error, 2) + for _, srv := range []*http.Server{server, healthServer} { + go func() { + shutdownErr := srv.Shutdown(shutdownCtx) + if shutdownErr != nil { + shutdownErr = errors.Join(shutdownErr, srv.Close()) + } + results <- shutdownErr + }() + } + return errors.Join(<-results, <-results) + })) }() + errc := make(chan error, 2) + go func() { errc <- server.ListenAndServeTLS("", "") }() + go func() { errc <- healthServer.ListenAndServe() }() + log.InfoContext(ctx, "server started", slog.String("addr", server.Addr)) + select { - case err, ok := <-errc: - if ok && err != nil { - return fmt.Errorf("listen: %w", err) - } - - return nil + case listenErr := <-errc: + return fmt.Errorf("listen: %w", listenErr) case <-ctx.Done(): + return nil } - - log.Info("shutdown signal received", slog.Duration("timeout", cfg.Server.ShutdownTimeout)) - - shutdownCtx, cancel := context.WithTimeout(context.Background(), cfg.Server.ShutdownTimeout) - defer cancel() - - if err := server.Shutdown(shutdownCtx); err != nil { - return fmt.Errorf("shutdown: %w", err) - } - - log.Info("server stopped") - - return nil } -func connectRedis(cfg config.Redis) (cache.LockStore, error) { +func connectRedis(ctx context.Context, cfg config.Redis) (cache.LockStore, error) { if !cfg.Enabled { return cache.NoOpCache{}, nil } - client, err := cache.NewRedis(cache.RedisConfig{ + client, err := cache.NewRedis(ctx, cache.RedisConfig{ Host: cfg.Host, Port: cfg.Port, + Username: cfg.Username, Password: cfg.Password, DB: cfg.DB, MaxRetries: cfg.MaxRetries, @@ -267,3 +275,63 @@ func connectRedis(cfg config.Redis) (cache.LockStore, error) { return client, nil } + +func finish(parent context.Context, manager *bao.Manager, cleanup func(context.Context) error) error { + manager.Stop() + ctx, cancel := manager.ShutdownContext(parent) + defer cancel() + done := make(chan error, 1) + go func() { done <- cleanup(ctx) }() + select { + case err := <-done: + return err + case <-ctx.Done(): + return fmt.Errorf("shutdown deadline: %w", ctx.Err()) + } +} + +func admission(ctx context.Context, next http.Handler) http.Handler { + return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + if ctx.Err() != nil && r.URL.Path != "/health/live" { + http.Error(w, "unavailable", http.StatusServiceUnavailable) + return + } + next.ServeHTTP(w, r) + }) +} + +func localHealthServer(ctx context.Context, checker *health.Checker, trust func() error) *http.Server { + mux := http.NewServeMux() + mux.HandleFunc("GET /health/live", func(w http.ResponseWriter, _ *http.Request) { + w.Header().Set("Content-Type", "application/json") + fmt.Fprintln(w, `{"status":"ok"}`) + }) + mux.HandleFunc("GET /health/ready", func(w http.ResponseWriter, _ *http.Request) { + if ctx.Err() != nil { + http.Error(w, "unavailable", http.StatusServiceUnavailable) + return + } + probeCtx, cancel := context.WithTimeout(ctx, 3*time.Second) + defer cancel() + if err := checker.Ping(probeCtx); err != nil || ctx.Err() != nil { + http.Error(w, "unavailable", http.StatusServiceUnavailable) + return + } + if trust != nil { + if err := trust(); err != nil { + http.Error(w, "unavailable", http.StatusServiceUnavailable) + return + } + } + w.Header().Set("Content-Type", "application/json") + fmt.Fprintln(w, `{"status":"ok"}`) + }) + return &http.Server{ + Addr: "127.0.0.1:8084", + Handler: mux, + ReadHeaderTimeout: 5 * time.Second, + ReadTimeout: 5 * time.Second, + WriteTimeout: 5 * time.Second, + BaseContext: func(net.Listener) context.Context { return ctx }, + } +} diff --git a/cmd/migrate/main.go b/cmd/migrate/main.go index d980b52..3d6d773 100644 --- a/cmd/migrate/main.go +++ b/cmd/migrate/main.go @@ -7,14 +7,16 @@ import ( "fmt" "log/slog" "os" + "os/signal" + "syscall" + "github.com/jackc/pgx/v5/stdlib" "github.com/pressly/goose/v3" "mtusi-messenger/internal/config" "mtusi-messenger/internal/logger" + "mtusi-messenger/internal/storage/postgres" "mtusi-messenger/internal/storage/postgres/migrations" - - _ "github.com/jackc/pgx/v5/stdlib" ) func main() { @@ -26,8 +28,10 @@ func main() { } } -func run(args []string) error { - cfg, err := config.Load() +func run(args []string) (err error) { + ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) + defer stop() + cfg, err := config.LoadOperator() if err != nil { return fmt.Errorf("load config: %w", err) } @@ -42,14 +46,14 @@ func run(args []string) error { command = args[0] } - db, err := sql.Open("pgx", cfg.Postgres.DSN()) + poolCfg, err := postgres.PoolConfig(cfg.Postgres) if err != nil { - return fmt.Errorf("open database: %w", err) + return fmt.Errorf("database config: %w", err) } + db := stdlib.OpenDB(*poolCfg.ConnConfig) + defer func() { err = errors.Join(err, db.Close()) }() - defer func() { _ = db.Close() }() - - pingCtx, cancel := context.WithTimeout(context.Background(), cfg.Postgres.ConnectTimeout) + pingCtx, cancel := context.WithTimeout(ctx, cfg.Postgres.ConnectTimeout) defer cancel() if err := db.PingContext(pingCtx); err != nil { @@ -62,27 +66,27 @@ func run(args []string) error { return fmt.Errorf("set dialect: %w", err) } - if err := goCommand(db, command); err != nil { + if err := goCommand(ctx, db, command); err != nil { return err } return nil } -func goCommand(db *sql.DB, command string) error { +func goCommand(ctx context.Context, db *sql.DB, command string) error { switch command { case "up": - return goose.Up(db, ".") + return goose.UpContext(ctx, db, ".") case "up-by-one": - return goose.UpByOne(db, ".") + return goose.UpByOneContext(ctx, db, ".") case "down": - return goose.Down(db, ".") + return goose.DownContext(ctx, db, ".") case "status": - return goose.Status(db, ".") + return goose.StatusContext(ctx, db, ".") case "version": - return goose.Version(db, ".") + return goose.VersionContext(ctx, db, ".") case "redo": - return goose.Redo(db, ".") + return goose.RedoContext(ctx, db, ".") default: return errors.New("unknown command: " + command + " (up, up-by-one, down, status, version, redo)") } diff --git a/cmd/relay/main.go b/cmd/relay/main.go index f349775..c4fff6e 100644 --- a/cmd/relay/main.go +++ b/cmd/relay/main.go @@ -6,6 +6,7 @@ import ( "errors" "fmt" "log/slog" + "net" "net/http" "os" "os/signal" @@ -18,6 +19,7 @@ import ( "mtusi-messenger/internal/domain" "mtusi-messenger/internal/logger" "mtusi-messenger/internal/outbox" + "mtusi-messenger/internal/platform/bao" "mtusi-messenger/internal/storage/postgres" "mtusi-messenger/internal/telemetry" ) @@ -27,69 +29,84 @@ const maxUnpublishedAge = 10 * time.Minute var version = "dev" func main() { - log := logger.New() - - cfg, err := config.Load() - if err != nil { - log.Error("load config", slog.Any("error", err)) + if err := execute(); err != nil { + logger.New().Error("relay stopped with error", slog.Any("error", err)) os.Exit(1) } +} - log = logger.New( +func execute() (err error) { + ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) + defer stop() + serviceCtx, manager, err := bao.Start(ctx, "relay") + if err != nil { + return fmt.Errorf("start secret manager: %w", err) + } + var shutdown func(context.Context) error + defer func() { + manager.Stop() + shutdownCtx, cancel := manager.ShutdownContext(serviceCtx) + defer cancel() + if shutdown != nil { + err = errors.Join(err, shutdown(shutdownCtx)) + } + err = errors.Join(err, manager.Close(serviceCtx)) + if errors.Is(context.Cause(serviceCtx), bao.ErrExpired) { + err = errors.Join(err, bao.ErrExpired) + } + }() + cfg, err := config.Load() + if err != nil { + return fmt.Errorf("load config: %w", err) + } + log := logger.New( logger.WithLevel(cfg.SlogLevel()), logger.WithFormat(cfg.LoggerFormat()), ) - - shutdown, telemetryErr := telemetry.Setup(context.Background(), "messenger-relay", version) - if telemetryErr != nil { - log.Warn("telemetry setup failed; continuing without OTLP", slog.Any("error", telemetryErr)) - shutdown = func(context.Context) error { return nil } + shutdown, err = telemetry.Setup(serviceCtx, "messenger-relay", version) + if err != nil { + return fmt.Errorf("setup telemetry: %w", err) } log = telemetry.WrapLogger(log, "messenger-relay", cfg.SlogLevel()) slog.SetDefault(log) - - if err := run(cfg, log); err != nil { - log.Error("shutdown with error", slog.Any("error", err)) - shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) - _ = shutdown(shutdownCtx) - cancel() - os.Exit(1) - } - - shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) - defer cancel() - if err := shutdown(shutdownCtx); err != nil { - log.Warn("telemetry shutdown failed", slog.Any("error", err)) - } + return run( + serviceCtx, + cfg, + log, + manager, + ) } type publisher struct { - cfg broker.Config - log *slog.Logger - mu sync.Mutex - conn *broker.Client + cfg broker.Config + mu sync.Mutex + conn *broker.Client + isClosed bool } -func (p *publisher) client() (*broker.Client, error) { +func (p *publisher) client(ctx context.Context) (*broker.Client, error) { p.mu.Lock() defer p.mu.Unlock() - + if p.isClosed || ctx.Err() != nil { + return nil, context.Canceled + } if p.conn != nil && p.conn.Connected() { return p.conn, nil } - if p.conn != nil { - _ = p.conn.Close() + if err := p.conn.Close(); err != nil { + return nil, fmt.Errorf("close disconnected broker: %w", err) + } p.conn = nil } - conn, err := broker.Dial(p.cfg) if err != nil { return nil, err } - + if ctx.Err() != nil { + return nil, errors.Join(context.Canceled, conn.Close()) + } p.conn = conn - return conn, nil } @@ -98,27 +115,23 @@ func (p *publisher) PublishConfirmed( routingKey string, message domain.JobMessage, ) error { - conn, err := p.client() + conn, err := p.client(ctx) if err != nil { return err } - if err := conn.PublishConfirmed(ctx, routingKey, message); err != nil { p.mu.Lock() if p.conn == conn { - _ = p.conn.Close() p.conn = nil } p.mu.Unlock() - - return err + return errors.Join(err, conn.Close()) } - return nil } -func (p *publisher) Connect() error { - _, err := p.client() +func (p *publisher) Connect(ctx context.Context) error { + _, err := p.client(ctx) return err } @@ -127,121 +140,165 @@ func (p *publisher) Connected() bool { p.mu.Lock() defer p.mu.Unlock() - return p.conn != nil && p.conn.Connected() + return !p.isClosed && p.conn != nil && p.conn.Connected() } -func (p *publisher) Close() { +func (p *publisher) Close() error { p.mu.Lock() - defer p.mu.Unlock() - - if p.conn != nil { - _ = p.conn.Close() - p.conn = nil + p.isClosed = true + conn := p.conn + p.conn = nil + p.mu.Unlock() + if conn != nil { + return conn.Close() } + return nil } func brokerConfig(cfg config.Config) broker.Config { return broker.Config{ URL: cfg.Broker.URL, Exchange: cfg.Broker.Exchange, - DLX: cfg.Broker.DLX, Queue: cfg.Broker.Queue, - DLQ: cfg.Broker.DLQ, ConnectTimeout: cfg.Broker.ConnectTimeout, ConfirmTimeout: cfg.Broker.ConfirmTimeout, Heartbeat: cfg.Broker.Heartbeat, Prefetch: cfg.Broker.Prefetch, + Role: "relay", + Producer: true, } } -func run(cfg config.Config, log *slog.Logger) error { +func run( + ctx context.Context, + cfg config.Config, + log *slog.Logger, + manager *bao.Manager, +) (err error) { if cfg.Broker.URL == "" { - return errors.New("BROKER_URL is required for relay") + return errors.New("broker url is required for relay") } - - ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) - defer stop() - - store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, postgres.WithQueryTracer(telemetry.NewPGXTracer())) + if err := requireLoopback(cfg.Relay.HealthAddr); err != nil { + return err + } + store, err := postgres.New( + ctx, + cfg.Postgres, + time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, + postgres.WithQueryTracer(telemetry.NewPGXTracer()), + ) if err != nil { return fmt.Errorf("connect database: %w", err) } - defer store.Close() + defer func() { + err = errors.Join(err, finish(ctx, manager, func(context.Context) error { + store.Close() + return nil + })) + }() if err := telemetry.RegisterDBPool(store.PoolStats); err != nil { - log.Warn("register db pool metrics", slog.Any("error", err)) + log.WarnContext(ctx, "register db pool metrics", slog.Any("error", err)) } if err := telemetry.RegisterProcessMetrics(); err != nil { - log.Warn("register process metrics", slog.Any("error", err)) + log.WarnContext(ctx, "register process metrics", slog.Any("error", err)) } - pub := &publisher{cfg: brokerConfig(cfg), log: log} - defer pub.Close() + pub := &publisher{cfg: brokerConfig(cfg)} + closeDone := make(chan error, 1) + stopClose := context.AfterFunc(ctx, func() { closeDone <- pub.Close() }) + defer stopClose() + defer func() { + err = errors.Join(err, finish(ctx, manager, func(shutdownCtx context.Context) error { + select { + case closeErr := <-closeDone: + return closeErr + case <-shutdownCtx.Done(): + return shutdownCtx.Err() + } + })) + }() - if err := pub.Connect(); err != nil { - log.Warn("broker is not reachable yet; relay will retry", slog.Any("error", err)) + if err := pub.Connect(ctx); err != nil { + log.WarnContext(ctx, "broker is not reachable yet; relay will retry", slog.Any("error", err)) } - relay := outbox.New(store.Pipeline(), pub, outbox.Config{ - Owner: "relay-" + cfg.Broker.Queue, - PollInterval: cfg.Outbox.PollInterval, - ClaimTTL: cfg.Outbox.ClaimTTL, - Batch: cfg.Outbox.Batch, - ReaperInterval: cfg.Outbox.ReaperInterval, - ReconcileAfter: cfg.Outbox.ReconcileAfter, - Retention: cfg.Outbox.Retention, - }, log) + relay := outbox.New( + store.Pipeline(), + pub, + outbox.Config{ + Owner: "relay-" + cfg.Broker.Queue, + PollInterval: cfg.Outbox.PollInterval, + ClaimTTL: cfg.Outbox.ClaimTTL, + Batch: cfg.Outbox.Batch, + ReaperInterval: cfg.Outbox.ReaperInterval, + ReconcileAfter: cfg.Outbox.ReconcileAfter, + Retention: cfg.Outbox.Retention, + }, + log, + ) if err := telemetry.RegisterRelayMetrics(store.Pipeline().OldestActiveJobAge, relay.Health, func(ctx context.Context) (int64, error) { return store.Pipeline().CountOverdueJobs(ctx, 30*time.Second) }); err != nil { - log.Warn("register relay metrics", slog.Any("error", err)) + log.WarnContext(ctx, "register relay metrics", slog.Any("error", err)) } - relayCtx, cancelRelay := context.WithCancel(ctx) - defer cancelRelay() - relayDone := make(chan struct{}) - go func() { defer close(relayDone) - - relay.Run(relayCtx) + relay.Run(ctx) }() - - server := healthServer(cfg.Relay.HealthAddr, store, pub, relay, log) - - go func() { - if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed { - log.Error("health server failed", slog.Any("error", err)) - } + server := healthServer( + ctx, + cfg.Relay.HealthAddr, + store, + pub, + relay, + ) + serverDone := make(chan error, 1) + go func() { serverDone <- server.ListenAndServe() }() + defer func() { + err = errors.Join(err, finish(ctx, manager, func(shutdownCtx context.Context) error { + serverErr := server.Shutdown(shutdownCtx) + if serverErr != nil { + serverErr = errors.Join(serverErr, server.Close()) + } + select { + case <-relayDone: + return serverErr + case <-shutdownCtx.Done(): + return errors.Join(serverErr, shutdownCtx.Err()) + } + })) }() - - <-ctx.Done() - cancelRelay() - <-relayDone - - shutdownCtx, cancel := context.WithTimeout(context.Background(), 10*time.Second) - defer cancel() - - return server.Shutdown(shutdownCtx) + select { + case <-ctx.Done(): + return nil + case serverErr := <-serverDone: + return fmt.Errorf("health listener: %w", serverErr) + } } func healthServer( + serviceCtx context.Context, addr string, store *postgres.Store, pub *publisher, relay *outbox.Relay, - _ *slog.Logger, ) *http.Server { mux := http.NewServeMux() - mux.HandleFunc("/health/live", func(w http.ResponseWriter, _ *http.Request) { + mux.HandleFunc("GET /health/live", func(w http.ResponseWriter, _ *http.Request) { writeHealth(w, http.StatusOK, map[string]any{"status": "ok"}) }) - mux.HandleFunc("/health/ready", func(w http.ResponseWriter, r *http.Request) { - ctx, cancel := context.WithTimeout(r.Context(), 3*time.Second) + mux.HandleFunc("GET /health/ready", func(w http.ResponseWriter, _ *http.Request) { + if serviceCtx.Err() != nil { + writeHealth(w, http.StatusServiceUnavailable, map[string]any{"status": "unavailable"}) + return + } + ctx, cancel := context.WithTimeout(serviceCtx, 3*time.Second) defer cancel() if err := store.Ping(ctx); err != nil { @@ -251,11 +308,8 @@ func healthServer( } if !pub.Connected() { - if err := pub.Connect(); err != nil { - writeHealth(w, http.StatusServiceUnavailable, map[string]any{"status": "unavailable"}) - - return - } + writeHealth(w, http.StatusServiceUnavailable, map[string]any{"status": "unavailable"}) + return } oldest, err := relay.Health(ctx) @@ -265,7 +319,7 @@ func healthServer( return } - if oldest > maxUnpublishedAge { + if oldest > maxUnpublishedAge || serviceCtx.Err() != nil { writeHealth(w, http.StatusServiceUnavailable, map[string]any{ "status": "unavailable", "outbox_oldest_seconds": int(oldest.Seconds()), @@ -284,6 +338,9 @@ func healthServer( Addr: addr, Handler: mux, ReadHeaderTimeout: 5 * time.Second, + ReadTimeout: 5 * time.Second, + WriteTimeout: 5 * time.Second, + BaseContext: func(net.Listener) context.Context { return serviceCtx }, } } @@ -292,3 +349,29 @@ func writeHealth(w http.ResponseWriter, status int, body map[string]any) { w.WriteHeader(status) _ = json.NewEncoder(w).Encode(body) } + +func requireLoopback(addr string) error { + host, _, err := net.SplitHostPort(addr) + if err != nil { + return fmt.Errorf("health listener address: %w", err) + } + ip := net.ParseIP(host) + if ip == nil || !ip.IsLoopback() { + return errors.New("health listener must bind a loopback ip") + } + return nil +} + +func finish(parent context.Context, manager *bao.Manager, cleanup func(context.Context) error) error { + manager.Stop() + ctx, cancel := manager.ShutdownContext(parent) + defer cancel() + done := make(chan error, 1) + go func() { done <- cleanup(ctx) }() + select { + case err := <-done: + return err + case <-ctx.Done(): + return fmt.Errorf("shutdown deadline: %w", ctx.Err()) + } +} diff --git a/cmd/s3init/main.go b/cmd/s3init/main.go index fa4e947..748885e 100644 --- a/cmd/s3init/main.go +++ b/cmd/s3init/main.go @@ -1,35 +1,38 @@ -// Command s3init bootstraps the private attachment bucket. It is idempotent: -// it runs before the API on every compose up, verifies the bucket and the -// application identity, and exits successfully when everything is in place. +// Command s3init idempotently creates the private attachment bucket using +// operator-only file credentials over the shared TLS trust boundary. package main import ( - "bytes" "context" "errors" "fmt" "log/slog" + "net" + "net/http" + "net/url" "os" + "os/signal" "strings" + "syscall" "time" "github.com/aws/aws-sdk-go-v2/aws" "github.com/aws/aws-sdk-go-v2/credentials" "github.com/aws/aws-sdk-go-v2/service/s3" "github.com/aws/smithy-go" - "github.com/google/uuid" + + "mtusi-messenger/internal/platform/secretfile" + "mtusi-messenger/internal/platform/tlsconfig" ) const bootstrapTimeout = 120 * time.Second type settings struct { - Endpoint string - Region string - Bucket string - AdminAccessKey string - AdminSecretKey string - AppAccessKey string - AppSecretKey string + Endpoint string + Region string + Bucket string + AccessKey string + SecretKey string } func main() { @@ -47,21 +50,16 @@ func run(log *slog.Logger) error { return err } - ctx, cancel := context.WithTimeout(context.Background(), bootstrapTimeout) + signalCtx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) + defer stop() + ctx, cancel := context.WithTimeout(signalCtx, bootstrapTimeout) defer cancel() - - admin := newClient(cfg, cfg.AdminAccessKey, cfg.AdminSecretKey) - app := newClient(cfg, cfg.AppAccessKey, cfg.AppSecretKey) - - if err := waitForBucket(ctx, admin, cfg.Bucket); err != nil { + client, transport, err := newClient(cfg) + if err != nil { return err } - - if err := probeAppIdentity(ctx, app, cfg.Bucket); err != nil { - return err - } - - if err := probeForbiddenPrefix(ctx, app, cfg.Bucket); err != nil { + defer transport.CloseIdleConnections() + if err := waitForBucket(ctx, client, cfg.Bucket); err != nil { return err } @@ -75,38 +73,60 @@ func run(log *slog.Logger) error { func loadSettings() (settings, error) { cfg := settings{ - Endpoint: strings.TrimSpace(os.Getenv("S3_ENDPOINT")), - Region: strings.TrimSpace(os.Getenv("S3_REGION")), - Bucket: strings.TrimSpace(os.Getenv("S3_BUCKET")), - AdminAccessKey: strings.TrimSpace(os.Getenv("S3_ADMIN_ACCESS_KEY")), - AdminSecretKey: strings.TrimSpace(os.Getenv("S3_ADMIN_SECRET_ACCESS_KEY")), - AppAccessKey: strings.TrimSpace(os.Getenv("S3_ACCESS_KEY_ID")), - AppSecretKey: strings.TrimSpace(os.Getenv("S3_SECRET_ACCESS_KEY")), + Endpoint: strings.TrimSpace(os.Getenv("S3_ENDPOINT")), + Region: strings.TrimSpace(os.Getenv("S3_REGION")), + Bucket: strings.TrimSpace(os.Getenv("S3_BUCKET")), } - - switch { - case cfg.Endpoint == "": - return settings{}, errors.New("S3_ENDPOINT is required") - case cfg.Region == "": - return settings{}, errors.New("S3_REGION is required") - case cfg.Bucket == "": - return settings{}, errors.New("S3_BUCKET is required") - case cfg.AdminAccessKey == "" || cfg.AdminSecretKey == "": - return settings{}, errors.New("S3_ADMIN_ACCESS_KEY and S3_ADMIN_SECRET_ACCESS_KEY are required") - case cfg.AppAccessKey == "" || cfg.AppSecretKey == "": - return settings{}, errors.New("S3_ACCESS_KEY_ID and S3_SECRET_ACCESS_KEY are required") + endpoint, err := url.Parse(cfg.Endpoint) + if err != nil || endpoint.Scheme != "https" || endpoint.Hostname() == "" || endpoint.User != nil { + return settings{}, errors.New("s3 endpoint must be an https url without credentials") + } + if endpoint.RawQuery != "" || endpoint.Fragment != "" { + return settings{}, errors.New("s3 endpoint must not contain a query or fragment") + } + if cfg.Region == "" || cfg.Bucket == "" { + return settings{}, errors.New("s3 region and bucket are required") + } + cfg.AccessKey, err = operatorSecret("S3_ACCESS_KEY_ID_FILE") + if err != nil { + return settings{}, err + } + cfg.SecretKey, err = operatorSecret("S3_SECRET_ACCESS_KEY_FILE") + if err != nil { + return settings{}, err } - return cfg, nil } -func newClient(cfg settings, accessKey, secretKey string) *s3.Client { - return s3.New(s3.Options{ +func newClient(cfg settings) (*s3.Client, *http.Transport, error) { + clientTLS, err := tlsconfig.NewClientFromEnv("") + if err != nil { + return nil, nil, fmt.Errorf("configure object store tls: %w", err) + } + transport := &http.Transport{ + DialContext: (&net.Dialer{ + Timeout: 3 * time.Second, + KeepAlive: 30 * time.Second, + }).DialContext, + TLSClientConfig: clientTLS, + TLSHandshakeTimeout: 3 * time.Second, + ResponseHeaderTimeout: 10 * time.Second, + IdleConnTimeout: 30 * time.Second, + } + client := s3.New(s3.Options{ Region: cfg.Region, BaseEndpoint: aws.String(cfg.Endpoint), UsePathStyle: true, - Credentials: credentials.NewStaticCredentialsProvider(accessKey, secretKey, ""), + Credentials: credentials.NewStaticCredentialsProvider(cfg.AccessKey, cfg.SecretKey, ""), + HTTPClient: &http.Client{ + Transport: transport, + Timeout: 15 * time.Second, + CheckRedirect: func(*http.Request, []*http.Request) error { + return errors.New("object store redirects are not permitted") + }, + }, }) + return client, transport, nil } func waitForBucket(ctx context.Context, client *s3.Client, bucket string) error { @@ -136,68 +156,6 @@ func waitForBucket(ctx context.Context, client *s3.Client, bucket string) error } } -func probeAppIdentity(ctx context.Context, client *s3.Client, bucket string) error { - key := "staging/.bootstrap/" + uuid.NewString() - - if _, err := client.PutObject(ctx, &s3.PutObjectInput{ - Bucket: aws.String(bucket), - Key: aws.String(key), - Body: bytes.NewReader([]byte("ok")), - ContentLength: aws.Int64(2), - ContentType: aws.String("text/plain"), - }); err != nil { - return fmt.Errorf("application identity cannot write: %w", err) - } - - defer func() { - _, _ = client.DeleteObject(ctx, &s3.DeleteObjectInput{ - Bucket: aws.String(bucket), - Key: aws.String(key), - }) - }() - - if _, err := client.HeadObject(ctx, &s3.HeadObjectInput{ - Bucket: aws.String(bucket), - Key: aws.String(key), - }); err != nil { - return fmt.Errorf("application identity cannot read: %w", err) - } - - if _, err := client.ListObjectsV2(ctx, &s3.ListObjectsV2Input{ - Bucket: aws.String(bucket), - Prefix: aws.String("staging/"), - }); err != nil { - return fmt.Errorf("application identity cannot list: %w", err) - } - - return nil -} - -func probeForbiddenPrefix(ctx context.Context, client *s3.Client, bucket string) error { - key := "forbidden/" + uuid.NewString() - - _, err := client.PutObject(ctx, &s3.PutObjectInput{ - Bucket: aws.String(bucket), - Key: aws.String(key), - Body: bytes.NewReader([]byte("must not be stored")), - }) - if err == nil { - _, _ = client.DeleteObject(ctx, &s3.DeleteObjectInput{ - Bucket: aws.String(bucket), - Key: aws.String(key), - }) - - return errors.New("application identity can write outside the allowed prefixes; check infra/s3/s3.json") - } - - var apiErr smithy.APIError - if !errors.As(err, &apiErr) || apiErr.ErrorCode() != "AccessDenied" { - return fmt.Errorf("forbidden-prefix probe returned an unexpected error: %w", err) - } - - return nil -} - func isNotFound(err error) bool { var apiErr smithy.APIError if errors.As(err, &apiErr) { @@ -221,3 +179,19 @@ func isBucketExists(err error) bool { return false } + +func operatorSecret(env string) (string, error) { + path := strings.TrimSpace(os.Getenv(env)) + if path == "" { + return "", fmt.Errorf("%s is required", env) + } + value, err := secretfile.Read(path) + if err != nil { + return "", fmt.Errorf("read %s: %w", env, err) + } + secret := strings.TrimSpace(string(value)) + if secret == "" { + return "", fmt.Errorf("%s is empty", env) + } + return secret, nil +} diff --git a/cmd/worker/main.go b/cmd/worker/main.go index 7d91c90..f2f0d39 100644 --- a/cmd/worker/main.go +++ b/cmd/worker/main.go @@ -6,6 +6,7 @@ import ( "errors" "fmt" "log/slog" + "net" "net/http" "os" "os/signal" @@ -16,7 +17,9 @@ import ( "mtusi-messenger/internal/broker" "mtusi-messenger/internal/config" "mtusi-messenger/internal/logger" + "mtusi-messenger/internal/platform/bao" "mtusi-messenger/internal/platform/objectstore" + "mtusi-messenger/internal/service/attachment" "mtusi-messenger/internal/storage/postgres" "mtusi-messenger/internal/telemetry" "mtusi-messenger/internal/worker" @@ -25,61 +28,87 @@ import ( var version = "dev" func main() { - log := logger.New() - - cfg, err := config.Load() - if err != nil { - log.Error("load config", slog.Any("error", err)) + if err := execute(); err != nil { + logger.New().Error("worker stopped with error", slog.Any("error", err)) os.Exit(1) } - - log = logger.New( - logger.WithLevel(cfg.SlogLevel()), - logger.WithFormat(cfg.LoggerFormat()), - ) - - shutdown, telemetryErr := telemetry.Setup(context.Background(), "messenger-worker", version) - if telemetryErr != nil { - log.Warn("telemetry setup failed; continuing without OTLP", slog.Any("error", telemetryErr)) - shutdown = func(context.Context) error { return nil } - } - log = telemetry.WrapLogger(log, "messenger-worker", cfg.SlogLevel()) - slog.SetDefault(log) - - if err := run(cfg, log); err != nil { - log.Error("shutdown with error", slog.Any("error", err)) - shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) - _ = shutdown(shutdownCtx) - cancel() - os.Exit(1) - } - - shutdownCtx, cancel := context.WithTimeout(context.Background(), 3*time.Second) - defer cancel() - if err := shutdown(shutdownCtx); err != nil { - log.Warn("telemetry shutdown failed", slog.Any("error", err)) - } } -func run(cfg config.Config, log *slog.Logger) error { - if cfg.Broker.URL == "" { - return errors.New("BROKER_URL is required for worker") - } - +func execute() (err error) { ctx, stop := signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM) defer stop() + serviceCtx, manager, err := bao.Start(ctx, "worker") + if err != nil { + return fmt.Errorf("start secret manager: %w", err) + } + var shutdown func(context.Context) error + defer func() { + manager.Stop() + shutdownCtx, cancel := manager.ShutdownContext(serviceCtx) + defer cancel() + if shutdown != nil { + err = errors.Join(err, shutdown(shutdownCtx)) + } + err = errors.Join(err, manager.Close(serviceCtx)) + if errors.Is(context.Cause(serviceCtx), bao.ErrExpired) { + err = errors.Join(err, bao.ErrExpired) + } + }() + cfg, err := config.Load() + if err != nil { + return fmt.Errorf("load config: %w", err) + } + log := logger.New( + logger.WithLevel(cfg.SlogLevel()), + logger.WithFormat(cfg.LoggerFormat()), + ) + shutdown, err = telemetry.Setup(serviceCtx, "messenger-worker", version) + if err != nil { + return fmt.Errorf("setup telemetry: %w", err) + } + log = telemetry.WrapLogger(log, "messenger-worker", cfg.SlogLevel()) + slog.SetDefault(log) + return run( + serviceCtx, + cfg, + log, + manager, + ) +} - store, err := postgres.New(ctx, cfg.Postgres, time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, postgres.WithQueryTracer(telemetry.NewPGXTracer())) +func run( + ctx context.Context, + cfg config.Config, + log *slog.Logger, + manager *bao.Manager, +) (err error) { + if cfg.Broker.URL == "" { + return errors.New("broker url is required for worker") + } + if err := requireLoopback(cfg.Worker.HealthAddr); err != nil { + return err + } + store, err := postgres.New( + ctx, + cfg.Postgres, + time.Duration(cfg.Idempotency.TTLSeconds)*time.Second, + postgres.WithQueryTracer(telemetry.NewPGXTracer()), + ) if err != nil { return fmt.Errorf("connect database: %w", err) } - defer store.Close() + defer func() { + err = errors.Join(err, finish(ctx, manager, func(context.Context) error { + store.Close() + return nil + })) + }() if err := telemetry.RegisterDBPool(store.PoolStats); err != nil { - log.Warn("register db pool metrics", slog.Any("error", err)) + log.WarnContext(ctx, "register db pool metrics", slog.Any("error", err)) } if err := telemetry.RegisterProcessMetrics(); err != nil { - log.Warn("register process metrics", slog.Any("error", err)) + log.WarnContext(ctx, "register process metrics", slog.Any("error", err)) } objectStoreConcrete, err := objectstore.New(objectstore.Config{ @@ -95,59 +124,88 @@ func run(cfg config.Config, log *slog.Logger) error { if err != nil { return fmt.Errorf("connect object store: %w", err) } + defer objectStoreConcrete.Close() objectStore := telemetry.WrapStore(objectStoreConcrete) - workerInstance := worker.New(store.Pipeline(), objectStore, worker.Config{ - Concurrency: cfg.Worker.Concurrency, - LeaseTTL: cfg.Processing.LeaseTTL, - Heartbeat: cfg.Processing.Heartbeat, - JobTimeout: cfg.Processing.JobTimeout, - RetryBase: cfg.Processing.RetryBase, - RetryCap: cfg.Processing.RetryCap, - MaxUploadBytes: cfg.S3.MaxUploadBytes, - MaxImagePixels: cfg.S3.MaxImagePixels, - }, log) + workerInstance := worker.New( + store.Pipeline(), + objectStore, + worker.Config{ + Concurrency: cfg.Worker.Concurrency, + LeaseTTL: cfg.Processing.LeaseTTL, + Heartbeat: cfg.Processing.Heartbeat, + JobTimeout: cfg.Processing.JobTimeout, + RetryBase: cfg.Processing.RetryBase, + RetryCap: cfg.Processing.RetryCap, + MaxUploadBytes: cfg.S3.MaxUploadBytes, + MaxImagePixels: cfg.S3.MaxImagePixels, + }, + log, + ) if err := telemetry.RegisterWorkerMetrics(workerInstance.Busy, int64(cfg.Worker.Concurrency)); err != nil { - log.Warn("register worker metrics", slog.Any("error", err)) + log.WarnContext(ctx, "register worker metrics", slog.Any("error", err)) } - server := healthServer(cfg.Worker.HealthAddr, store, objectStore, workerInstance) - - var serverWait sync.WaitGroup - serverWait.Add(1) - + sweeper := attachment.NewSweeper( + store.Pipeline(), + objectStore, + store, + cfg.S3.SweepGrace, + cfg.Staging.OrphanGrace, + cfg.Staging.FailedRetention, + cfg.S3.SweepInterval, + log, + ) + sweepDone := make(chan struct{}) go func() { - defer serverWait.Done() - - if err := server.ListenAndServe(); err != nil && err != http.ErrServerClosed { - log.Error("health server failed", slog.Any("error", err)) - } + defer close(sweepDone) + sweeper.Run(ctx) }() - - runCtx, cancelRun := context.WithCancel(ctx) - defer cancelRun() - - consumerDone := make(chan struct{}) - + consumerDone := make(chan error, 1) go func() { - defer close(consumerDone) - - consumeWithReconnect(runCtx, cfg, workerInstance, log) + consumerDone <- consumeWithReconnect( + ctx, + cfg, + workerInstance, + log, + ) }() - - <-ctx.Done() - cancelRun() - <-consumerDone - - shutdownCtx, cancel := context.WithTimeout(context.Background(), cfg.Worker.ShutdownTimeout) - defer cancel() - - _ = server.Shutdown(shutdownCtx) - serverWait.Wait() - - return nil + server := healthServer( + ctx, + cfg.Worker.HealthAddr, + store, + objectStore, + workerInstance, + ) + serverDone := make(chan error, 1) + go func() { serverDone <- server.ListenAndServe() }() + defer func() { + err = errors.Join(err, finish(ctx, manager, func(shutdownCtx context.Context) error { + serverErr := server.Shutdown(shutdownCtx) + if serverErr != nil { + serverErr = errors.Join(serverErr, server.Close()) + } + select { + case <-sweepDone: + case <-shutdownCtx.Done(): + return errors.Join(serverErr, shutdownCtx.Err()) + } + select { + case consumerErr := <-consumerDone: + return errors.Join(serverErr, consumerErr) + case <-shutdownCtx.Done(): + return errors.Join(serverErr, shutdownCtx.Err()) + } + })) + }() + select { + case <-ctx.Done(): + return nil + case serverErr := <-serverDone: + return fmt.Errorf("health listener: %w", serverErr) + } } func consumeWithReconnect( @@ -155,24 +213,34 @@ func consumeWithReconnect( cfg config.Config, workerInstance *worker.Worker, log *slog.Logger, -) { +) error { for ctx.Err() == nil { client, err := broker.Dial(brokerConfig(cfg)) if err != nil { log.WarnContext(ctx, "broker dial failed, retrying", slog.Any("error", err)) if !sleepCtx(ctx, 2*time.Second) { - return + return nil } continue } + var closeOnce sync.Once + var closeErr error + closeClient := func() { + closeOnce.Do(func() { closeErr = client.Close() }) + } + stopClose := context.AfterFunc(ctx, closeClient) err = workerInstance.Run(ctx, client) - _ = client.Close() + stopClose() + closeClient() + if closeErr != nil && ctx.Err() == nil { + log.WarnContext(ctx, "close broker failed", slog.Any("error", closeErr)) + } if ctx.Err() != nil { - return + return closeErr } if err != nil { @@ -180,9 +248,10 @@ func consumeWithReconnect( } if !sleepCtx(ctx, 2*time.Second) { - return + return nil } } + return nil } func sleepCtx(ctx context.Context, d time.Duration) bool { @@ -201,17 +270,18 @@ func brokerConfig(cfg config.Config) broker.Config { return broker.Config{ URL: cfg.Broker.URL, Exchange: cfg.Broker.Exchange, - DLX: cfg.Broker.DLX, Queue: cfg.Broker.Queue, - DLQ: cfg.Broker.DLQ, ConnectTimeout: cfg.Broker.ConnectTimeout, ConfirmTimeout: cfg.Broker.ConfirmTimeout, Heartbeat: cfg.Broker.Heartbeat, Prefetch: cfg.Worker.Prefetch, + Role: "worker", + Producer: false, } } func healthServer( + serviceCtx context.Context, addr string, store *postgres.Store, objectStore objectstore.Store, @@ -219,12 +289,16 @@ func healthServer( ) *http.Server { mux := http.NewServeMux() - mux.HandleFunc("/health/live", func(w http.ResponseWriter, _ *http.Request) { + mux.HandleFunc("GET /health/live", func(w http.ResponseWriter, _ *http.Request) { writeHealth(w, http.StatusOK, map[string]any{"status": "ok"}) }) - mux.HandleFunc("/health/ready", func(w http.ResponseWriter, r *http.Request) { - ctx, cancel := context.WithTimeout(r.Context(), 5*time.Second) + mux.HandleFunc("GET /health/ready", func(w http.ResponseWriter, _ *http.Request) { + if serviceCtx.Err() != nil { + writeHealth(w, http.StatusServiceUnavailable, map[string]any{"status": "unavailable"}) + return + } + ctx, cancel := context.WithTimeout(serviceCtx, 5*time.Second) defer cancel() if err := store.Ping(ctx); err != nil { @@ -240,7 +314,7 @@ func healthServer( } running, connected := workerInstance.Ready() - if !running || !connected { + if !running || !connected || serviceCtx.Err() != nil { writeHealth(w, http.StatusServiceUnavailable, map[string]any{"status": "unavailable"}) return @@ -253,6 +327,9 @@ func healthServer( Addr: addr, Handler: mux, ReadHeaderTimeout: 5 * time.Second, + ReadTimeout: 5 * time.Second, + WriteTimeout: 6 * time.Second, + BaseContext: func(net.Listener) context.Context { return serviceCtx }, } } @@ -261,3 +338,29 @@ func writeHealth(w http.ResponseWriter, status int, body map[string]any) { w.WriteHeader(status) _ = json.NewEncoder(w).Encode(body) } + +func requireLoopback(addr string) error { + host, _, err := net.SplitHostPort(addr) + if err != nil { + return fmt.Errorf("health listener address: %w", err) + } + ip := net.ParseIP(host) + if ip == nil || !ip.IsLoopback() { + return errors.New("health listener must bind a loopback ip") + } + return nil +} + +func finish(parent context.Context, manager *bao.Manager, cleanup func(context.Context) error) error { + manager.Stop() + ctx, cancel := manager.ShutdownContext(parent) + defer cancel() + done := make(chan error, 1) + go func() { done <- cleanup(ctx) }() + select { + case err := <-done: + return err + case <-ctx.Done(): + return fmt.Errorf("shutdown deadline: %w", ctx.Err()) + } +} diff --git a/compose.yaml b/compose.yaml index 391ecf6..73acbab 100644 --- a/compose.yaml +++ b/compose.yaml @@ -1,624 +1,858 @@ -# Lab6 stand (lab5 base + OTel profile): API replicas behind HAProxy, PostgreSQL, Redis, SeaweedFS S3, -# a durable RabbitMQ broker, one outbox relay and a separate image worker. -# -# cp -n .env.example .env -# docker compose --env-file .env up -d --build -# curl http://localhost:8080/health/ready -# -# Only the load balancer is published (127.0.0.1). Stores and API replicas are -# reachable from the host via `docker compose exec` / `docker compose logs`. -# No container_name anywhere: replica hostnames stay the short container IDs, -# which the application reports back as X-Instance-Id. +# Secure lab7 cutover. The default project name retains the lab6 data volumes. +# Fresh verification overrides COMPOSE_PROJECT_NAME and LAB7_SECRETS_DIR. name: mtusi-messenger-lab6 -# The image is built once by the api service. migrate and s3-init only consume -# it; duplicating `build` here makes Compose compile the same Go tree in parallel -# and OOMs Docker Desktop's default VM. +x-log: &log + driver: json-file + options: + max-size: "10m" + max-file: "3" + +x-hardened: &hardened + cap_drop: [ALL] + security_opt: [no-new-privileges:true] + read_only: true + group_add: ["10001"] + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m,mode=1777 + logging: *log + stop_grace_period: 40s + restart: unless-stopped + x-app: &app - image: mtusi-messenger:lab6 - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" + <<: *hardened + image: mtusi-messenger:lab7 + user: "10001:10001" + +x-tls-environment: &tls-environment + TLS_CA_FILE: /run/identity/current/ca.crt + TLS_CERT_FILE: /run/identity/current/tls.crt + TLS_KEY_FILE: /run/identity/current/tls.key + TLS_CRL_FILE: /run/identity/current/ca.crl + TLS_VERSION_FILE: /run/identity/current-version + +x-app-environment: &app-environment + <<: *tls-environment + APP_CONFIG: /etc/messenger/dev/config.yaml + BAO_ADDR: https://openbao:8200 + POSTGRES_HOST: postgres + POSTGRES_PORT: "5432" + POSTGRES_DATABASE: messenger + POSTGRES_SSL_MODE: verify-full + POSTGRES_MAX_CONNS: "${POSTGRES_MAX_CONNS:-10}" + POSTGRES_MAX_CONN_LIFETIME: 30s + POSTGRES_MAX_CONN_IDLE_TIME: 10s + POSTGRES_CONNECT_TIMEOUT: 5s + POSTGRES_QUERY_TIMEOUT: 5s + S3_ENDPOINT: https://seaweedfs:8333 + S3_PUBLIC_ENDPOINT: "https://localhost:${S3_PORT:-8333}" + S3_REGION: us-east-1 + S3_BUCKET: "${S3_BUCKET:-messenger-attachments}" + S3_USE_PATH_STYLE: "true" + S3_TIMEOUT: 30s + S3_PRESIGN_TTL: "${S3_PRESIGN_TTL:-5m}" + S3_SWEEP_INTERVAL: "${S3_SWEEP_INTERVAL:-1m}" + S3_SWEEP_GRACE: "${S3_SWEEP_GRACE:-10m}" + MAX_UPLOAD_BYTES: "${MAX_UPLOAD_BYTES:-10485760}" + MAX_IMAGE_PIXELS: "${MAX_IMAGE_PIXELS:-40000000}" + SESSION_TTL_SECONDS: "${SESSION_TTL_SECONDS:-3600}" + IDEMPOTENCY_TTL_SECONDS: "${IDEMPOTENCY_TTL_SECONDS:-86400}" + BROKER_URL: amqps://broker:5671/messenger + BROKER_EXCHANGE: attachments.jobs + BROKER_QUEUE: attachment.process.v1 + BROKER_CONNECT_TIMEOUT: 5s + BROKER_CONFIRM_TIMEOUT: 5s + BROKER_HEARTBEAT: 10s + PROCESSING_PIPELINE_VERSION: "${PROCESSING_PIPELINE_VERSION:-1}" + PROCESSING_MAX_ATTEMPTS: "${PROCESSING_MAX_ATTEMPTS:-5}" + PROCESSING_JOB_TIMEOUT: "${PROCESSING_JOB_TIMEOUT:-60s}" + PROCESSING_LEASE_TTL: "${PROCESSING_LEASE_TTL:-90s}" + PROCESSING_HEARTBEAT: "${PROCESSING_HEARTBEAT:-15s}" + PROCESSING_RETRY_BASE: "${PROCESSING_RETRY_BASE:-2s}" + PROCESSING_RETRY_CAP: "${PROCESSING_RETRY_CAP:-60s}" + STAGING_ORPHAN_GRACE: "${STAGING_ORPHAN_GRACE:-1h}" + STAGING_FAILED_RETENTION: "${STAGING_FAILED_RETENTION:-168h}" + ADMISSION_MAX_PENDING_PER_USER: "${ADMISSION_MAX_PENDING_PER_USER:-20}" + ADMISSION_MAX_PENDING: "${ADMISSION_MAX_PENDING:-200}" + ADMISSION_MAX_STAGED_BYTES: "${ADMISSION_MAX_STAGED_BYTES:-2147483648}" + ADMISSION_MAX_CONCURRENT_UPLOADS: "${ADMISSION_MAX_CONCURRENT_UPLOADS:-8}" + OTEL_EXPORTER_OTLP_ENDPOINT: https://otel-collector:4318 + OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf + OTEL_RESOURCE_ATTRIBUTES: deployment.environment.name=lab + OTEL_METRIC_EXPORT_INTERVAL: "${OTEL_METRIC_EXPORT_INTERVAL:-5000}" + OTEL_TRACES_SAMPLER: "${OTEL_TRACES_SAMPLER:-always_on}" + TELEMETRY_ENABLED: "${TELEMETRY_ENABLED:-1}" + LOG_LEVEL: info + LOG_FORMAT: json + +x-gateway: &gateway + <<: *hardened + image: haproxy:3.2-alpine@sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0 + user: "10001:10001" + deploy: + resources: + limits: + cpus: "0.10" + memory: 64M services: - postgres: - image: postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 + # This operator-only job prepares private data volume ownership. It has no + # network, no socket, and only the capabilities required for existing volumes. + volume-init: + image: alpine:3.22@sha256:49340b346798875b5592e5d420241f2f9cfba5f47e62ebb1446a1b34734e898f + user: "0:0" + network_mode: none + cap_drop: [ALL] + cap_add: [CHOWN, DAC_OVERRIDE] + security_opt: [no-new-privileges:true] + read_only: true + restart: "no" + logging: *log + command: + - sh + - -ec + - | + chown -R 70:70 /state/postgres + chown -R 999:1000 /state/redis + chown -R 10001:10001 /state/s3 /state/loki /state/tempo + chown -R 100:101 /state/rabbit + chown -R 65534:65534 /state/prometheus + chown -R 472:472 /state/grafana + chown -R 100:1000 /state/bao /state/audit + volumes: + - postgres18-data:/state/postgres + - redis7-data:/state/redis + - seaweedfs-data:/state/s3 + - rabbitmq-data:/state/rabbit + - prometheus-data:/state/prometheus + - loki-data:/state/loki + - tempo-data:/state/tempo + - grafana-data:/state/grafana + - openbao-raft-data:/state/bao + - openbao-audit:/state/audit + deploy: + resources: + limits: {cpus: "0.25", memory: 64M} - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" + openbao: + <<: *hardened + image: openbao/openbao:2.7.2@sha256:5046911075e137e154ce49ab051502f4ec7cf367d484ae4a4dce665d9b90561f + user: "100:1000" + networks: [default, edge] + command: [server, -config=/etc/openbao/server.hcl] environment: - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_DB: ${POSTGRES_DB:-messenger} + SKIP_CHOWN: "true" + SKIP_SETCAP: "true" + volumes: + - openbao-raft-data:/openbao/file + - openbao-audit:/openbao/audit + - type: bind + source: ./infra/openbao/server.hcl + target: /etc/openbao/server.hcl + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/openbao + target: /run/identity + read_only: true + bind: {create_host_path: false} + ports: ["127.0.0.1:${BAO_PORT:-8200}:8200"] + depends_on: + volume-init: {condition: service_completed_successfully} + healthcheck: {disable: true} + deploy: + resources: + limits: {cpus: "0.50", memory: 256M} + + postgres: + <<: *hardened + image: postgres:18-alpine@sha256:123b17998ccaf47e53b502e8c6a1e79afd8f579c6f3eec83c563da026f957395 + user: "70:70" + entrypoint: [/bin/sh, /security/entrypoint.sh] + environment: + POSTGRES_USER: lab_operator + POSTGRES_PASSWORD_FILE: /run/backend/operator-password + POSTGRES_DB: messenger volumes: - postgres18-data:/var/lib/postgresql + - type: bind + source: ./infra/postgres/entrypoint.sh + target: /security/entrypoint.sh + read_only: true + bind: {create_host_path: false} + - type: bind + source: ./infra/postgres/pg_hba.conf + target: /etc/postgresql/pg_hba.conf + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/postgres + target: /run/identity + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/backends/postgres + target: /run/backend + read_only: true + bind: {create_host_path: false} + tmpfs: + - /tmp:rw,noexec,nosuid,size=64m,mode=1777 + - /var/run/postgresql:rw,noexec,nosuid,size=8m,uid=70,gid=70,mode=0750 + depends_on: + volume-init: {condition: service_completed_successfully} healthcheck: - test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] + test: [CMD, pg_isready, -U, lab_operator, -d, messenger] interval: 5s timeout: 5s - retries: 10 - start_period: 5s + retries: 20 + start_period: 10s deploy: resources: limits: - # Saturation point of the stand (see REPORT.md, track 1): the database - # runs at its quota while API replicas idle. Raise this knob to give the - # shared dependency more of the host CPU. cpus: "${POSTGRES_CPU_LIMIT:-0.50}" - memory: ${POSTGRES_MEM_LIMIT:-192M} - restart: unless-stopped + memory: ${POSTGRES_MEM_LIMIT:-320M} redis: - image: redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 - - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" - command: - - redis-server - - --appendonly - - "yes" - - --appendfsync - - everysec - - --save - - "60" - - "1" + <<: *hardened + image: redis:7.4-alpine@sha256:c5d34a98396a4775e223c74e929162c35c5a2182901ba26b50ade939941ce14b + user: "999:1000" + command: [redis-server, /etc/redis/redis.conf] volumes: - redis7-data:/data + - type: bind + source: ./infra/redis/redis.conf + target: /etc/redis/redis.conf + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/redis + target: /run/identity + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/backends/redis + target: /run/backend + read_only: true + bind: {create_host_path: false} + depends_on: + volume-init: {condition: service_completed_successfully} healthcheck: - test: ["CMD", "redis-cli", "ping"] + test: [CMD-SHELL, 'REDISCLI_AUTH=$$(cat /run/backend/health-password) redis-cli --tls --cacert /run/identity/current/ca.crt --user health ping'] interval: 5s - timeout: 3s - retries: 10 - start_period: 3s - deploy: - resources: - limits: - cpus: "0.25" - memory: 96M - restart: unless-stopped - - # Private S3-compatible object store. Only the S3 API is published, on - # loopback, so the presigned-upload track and evidence can reach it from the - # host. master/volume/filer ports stay inside the compose network. - seaweedfs: - image: chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a - - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" - command: - - server - - -s3 - - -s3.config=/etc/seaweedfs/s3.json - - -dir=/data - - -master.volumeSizeLimitMB=64 - volumes: - - ./infra/s3/s3.json:/etc/seaweedfs/s3.json:ro - - seaweedfs-data:/data - environment: - # Keep the Go runtime below the container limit under concurrent PUTs. - GOGC: "50" - GOMEMLIMIT: "512MiB" - ports: - - "127.0.0.1:${S3_PORT:-8333}:8333" - healthcheck: - test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8333/healthz || exit 1"] - interval: 5s - timeout: 3s + timeout: 5s retries: 20 - start_period: 60s deploy: resources: - limits: - cpus: "1.00" - memory: 640M - restart: unless-stopped + limits: {cpus: "0.25", memory: 128M} + # Namespace owner: all master/filer/volume transports are loopback-only. + seaweedfs: + <<: *hardened + image: chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8 + user: "10001:10001" + networks: [default, edge] + command: [server, -filer, -ip=127.0.0.1, -ip.bind=127.0.0.1, -dir=/data, -master.volumeSizeLimitMB=64, -filer.exposeDirectoryData=false] + environment: {GOGC: "50", GOMEMLIMIT: 512MiB} + volumes: + - seaweedfs-data:/data + - type: bind + source: ./infra/s3/security.toml + target: /etc/seaweedfs/security.toml + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/s3 + target: /run/identity + read_only: true + bind: {create_host_path: false} + ports: ["127.0.0.1:${S3_PORT:-8333}:8333"] + depends_on: + volume-init: {condition: service_completed_successfully} + healthcheck: + test: [CMD-SHELL, 'wget -q -O /dev/null http://127.0.0.1:8888/healthz'] + interval: 5s + timeout: 5s + retries: 24 + start_period: 30s + deploy: + resources: + limits: {cpus: "1.00", memory: 640M} + + # Native HTTPS S3 and its auxiliary mTLS gRPC share the closed storage namespace. + s3: + <<: *hardened + image: chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8 + user: "10001:10001" + network_mode: service:seaweedfs + command: [s3, -filer=127.0.0.1:8888.18888, -ip.bind=0.0.0.0, -port=8333, -port.iceberg=0, -port.lance=0, -config=/run/backend/s3.json, -cert.file=/run/identity/current/tls.crt, -key.file=/run/identity/current/tls.key, -cacert.file=/run/identity/current/ca.crt] + volumes: + - type: bind + source: ./infra/s3/security.toml + target: /etc/seaweedfs/security.toml + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/s3 + target: /run/identity + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/backends/s3 + target: /run/backend + read_only: true + bind: {create_host_path: false} + depends_on: + seaweedfs: {condition: service_healthy} + healthcheck: {disable: true} + deploy: + resources: + limits: {cpus: "0.50", memory: 256M} - # Durable job transport. Quorum queues, publisher confirms and a DLQ live in - # the broker; PostgreSQL's outbox remains the source of truth for intent. broker: + <<: *hardened image: rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 - - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" + user: "100:101" hostname: broker - networks: [default, observability] + extra_hosts: ["broker:127.0.0.1"] environment: - RABBITMQ_DEFAULT_USER: ${BROKER_USER:-messenger} - RABBITMQ_DEFAULT_PASS: ${BROKER_PASSWORD:-messenger} - RABBITMQ_DEFAULT_VHOST: ${BROKER_VHOST:-messenger} + RABBITMQ_NODENAME: rabbit@broker + ERL_EPMD_ADDRESS: 127.0.0.1 + RABBITMQ_SERVER_ADDITIONAL_ERL_ARGS: '-kernel inet_dist_use_interface {127,0,0,1}' + networks: [default, observability, edge] volumes: - rabbitmq-data:/var/lib/rabbitmq - - ./infra/rabbitmq/rabbitmq.conf:/etc/rabbitmq/rabbitmq.conf:ro - ports: - # Management UI only on loopback, for operator evidence. AMQP stays internal. - - "127.0.0.1:${BROKER_MANAGEMENT_PORT:-15672}:15672" + - type: bind + source: ./infra/rabbitmq/rabbitmq.conf + target: /etc/rabbitmq/rabbitmq.conf + read_only: true + bind: {create_host_path: false} + - type: bind + source: ./infra/rabbitmq/enabled_plugins + target: /etc/rabbitmq/enabled_plugins + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/broker + target: /run/identity + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/backends/broker + target: /run/backend + read_only: true + bind: {create_host_path: false} + ports: ["127.0.0.1:${BROKER_MANAGEMENT_PORT:-15671}:15671"] + depends_on: + volume-init: {condition: service_completed_successfully} healthcheck: - test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"] + test: [CMD, rabbitmq-diagnostics, -q, ping] interval: 10s timeout: 5s - retries: 12 + retries: 20 start_period: 30s deploy: resources: limits: cpus: "${BROKER_CPU_LIMIT:-0.50}" memory: ${BROKER_MEM_LIMIT:-384M} - stop_grace_period: 30s - restart: unless-stopped - # One-shot, idempotent bucket bootstrap and identity probe. - s3-init: - <<: *app - entrypoint: ["/usr/local/bin/s3init"] - environment: - S3_ENDPOINT: http://seaweedfs:8333 - S3_REGION: ${S3_REGION:-us-east-1} - S3_BUCKET: ${S3_BUCKET:-messenger-attachments} - S3_ADMIN_ACCESS_KEY: ${S3_ADMIN_ACCESS_KEY:-lab4admin} - S3_ADMIN_SECRET_ACCESS_KEY: ${S3_ADMIN_SECRET_ACCESS_KEY:-lab4admin-secret} - S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-lab4app} - S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-lab4app-secret} + broker-admin-tls: + <<: *gateway + network_mode: service:broker + volumes: + - type: bind + source: ./infra/rabbitmq/admin-tls.cfg + target: /usr/local/etc/haproxy/haproxy.cfg + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/broker + target: /run/identity + read_only: true + bind: {create_host_path: false} depends_on: - seaweedfs: - condition: service_healthy - healthcheck: - disable: true - restart: "no" + broker: {condition: service_started} + healthcheck: {disable: true} - # One-shot schema bootstrap; runs once to completion before any API replica. migrate: <<: *app - entrypoint: ["/usr/local/bin/migrate"] - command: ["up"] + entrypoint: [/usr/local/bin/migrate] + command: [up] environment: + <<: *tls-environment APP_CONFIG: /etc/messenger/dev/config.yaml POSTGRES_HOST: postgres POSTGRES_PORT: "5432" - POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_SSL_MODE: disable + POSTGRES_DATABASE: messenger + POSTGRES_USER: lab_operator + POSTGRES_PASSWORD_FILE: /run/bootstrap/postgres-password + POSTGRES_SSL_MODE: verify-full + volumes: + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/operator + target: /run/identity + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/bootstrap/migrate + target: /run/bootstrap + read_only: true + bind: {create_host_path: false} depends_on: - postgres: - condition: service_healthy + postgres: {condition: service_healthy} + profiles: [operator] + healthcheck: {disable: true} + restart: "no" deploy: resources: - limits: - cpus: "0.50" - memory: 256M - # One-shot: healthcheck из образа (проверка /health/live) для него бессмыслен. - healthcheck: - disable: true + limits: {cpus: "0.50", memory: 256M} + + s3-init: + <<: *app + entrypoint: [/usr/local/bin/s3init] + environment: + <<: *tls-environment + S3_ENDPOINT: https://seaweedfs:8333 + S3_REGION: us-east-1 + S3_BUCKET: "${S3_BUCKET:-messenger-attachments}" + S3_ACCESS_KEY_ID_FILE: /run/bootstrap/s3-admin-access-key + S3_SECRET_ACCESS_KEY_FILE: /run/bootstrap/s3-admin-secret-key + volumes: + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/operator + target: /run/identity + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/bootstrap/s3 + target: /run/bootstrap + read_only: true + bind: {create_host_path: false} + depends_on: + s3: {condition: service_started} + profiles: [operator] + healthcheck: {disable: true} restart: "no" + deploy: + resources: + limits: {cpus: "0.25", memory: 128M} + + jobctl: + extends: {service: migrate} + entrypoint: [/usr/local/bin/jobctl] + command: [failed] api: <<: *app build: context: . dockerfile: Dockerfile - args: - VERSION: ${VERSION:-dev} - # Общий сетевой alias: LB резолвит одно имя в адреса всех реплик, поэтому - # масштабирование и замена контейнеров не зависят от их номеров/ID. - networks: - default: - aliases: - - api-replica - env_file: - - path: .env - required: false - # Explicit values win over localhost defaults coming from .env (see .env.example). + args: {VERSION: "${VERSION:-dev}"} environment: - APP_CONFIG: /etc/messenger/dev/config.yaml + <<: *app-environment + BAO_ROLE: api + BAO_KV_PATH: secret/data/api OTEL_SERVICE_NAME: messenger-api - OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318} - OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf - OTEL_RESOURCE_ATTRIBUTES: deployment.environment.name=lab - OTEL_METRIC_EXPORT_INTERVAL: ${OTEL_METRIC_EXPORT_INTERVAL:-15000} - TELEMETRY_ENABLED: ${TELEMETRY_ENABLED:-1} - GOMEMLIMIT: ${API_GOMEMLIMIT:-192MiB} - POSTGRES_HOST: postgres - POSTGRES_PORT: "5432" - POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_SSL_MODE: disable + POSTGRES_USER: messenger_api REDIS_ENABLED: "true" REDIS_HOST: redis REDIS_PORT: "6379" + REDIS_USERNAME: cache + REDIS_DB: "0" CACHE_ENABLED: "true" - S3_ENDPOINT: http://seaweedfs:8333 - S3_PUBLIC_ENDPOINT: ${S3_PUBLIC_ENDPOINT:-http://127.0.0.1:8333} - S3_REGION: ${S3_REGION:-us-east-1} - S3_BUCKET: ${S3_BUCKET:-messenger-attachments} - S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-lab4app} - S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-lab4app-secret} - S3_USE_PATH_STYLE: "true" - S3_PRESIGN_TTL: ${S3_PRESIGN_TTL:-5m} - S3_SWEEP_INTERVAL: ${S3_SWEEP_INTERVAL:-1m} - S3_SWEEP_GRACE: ${S3_SWEEP_GRACE:-10m} - MAX_UPLOAD_BYTES: ${MAX_UPLOAD_BYTES:-10485760} - MAX_IMAGE_PIXELS: ${MAX_IMAGE_PIXELS:-40000000} - PROCESSING_PIPELINE_VERSION: ${PROCESSING_PIPELINE_VERSION:-1} - PROCESSING_MAX_ATTEMPTS: ${PROCESSING_MAX_ATTEMPTS:-5} - PROCESSING_JOB_TIMEOUT: ${PROCESSING_JOB_TIMEOUT:-120s} - PROCESSING_LEASE_TTL: ${PROCESSING_LEASE_TTL:-180s} - PROCESSING_HEARTBEAT: ${PROCESSING_HEARTBEAT:-30s} - PROCESSING_RETRY_BASE: ${PROCESSING_RETRY_BASE:-2s} - PROCESSING_RETRY_CAP: ${PROCESSING_RETRY_CAP:-60s} - STAGING_ORPHAN_GRACE: ${STAGING_ORPHAN_GRACE:-1h} - STAGING_FAILED_RETENTION: ${STAGING_FAILED_RETENTION:-168h} - ADMISSION_MAX_PENDING_PER_USER: ${ADMISSION_MAX_PENDING_PER_USER:-20} - ADMISSION_MAX_PENDING: ${ADMISSION_MAX_PENDING:-200} - ADMISSION_MAX_STAGED_BYTES: ${ADMISSION_MAX_STAGED_BYTES:-2147483648} - ADMISSION_MAX_CONCURRENT_UPLOADS: ${ADMISSION_MAX_CONCURRENT_UPLOADS:-8} - # Размер пула соединений ОДНОЙ реплики; общий расход = реплики × значение. - # Это один из общих ресурсов, который масштабирование расходует первым. - POSTGRES_MAX_CONNS: "${POSTGRES_MAX_CONNS:-10}" + SERVER_HOST: 0.0.0.0 + SERVER_PORT: "8080" + SERVER_MAX_BODY_BYTES: "${SERVER_MAX_BODY_BYTES:-262144}" + SERVER_READ_HEADER_TIMEOUT: 10s + SERVER_READ_TIMEOUT: 60s + SERVER_SHUTDOWN_TIMEOUT: 30s + GOMEMLIMIT: 192MiB + networks: + default: {aliases: [api-replica]} + volumes: + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/api + target: /run/identity + read_only: true + bind: {create_host_path: false} + depends_on: + postgres: {condition: service_healthy} + redis: {condition: service_healthy} + openbao: {condition: service_started} + healthcheck: + test: [CMD, wget, -q, -O, /dev/null, http://127.0.0.1:8084/health/ready] + interval: 5s + timeout: 5s + retries: 20 + start_period: 5s deploy: replicas: ${API_REPLICAS:-2} resources: limits: cpus: "${API_CPU_LIMIT:-0.50}" memory: ${API_MEM_LIMIT:-256M} - # The app drains on SIGTERM within SERVER_SHUTDOWN_TIMEOUT; keep the grace - # period above it so Docker does not SIGKILL an in-flight request. - stop_grace_period: 15s - depends_on: - postgres: - condition: service_healthy - redis: - condition: service_healthy - migrate: - condition: service_completed_successfully - s3-init: - condition: service_completed_successfully - healthcheck: - test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/health/ready"] - interval: 10s - # Готовность проверяет PostgreSQL (критичную зависимость; кэш деградирует - # безопасно): под насыщающей нагрузкой ответ может подойти к секундам, и - # слишком строгий таймаут помечает занятую, но работающую реплику как - # unhealthy. - timeout: 5s - retries: 6 - start_period: 5s - restart: unless-stopped - - # Separate worker process. It is intentionally not published and can be - # stopped/scaled independently from the API; stopping it must not stop 202. worker: <<: *app - entrypoint: ["/usr/local/bin/worker"] - env_file: - - path: .env - required: false + entrypoint: [/usr/local/bin/worker] environment: - APP_CONFIG: /etc/messenger/dev/config.yaml + <<: *app-environment + BAO_ROLE: worker + BAO_KV_PATH: secret/data/worker OTEL_SERVICE_NAME: messenger-worker - OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318} - OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf - OTEL_RESOURCE_ATTRIBUTES: deployment.environment.name=lab - OTEL_METRIC_EXPORT_INTERVAL: ${OTEL_METRIC_EXPORT_INTERVAL:-15000} - TELEMETRY_ENABLED: ${TELEMETRY_ENABLED:-1} - GOMEMLIMIT: ${WORKER_GOMEMLIMIT:-768MiB} - POSTGRES_HOST: postgres - POSTGRES_PORT: "5432" - POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_SSL_MODE: disable - S3_ENDPOINT: http://seaweedfs:8333 - S3_PUBLIC_ENDPOINT: ${S3_PUBLIC_ENDPOINT:-http://127.0.0.1:8333} - S3_REGION: ${S3_REGION:-us-east-1} - S3_BUCKET: ${S3_BUCKET:-messenger-attachments} - S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-lab4app} - S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-lab4app-secret} - S3_USE_PATH_STYLE: "true" - MAX_UPLOAD_BYTES: ${MAX_UPLOAD_BYTES:-10485760} - MAX_IMAGE_PIXELS: ${MAX_IMAGE_PIXELS:-40000000} - BROKER_URL: ${BROKER_URL:-amqp://messenger:messenger@broker:5672/messenger} - WORKER_CONCURRENCY: ${WORKER_CONCURRENCY:-1} - WORKER_PREFETCH: ${WORKER_PREFETCH:-1} - WORKER_SHUTDOWN_TIMEOUT: ${WORKER_SHUTDOWN_TIMEOUT:-30s} - WORKER_HEALTH_ADDR: ":8081" - FAULTS_ENABLED: ${FAULTS_ENABLED:-0} - FAULT_TARGET_JOB: ${FAULT_TARGET_JOB:-} - FAULT_WORKER_AFTER_CLAIM: ${FAULT_WORKER_AFTER_CLAIM:-} - FAULT_WORKER_AFTER_FIRST_VARIANT: ${FAULT_WORKER_AFTER_FIRST_VARIANT:-} - FAULT_WORKER_AFTER_PUT: ${FAULT_WORKER_AFTER_PUT:-} - FAULT_WORKER_AFTER_COMMIT: ${FAULT_WORKER_AFTER_COMMIT:-} - FAULT_WORKER_FAIL: ${FAULT_WORKER_FAIL:-} - FAULT_WORKER_SLEEP_AFTER_CLAIM: ${FAULT_WORKER_SLEEP_AFTER_CLAIM:-} - PROCESSING_PIPELINE_VERSION: ${PROCESSING_PIPELINE_VERSION:-1} - PROCESSING_MAX_ATTEMPTS: ${PROCESSING_MAX_ATTEMPTS:-5} - PROCESSING_JOB_TIMEOUT: ${PROCESSING_JOB_TIMEOUT:-120s} - PROCESSING_LEASE_TTL: ${PROCESSING_LEASE_TTL:-180s} - PROCESSING_HEARTBEAT: ${PROCESSING_HEARTBEAT:-30s} - PROCESSING_RETRY_BASE: ${PROCESSING_RETRY_BASE:-2s} - PROCESSING_RETRY_CAP: ${PROCESSING_RETRY_CAP:-60s} - ports: - - "127.0.0.1:${WORKER_HEALTH_PORT:-8081}:8081" + POSTGRES_USER: messenger_worker + POSTGRES_MAX_CONNS: "4" + REDIS_ENABLED: "false" + CACHE_ENABLED: "false" + WORKER_CONCURRENCY: "${WORKER_CONCURRENCY:-1}" + WORKER_PREFETCH: "${WORKER_PREFETCH:-1}" + WORKER_SHUTDOWN_TIMEOUT: 30s + WORKER_HEALTH_ADDR: 127.0.0.1:8081 + GOMEMLIMIT: 768MiB + FAULTS_ENABLED: "${FAULTS_ENABLED:-0}" + FAULT_TARGET_JOB: "${FAULT_TARGET_JOB:-}" + FAULT_WORKER_AFTER_CLAIM: "${FAULT_WORKER_AFTER_CLAIM:-}" + FAULT_WORKER_AFTER_FIRST_VARIANT: "${FAULT_WORKER_AFTER_FIRST_VARIANT:-}" + FAULT_WORKER_AFTER_PUT: "${FAULT_WORKER_AFTER_PUT:-}" + FAULT_WORKER_AFTER_COMMIT: "${FAULT_WORKER_AFTER_COMMIT:-}" + FAULT_WORKER_FAIL: "${FAULT_WORKER_FAIL:-}" + FAULT_WORKER_SLEEP_AFTER_CLAIM: "${FAULT_WORKER_SLEEP_AFTER_CLAIM:-}" + volumes: + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/worker + target: /run/identity + read_only: true + bind: {create_host_path: false} depends_on: - postgres: - condition: service_healthy - migrate: - condition: service_completed_successfully - s3-init: - condition: service_completed_successfully - broker: - condition: service_healthy + postgres: {condition: service_healthy} + broker: {condition: service_healthy} + openbao: {condition: service_started} + healthcheck: + test: [CMD, wget, -q, -O, /dev/null, http://127.0.0.1:8081/health/ready] + interval: 5s + timeout: 5s + retries: 20 + start_period: 10s deploy: resources: limits: cpus: "${WORKER_CPU_LIMIT:-1.00}" memory: ${WORKER_MEM_LIMIT:-1G} - stop_grace_period: 40s - healthcheck: - test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8081/health/ready"] - interval: 10s - timeout: 5s - retries: 12 - start_period: 10s - restart: unless-stopped - # Outbox publisher + lease reaper. One replica: duplicate relays are safe but - # a single owner keeps the evidence and the claim reaper simple. relay: <<: *app - entrypoint: ["/usr/local/bin/relay"] - env_file: - - path: .env - required: false + entrypoint: [/usr/local/bin/relay] environment: - APP_CONFIG: /etc/messenger/dev/config.yaml + <<: *app-environment + BAO_ROLE: relay + BAO_KV_PATH: secret/data/relay OTEL_SERVICE_NAME: messenger-relay - OTEL_EXPORTER_OTLP_ENDPOINT: ${OTEL_EXPORTER_OTLP_ENDPOINT:-http://otel-collector:4318} - OTEL_EXPORTER_OTLP_PROTOCOL: http/protobuf - OTEL_RESOURCE_ATTRIBUTES: deployment.environment.name=lab - OTEL_METRIC_EXPORT_INTERVAL: ${OTEL_METRIC_EXPORT_INTERVAL:-15000} - TELEMETRY_ENABLED: ${TELEMETRY_ENABLED:-1} - GOMEMLIMIT: ${RELAY_GOMEMLIMIT:-96MiB} - POSTGRES_HOST: postgres - POSTGRES_PORT: "5432" - POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_SSL_MODE: disable - BROKER_URL: ${BROKER_URL:-amqp://messenger:messenger@broker:5672/messenger} - BROKER_QUEUE: ${BROKER_QUEUE:-attachment.process.v1} - BROKER_DLQ: ${BROKER_DLQ:-attachment.process.dead} - OUTBOX_POLL_INTERVAL: ${OUTBOX_POLL_INTERVAL:-1s} - OUTBOX_CLAIM_TTL: ${OUTBOX_CLAIM_TTL:-30s} - OUTBOX_BATCH: ${OUTBOX_BATCH:-20} - OUTBOX_REAPER_INTERVAL: ${OUTBOX_REAPER_INTERVAL:-15s} - OUTBOX_RECONCILE_AFTER: ${OUTBOX_RECONCILE_AFTER:-5m} - OUTBOX_RETENTION: ${OUTBOX_RETENTION:-168h} - RELAY_HEALTH_ADDR: ":8082" - FAULTS_ENABLED: ${FAULTS_ENABLED:-0} - FAULT_TARGET_JOB: ${FAULT_TARGET_JOB:-} - FAULT_OUTBOX_AFTER_COMMIT: ${FAULT_OUTBOX_AFTER_COMMIT:-} - ports: - - "127.0.0.1:${RELAY_HEALTH_PORT:-8082}:8082" + POSTGRES_USER: messenger_relay + POSTGRES_MAX_CONNS: "3" + REDIS_ENABLED: "false" + CACHE_ENABLED: "false" + RELAY_HEALTH_ADDR: 127.0.0.1:8082 + OUTBOX_POLL_INTERVAL: "${OUTBOX_POLL_INTERVAL:-1s}" + OUTBOX_CLAIM_TTL: "${OUTBOX_CLAIM_TTL:-30s}" + OUTBOX_BATCH: "${OUTBOX_BATCH:-20}" + OUTBOX_REAPER_INTERVAL: "${OUTBOX_REAPER_INTERVAL:-15s}" + OUTBOX_RECONCILE_AFTER: "${OUTBOX_RECONCILE_AFTER:-5m}" + OUTBOX_RETENTION: "${OUTBOX_RETENTION:-168h}" + GOMEMLIMIT: 96MiB + FAULTS_ENABLED: "${FAULTS_ENABLED:-0}" + FAULT_TARGET_JOB: "${FAULT_TARGET_JOB:-}" + FAULT_OUTBOX_AFTER_COMMIT: "${FAULT_OUTBOX_AFTER_COMMIT:-}" + volumes: + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/relay + target: /run/identity + read_only: true + bind: {create_host_path: false} depends_on: - postgres: - condition: service_healthy - migrate: - condition: service_completed_successfully - broker: - condition: service_healthy + postgres: {condition: service_healthy} + broker: {condition: service_healthy} + openbao: {condition: service_started} + healthcheck: + test: [CMD, wget, -q, -O, /dev/null, http://127.0.0.1:8082/health/ready] + interval: 5s + timeout: 5s + retries: 20 deploy: - replicas: 1 resources: limits: cpus: "${RELAY_CPU_LIMIT:-0.25}" memory: ${RELAY_MEM_LIMIT:-128M} - healthcheck: - test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8082/health/ready"] - interval: 10s - timeout: 5s - retries: 12 - start_period: 10s - restart: unless-stopped - # Public entry point. Active /health/ready probes remove a not-ready replica from - # rotation entirely; infra/lb/haproxy.cfg holds the upstream, checks and retries. lb: - image: haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122 - - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" - networks: [default, observability] + <<: *gateway + networks: [default, observability, edge] volumes: - - ./infra/lb/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro + - type: bind + source: ./infra/lb/haproxy.cfg + target: /usr/local/etc/haproxy/haproxy.cfg + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/lb + target: /run/identity + read_only: true + bind: {create_host_path: false} ports: - - "127.0.0.1:${SERVER_PORT:-8080}:80" - # Operator-only stats page on loopback: shows which replica is UP/DOWN and why. + - "127.0.0.1:${PUBLIC_PORT:-8443}:8443" - "127.0.0.1:${LB_STATS_PORT:-8404}:8404" depends_on: - api: - condition: service_healthy - deploy: - resources: - limits: - cpus: "${LB_CPU_LIMIT:-0.25}" - memory: 48M - restart: unless-stopped + api: {condition: service_healthy} + healthcheck: {disable: true} - # --- Lab6 telemetry profile ------------------------------------------------ - # Start with: docker compose --profile telemetry up -d --build otel-collector: - # Manifest-list digest: Docker selects the architecture automatically. - # Override OTEL_COLLECTOR_IMAGE only for a registry mirror. - image: ${OTEL_COLLECTOR_IMAGE:-otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b} - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" - environment: - GOMEMLIMIT: 140MiB - profiles: [telemetry] - command: ["--config=/etc/otel/collector.yaml"] + <<: *hardened + image: otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b + user: "10001:10001" + command: [--config=/etc/otel/collector.yaml] + environment: {GOMEMLIMIT: 140MiB} + networks: + default: {aliases: [collector]} + observability: {aliases: [collector]} volumes: - - ./infra/otel/collector.yaml:/etc/otel/collector.yaml:ro - networks: [default, observability] + - type: bind + source: ./infra/otel/collector.yaml + target: /etc/otel/collector.yaml + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/collector + target: /run/identity + read_only: true + bind: {create_host_path: false} + healthcheck: {disable: true} deploy: resources: limits: cpus: "${OTEL_COLLECTOR_CPU_LIMIT:-0.25}" memory: ${OTEL_COLLECTOR_MEM_LIMIT:-192M} - restart: unless-stopped + + collector-tls: + <<: *gateway + network_mode: service:otel-collector + volumes: + - type: bind + source: ./infra/telemetry-gateway/collector.cfg + target: /usr/local/etc/haproxy/haproxy.cfg + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/collector + target: /run/identity + read_only: true + bind: {create_host_path: false} + depends_on: + otel-collector: {condition: service_started} + healthcheck: {disable: true} prometheus: - image: ${PROMETHEUS_IMAGE:-prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2} - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" - environment: - GOMEMLIMIT: 256MiB - profiles: [telemetry] - command: - - --config.file=/etc/prometheus/prometheus.yml - - --storage.tsdb.path=/prometheus - - --storage.tsdb.retention.time=10d - - --storage.tsdb.retention.size=2GB - - --web.enable-lifecycle + <<: *hardened + image: prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2 + user: "65534:65534" + command: [--config.file=/etc/prometheus/prometheus.yml, --web.listen-address=127.0.0.1:19090, --storage.tsdb.path=/prometheus, --storage.tsdb.retention.time=10d, --storage.tsdb.retention.size=2GB] + networks: [observability, edge] + environment: {GOMEMLIMIT: 256MiB} volumes: - - ./infra/prometheus:/etc/prometheus:ro - prometheus-data:/prometheus - ports: - - "127.0.0.1:${PROMETHEUS_PORT:-9090}:9090" - networks: [observability] + - type: bind + source: ./infra/prometheus + target: /etc/prometheus + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/prometheus + target: /run/identity + read_only: true + bind: {create_host_path: false} + ports: ["127.0.0.1:${PROMETHEUS_PORT:-9090}:9090"] + depends_on: + volume-init: {condition: service_completed_successfully} + healthcheck: + test: [CMD, wget, -q, -O, /dev/null, http://127.0.0.1:19090/-/ready] + interval: 5s + timeout: 5s + retries: 20 deploy: resources: limits: cpus: "${PROMETHEUS_CPU_LIMIT:-0.50}" memory: ${PROMETHEUS_MEM_LIMIT:-320M} - healthcheck: - test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:9090/-/healthy >/dev/null || exit 1"] - interval: 10s - timeout: 5s - retries: 12 - start_period: 10s - restart: unless-stopped + + prometheus-tls: + <<: *gateway + network_mode: service:prometheus + volumes: + - type: bind + source: ./infra/telemetry-gateway/prometheus.cfg + target: /usr/local/etc/haproxy/haproxy.cfg + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/prometheus + target: /run/identity + read_only: true + bind: {create_host_path: false} + depends_on: + prometheus: {condition: service_started} + healthcheck: {disable: true} loki: - image: ${LOKI_IMAGE:-grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511} - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" - environment: - GOMEMLIMIT: 256MiB - profiles: [telemetry] - command: ["-config.file=/etc/loki/loki.yaml"] + <<: *hardened + image: grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511 + user: "10001:10001" + command: [-config.file=/etc/loki/loki.yaml] + networks: [observability, edge] + environment: {GOMEMLIMIT: 256MiB} volumes: - - ./infra/loki/loki.yaml:/etc/loki/loki.yaml:ro - loki-data:/loki - ports: - - "127.0.0.1:${LOKI_PORT:-3100}:3100" - networks: [observability] + - type: bind + source: ./infra/loki/loki.yaml + target: /etc/loki/loki.yaml + read_only: true + bind: {create_host_path: false} + ports: ["127.0.0.1:${LOKI_PORT:-3100}:3100"] + depends_on: + volume-init: {condition: service_completed_successfully} + healthcheck: {disable: true} deploy: resources: limits: cpus: "${LOKI_CPU_LIMIT:-0.50}" memory: ${LOKI_MEM_LIMIT:-320M} - # Distroless image: no /bin/sh or wget. Readiness is checked through - # Prometheus `up` and the /ready endpoint from the host. - healthcheck: - disable: true - restart: unless-stopped + + loki-tls: + <<: *gateway + network_mode: service:loki + volumes: + - type: bind + source: ./infra/telemetry-gateway/loki.cfg + target: /usr/local/etc/haproxy/haproxy.cfg + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/loki + target: /run/identity + read_only: true + bind: {create_host_path: false} + depends_on: + loki: {condition: service_started} + healthcheck: {disable: true} tempo: - image: ${TEMPO_IMAGE:-grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4} - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" - environment: - GOMEMLIMIT: 640MiB - profiles: [telemetry] - command: ["-config.file=/etc/tempo/tempo.yaml"] + <<: *hardened + image: grafana/tempo:2.10.10@sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38 + user: "10001:10001" + command: [-config.file=/etc/tempo/tempo.yaml] + networks: [observability, edge] + environment: {GOMEMLIMIT: 640MiB} volumes: - - ./infra/tempo/tempo.yaml:/etc/tempo/tempo.yaml:ro - tempo-data:/var/tempo - ports: - - "127.0.0.1:${TEMPO_PORT:-3200}:3200" - networks: [observability] + - type: bind + source: ./infra/tempo/tempo.yaml + target: /etc/tempo/tempo.yaml + read_only: true + bind: {create_host_path: false} + ports: ["127.0.0.1:${TEMPO_PORT:-3200}:3200"] + depends_on: + volume-init: {condition: service_completed_successfully} + healthcheck: {disable: true} deploy: resources: limits: cpus: "${TEMPO_CPU_LIMIT:-0.25}" memory: ${TEMPO_MEM_LIMIT:-768M} - # Distroless image: no /bin/sh or wget. Readiness is checked through - # Prometheus `up` and the /ready endpoint from the host. - healthcheck: - disable: true - restart: unless-stopped + + tempo-tls: + <<: *gateway + network_mode: service:tempo + volumes: + - type: bind + source: ./infra/telemetry-gateway/tempo.cfg + target: /usr/local/etc/haproxy/haproxy.cfg + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/tempo + target: /run/identity + read_only: true + bind: {create_host_path: false} + depends_on: + tempo: {condition: service_started} + healthcheck: {disable: true} grafana: - image: ${GRAFANA_IMAGE:-grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84} - logging: - driver: json-file - options: - max-size: "10m" - max-file: "3" - profiles: [telemetry] - env_file: - - path: ./secrets/grafana.env - required: true + <<: *hardened + image: grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84 + user: "472:472" + networks: [observability, edge] environment: - GOMEMLIMIT: 256MiB + GF_SERVER_HTTP_ADDR: 127.0.0.1 + GF_SERVER_HTTP_PORT: "13000" + GF_SERVER_PROTOCOL: http + GF_SERVER_ROOT_URL: "https://localhost:${GRAFANA_PORT:-3000}/" + GF_SECURITY_ADMIN_PASSWORD__FILE: /etc/grafana/provisioning/admin-password GF_AUTH_ANONYMOUS_ENABLED: "false" + GF_AUTH_PROXY_ENABLED: "false" GF_USERS_ALLOW_SIGN_UP: "false" volumes: - - ./infra/grafana/provisioning:/etc/grafana/provisioning:ro - - ./infra/grafana/dashboards:/var/lib/grafana/dashboards:ro - grafana-data:/var/lib/grafana - ports: - - "127.0.0.1:${GRAFANA_PORT:-3000}:3000" - networks: [observability] + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/backends/grafana + target: /etc/grafana/provisioning + read_only: true + bind: {create_host_path: false} + - type: bind + source: ./infra/grafana/dashboards + target: /var/lib/grafana/dashboards + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/grafana + target: /run/identity + read_only: true + bind: {create_host_path: false} + ports: ["127.0.0.1:${GRAFANA_PORT:-3000}:3000"] + depends_on: + volume-init: {condition: service_completed_successfully} + healthcheck: + test: [CMD, wget, -q, -O, /dev/null, http://127.0.0.1:13000/api/health] + interval: 5s + timeout: 5s + retries: 20 deploy: resources: limits: cpus: "${GRAFANA_CPU_LIMIT:-0.25}" memory: ${GRAFANA_MEM_LIMIT:-512M} - healthcheck: - test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:3000/api/health >/dev/null || exit 1"] - interval: 10s - timeout: 5s - retries: 12 - start_period: 10s - restart: unless-stopped + + grafana-tls: + <<: *gateway + network_mode: service:grafana + volumes: + - type: bind + source: ./infra/telemetry-gateway/grafana.cfg + target: /usr/local/etc/haproxy/haproxy.cfg + read_only: true + bind: {create_host_path: false} + - type: bind + source: ${LAB7_SECRETS_DIR:-./secrets/lab7}/pki/grafana + target: /run/identity + read_only: true + bind: {create_host_path: false} + depends_on: + grafana: {condition: service_started} + healthcheck: {disable: true} networks: - default: - observability: - + default: {internal: true} + observability: {internal: true} + # Docker Desktop does not publish ports for internal-only namespaces. + # Only CA-verified TLS owners join edge; API replicas still have no host ports. + edge: volumes: postgres18-data: @@ -629,3 +863,5 @@ volumes: loki-data: tempo-data: grafana-data: + openbao-raft-data: + openbao-audit: diff --git a/config/dev/config.yaml b/config/dev/config.yaml index 5e6cd56..71c70c8 100644 --- a/config/dev/config.yaml +++ b/config/dev/config.yaml @@ -17,10 +17,9 @@ postgres: host: localhost port: 5432 database: messenger - user: messenger - # Dev default for a local run without environment overrides; POSTGRES_PASSWORD wins. - password: messenger - ssl_mode: disable + user: "" + password: "" + ssl_mode: verify-full max_conns: 10 min_conns: 1 max_conn_lifetime: 1h diff --git a/contracts/trust-matrix.md b/contracts/trust-matrix.md index 0c2a977..6d2400e 100644 --- a/contracts/trust-matrix.md +++ b/contracts/trust-matrix.md @@ -1,37 +1,96 @@ -# Матрица доверия — заполнить в решении lab7 +# Матрица доверия — реализованный стенд lab7 -Это обязательная матрица покрытия. Для каждой строки укажите реальный порт, endpoint, CA, service identity, проверку SAN/ACL, срок жизни credentials и команду положительного/отрицательного теста. TLS шифрует и подтверждает сервер; mTLS также проверяет клиента. При доверенном CA всё равно нужно ограничивать разрешённую identity. Plaintext hop допустим только внутри закрытого локального transport/proxy boundary, без опубликованного обхода; границу и rationale нужно доказать. +## Identities, CA и leases -| Связь | Минимум на 3 | Дополнительно на 4 | Доказательство / конфиг | -| --- | --- | --- | --- | -| Клиент → ingress/LB | TLS, CA + hostname, Bearer | Проверка expiry/revocation сессии и общего login rate limit | TODO | -| LB → API (все реплики) | mTLS + allowlist LB identity | Ротация leaf без обхода проверки | TODO | -| API/worker → PostgreSQL | TLS verify-full + раздельные ограниченные DB roles | Ротация credentials; mTLS — допустимое усиление | TODO | -| API/worker → S3 | TLS + разные scoped credentials/prefix rights | Проверка denied prefix и ротация | TODO | -| API/worker → broker | TLS + разные producer/consumer identities и ACL | mTLS + ограничение допустимых SAN/ролей | TODO | -| API/worker → Collector | TLS; сеть/аутентификация запрещает произвольный ingest | mTLS с раздельными identities | TODO | -| Collector → telemetry backends | TLS + scoped backend credentials или mTLS | Ротация и проверка least privilege | TODO | -| Grafana → data sources | TLS с проверкой сервера, ограниченная identity | Отрицательные проверки доступа | TODO | -| API/worker/agent → OpenBao | TLS + сервисный auth + scoped policy | Renewal/expiry/revocation | TODO | -| Оператор → OpenBao/Grafana/S3 admin | TLS + authentication, доступ локальный/через защищённый канал | Разделение operator/application roles | TODO | -| API → Redis/Valkey, если используется | TLS + ACL/пароль с минимальными правами | Ротация; mTLS по возможности | TODO | -| Replication/кластерные каналы, если добавлены | TLS/mTLS либо подтверждённый шифрованный transport | Проверка заявленной модели отказа | TODO | +Все TLS endpoints проверяются по CA и DNS SAN; TLS ≥1.2. Offline root находится +у оператора вне checkout, OpenBao выдаёт EC P-256 leaf через внутренний intermediate. +URI service identity — `spiffe://mtusi/`; DNS SANs задаёт +`scripts/lab7_environment.py:ROLES`. Доверенный CA сам по себе не является ACL. -Нет выбранного компонента — отметьте N/A с причиной, а не оставляйте пустую строку. Внутренний публичный health listener, если нужен, минимален и изолирован; через него нельзя обращаться к бизнес-API без mTLS. Отдельно задокументируйте scrape/health/bootstrap каналы: они тоже не должны создавать обход. +Default leaf TTL — 1h, максимум PKI role — 1h; host-side `make renewer` +выпускает новые leaf каждые 30 минут и синхронизирует CRL; исследовательский renewal/expiry +использует 20s. Cert-auth tokens: 60s, max/explicit max300s. KV freshness у Go +приложения — 60s, независимо от срока leaf и token; admission закрывается за1s +до ближайшего deadline. Backend KV passwords/SigV4 keys статические и живут до +явной ротации — это не динамические60s credentials. Session TTL3600s; +server хранит только SHA-256 token hash. -## Обязательные отрицательные проверки +| Связь | Endpoint / протокол | Проверка identity и права | Lease / reload | Положительная и отрицательная проверка | +| --- | --- | --- | --- | --- | +| Клиент → ingress/LB | `https://localhost:8443`, TLS, Bearer | DNS SANlocalhost; без clientcert. LB заменяет forwarding headers и удаляет X-User-Id | LB leaf; пользовательская session3600s/logout/expiry | `make test test-security`; `public_ca_hostname`, `http_acl_logout_expiry_bounds`, `shared_rate_limit` | +| LB → все API-реплики | `api-replica:8080`, native mTLS | LB проверяет SANapi-replica/CA/CRL; Go server требует точный URI`spiffe://mtusi/lb` | Atomic leaf/CRL reload Go; trust changes restart; tickets/cache off | `mtls_and_telemetry_acl`: lb200; absent/wrongCA/wrongURI TLS拒绝; `make test-pki` oldLB revoke/retire | +| API/worker/relay → PostgreSQL | `postgres:5432`, native TLS+SCRAM, verify-full | Раздельные messenger_api/worker/relay roles; no superuser/DDL. Worker/relay не читают users/sessions/messages | Статический password в ownKV; connection lifetime30s; credentials change → bounded restart | `database_privileges`: SQLSTATE42501; `make integration-test` actual nativeTLS DB suites | +| API/worker → S3 | `https://seaweedfs:8333`, native TLS+SigV4 | API stagingRead/Write, finalRead; worker managed-prefixRead/Write+bucketList; foreign prefixes/buckets403 | Static keys until explicitrotation; role-specific ownKV. No claim of required clientcert on S3HTTP | `s3_prefix_acl`: GET/PUT/DELETE/COPY+fullreadback; `make test-presign test-queue`; workerkeyrotation inPKIstudy | +| Relay/API outbox/worker → broker | `broker:5671`, native mTLS/EXTERNAL-only | API commits DBoutbox, relay publishes onlyattachments.jobs; worker consumes onlyattachment.process.v1. First DNS SAN principal, anchored broker ACL | Leaf+broker user permissions; nativeprincipal revoke distinct from serial CRL | `broker_external_acl`: positive relaypublish/workerconsume; opposite/topology/wrongDNS403, no-cert/wrongCA TLS rejection | +| API/worker/relay → Collector | `otel-collector:4318`, mTLS gateway → loopback14318 | Exact CNapi/worker/relay and POST/v1/{traces,metrics,logs}; unknownCN/verb/path denied | Gateway loads CA/CRL atstartup; revoke/rollover reloads and drains | `mtls_and_telemetry_acl`: api200, lb403, missing/wrongCA rejection; full `make test-observability` | +| Collector → telemetry backends | Loki`https://loki:3100`; TempoGRPCS`tempo:4437` | CollectorCN onlylogpush/OTLP; no dataquery. Native hops127.0.0.1:13100/14317 | Distinct collectorleaf; fixedsingletenantfake | `mtls_and_telemetry_acl` collectorquery403; actual traces/logs in `make test-observability` | +| Grafana → data sources | Prometheus9090/Loki3100/Tempo3200, HTTPS/mTLS | GrafanaCN query allowlist; push/delete/admin/reload forbidden; CA+hostname verified | Ownleaf in secureJsonData rendered outsideGit; rotation rerenders/restarts | `mtls_and_telemetry_acl` forbiddenwrite403; Grafana/dataSources/TraceQL correlation intelemetrygate | +| API/worker/relay → OpenBao | `https://openbao:8200`, verifiedTLS+cert-auth | Authrole checks CN+URI; ownsecret/data/ and ownpki/issue/ only; no root/defaultpolicy | Token60s/max300s; cert reauth; KVfresh60s; independentleafdeadline | `bao_api_policy`: ownKV200, foreignKV/issuer/policyadmin403; `make test-pki` renewal/expiry/recovery | +| Оператор → OpenBao/Grafana/S3 admin | LoopbackHTTPS8200/3000/8333 | Separate operatorcertificate+scopedBaopolicy; Grafana localpassword; SigV4S3operator. No anonymousadmin | Root token revoked afterbootstrap; unseal2-of-3 hoststate; operatorleafrotation | `securityctl.py up`, `audit-summary`, S3readinessfullbytes; noappoperatorcredentialmounts inisolation | +| API → Redis | `redis:6379`, nativeTLS+ACLpassword | `cache` user: chat_list:* / lock:chat_list:* onlyGET/SET/DEL/PING/EVAL/scripts; default useroff | StaticownKVpassword; RedisAOF persists; no requiredclientcert claimed | `redis_tls_cache_acl`: PONG/allowedcache, foreignkeyNOPERM; nativeTLS integrationDB7 | +| Replication/cluster channels | ExternalreplicationN/A: allstatefulstores single-node | BaoRaftcluster127.0.0.1:8201nativeTLS; S3master/filer/volume oneclosednamespace, internalgRPCmTLSCNs3; telemetrygossiploopback | NoHAclaim forDB/S3/broker/Bao/host | `runtime_container_network_isolation`; `seaweed_auxiliary_mtls`; actualpersistence/bothAPIreplicafailures | -1. HTTPS с правильным CA/hostname проходит; с пустым/чужим CA и неправильным hostname — ошибка верификации, не «сервер недоступен». -2. LB→API: без client cert, с cert чужого CA, с запрещённой identity от доверенного CA — отказ; с разрешённой LB identity — успех. -3. На 4 повторите набор для broker и Collector; ограничение на network policy не заменяет проверку identity. -4. Пользователь вне чата не читает metadata/content и не прикрепляет чужой файл; поддельный X-User-Id не меняет Bearer identity. -5. OpenBao app policy читает только свой secret/path; запись policy и чтение чужого path запрещены. Worker не получает admin credentials API/БД/S3. -6. На 4 отзовите secret/cert и дождитесь контролируемого эффекта с учётом действующих соединений, TLS resumption и cache/TTL. Покажите новое подключение, иначе тест отзыва может ничего не проверить. +## Служебные, scrape и health каналы -## Bootstrap и эксплуатация +| Канал | Boundary / identity | Проверка | +| --- | --- | --- | +| Local API/worker/relay health8084/8081/8082 | Namespace loopback, no business API; no hostpublication | Из соседнего defaultnamespaceconnection_refused; Gohealthcloses admission onauthorizationexpiry | +| HAProxy stats8404 | mTLS, CNoperator/prometheus; monitoronly/metrics | Separate healthbackend excluded fromAPI SLI; Prometheus scrape overTLS | +| Collector metrics8888/8889, health13134 | mTLS/CNprometheus oroperator; localhops18888/18889/13133 | Privateportprobes, fulltelemetryscrapes | +| Prometheus/Loki/Tempo selfmetrics | HTTPS/mTLS/CNprometheus GETmetrics/ready only | Wrongqueryrole403; native19090/13100/13200 andgRPC/gossip notnetwork-accessible | +| RabbitMQ management15671, scrape15693 | mTLS HAProxy → loopback15672/15692; operatoradmin Basic onlymanagement, Prometheus onlyscrape | NoAMQP5672 orplaintextmanagement published; brokerACL/scapedata | +| S3 auxiliary18333 | Native mTLS, onlyCNs3; HTTP2 ALPNh2 | api/worker/operator/no-cert denied, s3TLSchannelaccepted; not anadminmethodproof | +| S3 master/filer/volume | HTTP9333/8888/8080 andgRPC19333/18888/18080 onnamespace loopback; gRPC additionallyCNs3 | Neighbor namespaceconnection_refused; Iceberg8181/Lance9101 disabled, not excluded | +| Migrations/S3-init/volume-init | Explicitoperatorjobs; no rootCA/unseal mount | Migrate DBoperator only; S3init operator only; volume-init has no network/socket, CHOWN/DAC_OVERRIDE only | -В репозитории только открытые конфиги, policy templates и scripts. CA private key, leaf keys, root token, unseal shares и SecretID не коммитятся, не запекаются в образ и не печатаются в отчёте. Для локального стенда оператор создаёт их вне Git и передаёт через files/secrets с ограниченными правами. Опишите, кто имеет доступ к CA/unseal, что нужно после рестарта OpenBao и как восстановить работу. +Native plaintext hops exist **only within the shared Linux network namespace** +of a backend+its TLS gateway, or S3co-located internal HTTP components. A helper +compares actual `/proc/self/ns/net`, not just containerIDs. None of these listeners +is a published bypass; only TLS owner joins routable networks. `default` is used +by apps, `observability` by telemetry, `edge` by their TLS owners. -OpenBao не использует dev-mode. Выберите persistent storage и auth метод (например AppRole с короткоживущим SecretID/response wrapping, cert auth или иная обоснованная identity). Не подменяйте root token постоянной переменной BAO_TOKEN в приложении. Рабочие tokens имеют policy, TTL и renewal/re-auth сценарий. Статические KV secrets на 3 допустимы при реальном чтении через сервисную identity; динамические DB credentials — хорошее расширение, но не обязательное название технологии. +## Bootstrap, current-version и отзыв -Разрешённый компромисс учебного стенда: ручной operator init/unseal, если он безопасно документирован и не нужен при каждом обычном рестарте API. Автоматическое хранение всех unseal shares рядом с OpenBao без защиты не считается решённым bootstrap. +1. `cp .env.example .env; make up`: offlinekeys/backendcredentials/complete role + versions are generated locally; init/unseal/provision/migrations follow. +2. RootCA/privateoperator/unseal state is in `~/.local/share/mtusi-lab7/` + with0700/0600. Only public CA/intermediate/CRLs and each role's own leaf/key + enter role mounts. Operator recovery material never enters app/images/Git. +3. Native consumers use `current` alias. Every Go snapshot reads one bounded + regular `current-version` selector and immutable `versions/`; cert/key/CA/CRL + cannot be mixed across a swap. Selector is owner/group-readable before atomic + publication. No last-known-invalid fallback, arbitrary path or symlink retry. +4. `make pki-renew ROLE=api CERT_TTL=1h` and `renew-watch` use owncert-auth. Token + renewal cannot renew theleaf. Missing/expired/revoked material fails closed. +5. `securityctl.py revoke ROLE --serial SERIAL`: publishes issuer-signed CRLs, + updates BaoauthCRLs, thenreloads/drains nativeCRL-consumingHAProxy gateways. + Go verifies currentCRLs onfreshconnections. Principalcompromise also requires + backendcredential/token/authrole disable; RabbitMQ EXTERNAL user/connection + revocation is separate and not falsely represented by CRLfileupdate. +6. Offline rootCRLs are regenerated before their final24h and onoperator sync; + nativegateways are reconciled on `up`. StaleCRL verification is never disabled. +7. CArollover uses prepare(overlapCA/CRLs+authtrust) → issue(newintermediate/leaves) + → retire(oldCA/issuer/authCRLs). Retire re-publishes every running role identity + with a new-only trust bundle (the leaf is unchanged), so an old certificate is + rejected by trust, not by a missing CRL; a process whose mounted trust differs + from its startup roots fails closed (`restart required`). Prepare/retire reload + api/worker/relay one replica at a time; issue only reloads native owners and + Go re-reads the new leaf on fresh handshakes. Readiness closes on root removal + so LB retires a not-yet-restarted replica instead of routing into TLS failures. + Study checks oldtrustedleaf during overlap, fresh/resumption attempts after + retirement, newpipeline/Redis/Bao/telemetry paths and retained message/filebytes; + each phase waits for the full + public upload pipeline before asserting contract details. + +## Обязательные отрицательные наборы + +- CA/hostname errors are checked as verification errors, not TCPtimeouts. +- API/broker/Collector: allowedidentitypositive, absentcert, foreignCA andsameCA + forbiddenrole negatives. HTTP403 aftertrustedmTLS is distinguished from TLSdenial. +- Foreignchat/attachment access, forgedX-User-Id, logout/DBexpiry, uploadbounds, + shared429/Retry-After, nativeDB/S3/broker/Baopolicy allow/deny are runtime-tested. +- Leaf/CArevocation checks freshconnections and explicit resumptionattempts; + tickets/cacheoff means no claim of a positively resumedsession. +- `evidence/lab7/security.json`, `verification.json`, `restart-scope.json`, + `failover-scope.json`, `sequential-failover.json` andPKIstudy contain sanitized + observations; [scantriage](../security/SCAN_TRIAGE.md) names residualrisk. diff --git a/docker-compose.local.yaml b/docker-compose.local.yaml index 06f5c55..b9bfd1f 100644 --- a/docker-compose.local.yaml +++ b/docker-compose.local.yaml @@ -1,283 +1,12 @@ -name: mtusi-messenger-lab6 - -# Built once by the api service; migrate and s3-init consume the same image. -x-app: &app - image: mtusi-messenger:lab6 - +# Secure local/operator integration ports; never a published API bypass. +include: + - path: compose.yaml services: postgres: - image: postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873 - environment: - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_DB: ${POSTGRES_DB:-messenger} + networks: [default, edge] ports: - - "127.0.0.1:${POSTGRES_PORT:-5432}:5432" - volumes: - - postgres18-data:/var/lib/postgresql - healthcheck: - test: ["CMD-SHELL", "pg_isready -U $${POSTGRES_USER} -d $${POSTGRES_DB}"] - interval: 5s - timeout: 5s - retries: 10 - start_period: 5s - restart: unless-stopped + - "127.0.0.1:${TEST_POSTGRES_PORT:-15432}:5432" redis: - image: redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499 - command: - - redis-server - - --appendonly - - "yes" - - --appendfsync - - everysec - - --save - - "60" - - "1" + networks: [default, edge] ports: - - "127.0.0.1:${REDIS_PORT:-6379}:6379" - volumes: - - redis7-data:/data - healthcheck: - test: ["CMD", "redis-cli", "ping"] - interval: 5s - timeout: 3s - retries: 10 - start_period: 3s - restart: unless-stopped - seaweedfs: - image: chrislusf/seaweedfs:3.80@sha256:1055999e08eed1789b0ae45d235126e4495e23d3fb9d6396293fd42539b1ae6a - command: - - server - - -s3 - - -s3.config=/etc/seaweedfs/s3.json - - -dir=/data - - -master.volumeSizeLimitMB=64 - volumes: - - ./infra/s3/s3.json:/etc/seaweedfs/s3.json:ro - - seaweedfs-data:/data - ports: - - "127.0.0.1:${S3_PORT:-8333}:8333" - healthcheck: - test: ["CMD-SHELL", "wget -q -O /dev/null http://127.0.0.1:8333/healthz || exit 1"] - interval: 5s - timeout: 3s - retries: 20 - start_period: 60s - restart: unless-stopped - - - broker: - image: rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528 - hostname: broker - environment: - RABBITMQ_DEFAULT_USER: ${BROKER_USER:-messenger} - RABBITMQ_DEFAULT_PASS: ${BROKER_PASSWORD:-messenger} - RABBITMQ_DEFAULT_VHOST: ${BROKER_VHOST:-messenger} - volumes: - - rabbitmq-data:/var/lib/rabbitmq - ports: - - "127.0.0.1:${BROKER_MANAGEMENT_PORT:-15672}:15672" - healthcheck: - test: ["CMD", "rabbitmq-diagnostics", "-q", "ping"] - interval: 10s - timeout: 5s - retries: 12 - start_period: 30s - restart: unless-stopped - - s3-init: - <<: *app - entrypoint: ["/usr/local/bin/s3init"] - environment: - S3_ENDPOINT: http://seaweedfs:8333 - S3_REGION: ${S3_REGION:-us-east-1} - S3_BUCKET: ${S3_BUCKET:-messenger-attachments} - S3_ADMIN_ACCESS_KEY: ${S3_ADMIN_ACCESS_KEY:-lab4admin} - S3_ADMIN_SECRET_ACCESS_KEY: ${S3_ADMIN_SECRET_ACCESS_KEY:-lab4admin-secret} - S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-lab4app} - S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-lab4app-secret} - depends_on: - seaweedfs: - condition: service_healthy - healthcheck: - disable: true - restart: "no" - - migrate: - <<: *app - entrypoint: ["/usr/local/bin/migrate"] - command: ["up"] - environment: - APP_CONFIG: /etc/messenger/dev/config.yaml - POSTGRES_HOST: postgres - POSTGRES_PORT: "5432" - POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_SSL_MODE: disable - depends_on: - postgres: - condition: service_healthy - restart: "no" - - api: - <<: *app - build: - context: . - dockerfile: Dockerfile - env_file: - - path: .env - required: false - environment: - APP_CONFIG: /etc/messenger/dev/config.yaml - POSTGRES_HOST: postgres - POSTGRES_PORT: "5432" - POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_SSL_MODE: disable - REDIS_ENABLED: "${REDIS_ENABLED:-true}" - REDIS_HOST: redis - REDIS_PORT: "6379" - CACHE_ENABLED: "${CACHE_ENABLED:-true}" - S3_ENDPOINT: http://seaweedfs:8333 - S3_PUBLIC_ENDPOINT: ${S3_PUBLIC_ENDPOINT:-http://127.0.0.1:8333} - S3_REGION: ${S3_REGION:-us-east-1} - S3_BUCKET: ${S3_BUCKET:-messenger-attachments} - S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-lab4app} - S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-lab4app-secret} - S3_USE_PATH_STYLE: "true" - MAX_UPLOAD_BYTES: ${MAX_UPLOAD_BYTES:-10485760} - MAX_IMAGE_PIXELS: ${MAX_IMAGE_PIXELS:-40000000} - PROCESSING_PIPELINE_VERSION: ${PROCESSING_PIPELINE_VERSION:-1} - PROCESSING_MAX_ATTEMPTS: ${PROCESSING_MAX_ATTEMPTS:-5} - PROCESSING_JOB_TIMEOUT: ${PROCESSING_JOB_TIMEOUT:-120s} - PROCESSING_LEASE_TTL: ${PROCESSING_LEASE_TTL:-180s} - PROCESSING_HEARTBEAT: ${PROCESSING_HEARTBEAT:-30s} - PROCESSING_RETRY_BASE: ${PROCESSING_RETRY_BASE:-2s} - PROCESSING_RETRY_CAP: ${PROCESSING_RETRY_CAP:-60s} - STAGING_ORPHAN_GRACE: ${STAGING_ORPHAN_GRACE:-1h} - STAGING_FAILED_RETENTION: ${STAGING_FAILED_RETENTION:-168h} - ADMISSION_MAX_PENDING_PER_USER: ${ADMISSION_MAX_PENDING_PER_USER:-20} - ADMISSION_MAX_PENDING: ${ADMISSION_MAX_PENDING:-200} - ADMISSION_MAX_STAGED_BYTES: ${ADMISSION_MAX_STAGED_BYTES:-2147483648} - ADMISSION_MAX_CONCURRENT_UPLOADS: ${ADMISSION_MAX_CONCURRENT_UPLOADS:-8} - ports: - - "127.0.0.1:${SERVER_PORT:-8080}:8080" - depends_on: - postgres: - condition: service_healthy - redis: - condition: service_healthy - migrate: - condition: service_completed_successfully - s3-init: - condition: service_completed_successfully - healthcheck: - test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8080/health/ready"] - interval: 10s - timeout: 3s - retries: 5 - start_period: 5s - restart: unless-stopped - - - worker: - <<: *app - entrypoint: ["/usr/local/bin/worker"] - env_file: - - path: .env - required: false - environment: - APP_CONFIG: /etc/messenger/dev/config.yaml - POSTGRES_HOST: postgres - POSTGRES_PORT: "5432" - POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_SSL_MODE: disable - S3_ENDPOINT: http://seaweedfs:8333 - S3_PUBLIC_ENDPOINT: ${S3_PUBLIC_ENDPOINT:-http://127.0.0.1:8333} - S3_REGION: ${S3_REGION:-us-east-1} - S3_BUCKET: ${S3_BUCKET:-messenger-attachments} - S3_ACCESS_KEY_ID: ${S3_ACCESS_KEY_ID:-lab4app} - S3_SECRET_ACCESS_KEY: ${S3_SECRET_ACCESS_KEY:-lab4app-secret} - S3_USE_PATH_STYLE: "true" - MAX_UPLOAD_BYTES: ${MAX_UPLOAD_BYTES:-10485760} - MAX_IMAGE_PIXELS: ${MAX_IMAGE_PIXELS:-40000000} - BROKER_URL: ${BROKER_URL:-amqp://messenger:messenger@broker:5672/messenger} - WORKER_CONCURRENCY: ${WORKER_CONCURRENCY:-1} - WORKER_PREFETCH: ${WORKER_PREFETCH:-1} - WORKER_HEALTH_ADDR: ":8081" - FAULTS_ENABLED: ${FAULTS_ENABLED:-0} - FAULT_TARGET_JOB: ${FAULT_TARGET_JOB:-} - PROCESSING_PIPELINE_VERSION: ${PROCESSING_PIPELINE_VERSION:-1} - PROCESSING_MAX_ATTEMPTS: ${PROCESSING_MAX_ATTEMPTS:-5} - PROCESSING_JOB_TIMEOUT: ${PROCESSING_JOB_TIMEOUT:-120s} - PROCESSING_LEASE_TTL: ${PROCESSING_LEASE_TTL:-180s} - PROCESSING_HEARTBEAT: ${PROCESSING_HEARTBEAT:-30s} - PROCESSING_RETRY_BASE: ${PROCESSING_RETRY_BASE:-2s} - PROCESSING_RETRY_CAP: ${PROCESSING_RETRY_CAP:-60s} - ports: - - "127.0.0.1:${WORKER_HEALTH_PORT:-8081}:8081" - depends_on: - postgres: - condition: service_healthy - migrate: - condition: service_completed_successfully - s3-init: - condition: service_completed_successfully - broker: - condition: service_healthy - healthcheck: - test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8081/health/ready"] - interval: 10s - timeout: 5s - retries: 12 - start_period: 10s - restart: unless-stopped - - relay: - <<: *app - entrypoint: ["/usr/local/bin/relay"] - env_file: - - path: .env - required: false - environment: - APP_CONFIG: /etc/messenger/dev/config.yaml - POSTGRES_HOST: postgres - POSTGRES_PORT: "5432" - POSTGRES_DATABASE: ${POSTGRES_DB:-messenger} - POSTGRES_USER: ${POSTGRES_USER:-messenger} - POSTGRES_PASSWORD: ${POSTGRES_PASSWORD:-messenger} - POSTGRES_SSL_MODE: disable - BROKER_URL: ${BROKER_URL:-amqp://messenger:messenger@broker:5672/messenger} - RELAY_HEALTH_ADDR: ":8082" - FAULTS_ENABLED: ${FAULTS_ENABLED:-0} - FAULT_TARGET_JOB: ${FAULT_TARGET_JOB:-} - ports: - - "127.0.0.1:${RELAY_HEALTH_PORT:-8082}:8082" - depends_on: - postgres: - condition: service_healthy - migrate: - condition: service_completed_successfully - broker: - condition: service_healthy - healthcheck: - test: ["CMD", "wget", "-q", "-O", "/dev/null", "http://127.0.0.1:8082/health/ready"] - interval: 10s - timeout: 5s - retries: 12 - start_period: 10s - restart: unless-stopped - -volumes: - postgres18-data: - name: mtusi-messenger-lab6-postgres18-data - redis7-data: - name: mtusi-messenger-lab6-redis7-data - seaweedfs-data: - name: mtusi-messenger-lab6-seaweedfs-data - rabbitmq-data: - name: mtusi-messenger-lab6-rabbitmq-data + - "127.0.0.1:${TEST_REDIS_PORT:-16379}:6379" diff --git a/evidence/lab7/auth.json b/evidence/lab7/auth.json new file mode 100644 index 0000000..23f219d --- /dev/null +++ b/evidence/lab7/auth.json @@ -0,0 +1,4159 @@ +{ + "api_auth": [ + { + "admission_denied_rate": 0.9416666666666667, + "api_cgroup_peak_bytes_after": [ + 75415552, + 83968000 + ], + "api_cgroup_peak_bytes_before": [ + 73928704, + 76103680 + ], + "concurrency": 1, + "elapsed_seconds": 1.4661837499588728, + "incorrect_password_401": 7, + "latency": { + "max_seconds": 0.06670354213565588, + "p50_seconds": 0.005267332773655653, + "p95_seconds": 0.05882104206830263 + }, + "limitations": [ + "Cgroup memory.peak includes container lifetime history; account/shared/local rate limits all contribute to429." + ], + "operations": 120, + "raw_samples": [ + { + "index": 0, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.023914665915071964, + "status": 401 + }, + { + "index": 1, + "instance": "c7f052699205", + "latency_seconds": 0.02887937519699335, + "status": 401 + }, + { + "index": 2, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.024720000103116035, + "status": 401 + }, + { + "index": 3, + "instance": "c7f052699205", + "latency_seconds": 0.032085834071040154, + "status": 401 + }, + { + "index": 4, + "instance": "c7f052699205", + "latency_seconds": 0.025035958271473646, + "status": 401 + }, + { + "index": 5, + "instance": "c7f052699205", + "latency_seconds": 0.05947912530973554, + "status": 401 + }, + { + "index": 6, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.023970082867890596, + "status": 401 + }, + { + "index": 7, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005572292022407055, + "status": 429 + }, + { + "index": 8, + "instance": "c7f052699205", + "latency_seconds": 0.005005833227187395, + "status": 429 + }, + { + "index": 9, + "instance": "c7f052699205", + "latency_seconds": 0.005026833154261112, + "status": 429 + }, + { + "index": 10, + "instance": "c7f052699205", + "latency_seconds": 0.005459500011056662, + "status": 429 + }, + { + "index": 11, + "instance": "c7f052699205", + "latency_seconds": 0.005138041917234659, + "status": 429 + }, + { + "index": 12, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004822417162358761, + "status": 429 + }, + { + "index": 13, + "instance": "c7f052699205", + "latency_seconds": 0.004795291926711798, + "status": 429 + }, + { + "index": 14, + "instance": "c7f052699205", + "latency_seconds": 0.012978916987776756, + "status": 429 + }, + { + "index": 15, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006267667282372713, + "status": 429 + }, + { + "index": 16, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006777208298444748, + "status": 429 + }, + { + "index": 17, + "instance": "c7f052699205", + "latency_seconds": 0.006029583979398012, + "status": 429 + }, + { + "index": 18, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005746207665652037, + "status": 429 + }, + { + "index": 19, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005663666874170303, + "status": 429 + }, + { + "index": 20, + "instance": "c7f052699205", + "latency_seconds": 0.06670354213565588, + "status": 429 + }, + { + "index": 21, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0058347079902887344, + "status": 429 + }, + { + "index": 22, + "instance": "c7f052699205", + "latency_seconds": 0.005375292152166367, + "status": 429 + }, + { + "index": 23, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005038124974817038, + "status": 429 + }, + { + "index": 24, + "instance": "c7f052699205", + "latency_seconds": 0.004781499970704317, + "status": 429 + }, + { + "index": 25, + "instance": "c7f052699205", + "latency_seconds": 0.004799500107765198, + "status": 429 + }, + { + "index": 26, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005084333010017872, + "status": 429 + }, + { + "index": 27, + "instance": "c7f052699205", + "latency_seconds": 0.005552124697715044, + "status": 429 + }, + { + "index": 28, + "instance": "c7f052699205", + "latency_seconds": 0.004913582932204008, + "status": 429 + }, + { + "index": 29, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.05773420911282301, + "status": 429 + }, + { + "index": 30, + "instance": "c7f052699205", + "latency_seconds": 0.005360167007893324, + "status": 429 + }, + { + "index": 31, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005534958094358444, + "status": 429 + }, + { + "index": 32, + "instance": "c7f052699205", + "latency_seconds": 0.005176957696676254, + "status": 429 + }, + { + "index": 33, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00516587495803833, + "status": 429 + }, + { + "index": 34, + "instance": "c7f052699205", + "latency_seconds": 0.004783665761351585, + "status": 429 + }, + { + "index": 35, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004736375063657761, + "status": 429 + }, + { + "index": 36, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004944749642163515, + "status": 429 + }, + { + "index": 37, + "instance": "c7f052699205", + "latency_seconds": 0.004808458033949137, + "status": 429 + }, + { + "index": 38, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005129791796207428, + "status": 429 + }, + { + "index": 39, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.05149208288639784, + "status": 429 + }, + { + "index": 40, + "instance": "c7f052699205", + "latency_seconds": 0.0059977080672979355, + "status": 429 + }, + { + "index": 41, + "instance": "c7f052699205", + "latency_seconds": 0.005799625068902969, + "status": 429 + }, + { + "index": 42, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005267332773655653, + "status": 429 + }, + { + "index": 43, + "instance": "c7f052699205", + "latency_seconds": 0.00511154206469655, + "status": 429 + }, + { + "index": 44, + "instance": "c7f052699205", + "latency_seconds": 0.005073083098977804, + "status": 429 + }, + { + "index": 45, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004995792172849178, + "status": 429 + }, + { + "index": 46, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004964333027601242, + "status": 429 + }, + { + "index": 47, + "instance": "c7f052699205", + "latency_seconds": 0.06021308386698365, + "status": 429 + }, + { + "index": 48, + "instance": "c7f052699205", + "latency_seconds": 0.005915666930377483, + "status": 429 + }, + { + "index": 49, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0059048328548669815, + "status": 429 + }, + { + "index": 50, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005076249595731497, + "status": 429 + }, + { + "index": 51, + "instance": "c7f052699205", + "latency_seconds": 0.005056207999587059, + "status": 429 + }, + { + "index": 52, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004932374693453312, + "status": 429 + }, + { + "index": 53, + "instance": "c7f052699205", + "latency_seconds": 0.0046103340573608875, + "status": 429 + }, + { + "index": 54, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005000332836061716, + "status": 429 + }, + { + "index": 55, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0056701661087572575, + "status": 429 + }, + { + "index": 56, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.05769350007176399, + "status": 429 + }, + { + "index": 57, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007840791251510382, + "status": 429 + }, + { + "index": 58, + "instance": "c7f052699205", + "latency_seconds": 0.005746624898165464, + "status": 429 + }, + { + "index": 59, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005373666994273663, + "status": 429 + }, + { + "index": 60, + "instance": "c7f052699205", + "latency_seconds": 0.0055205002427101135, + "status": 429 + }, + { + "index": 61, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005170166026800871, + "status": 429 + }, + { + "index": 62, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004924125038087368, + "status": 429 + }, + { + "index": 63, + "instance": "c7f052699205", + "latency_seconds": 0.005164000205695629, + "status": 429 + }, + { + "index": 64, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.056165500078350306, + "status": 429 + }, + { + "index": 65, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006847042124718428, + "status": 429 + }, + { + "index": 66, + "instance": "c7f052699205", + "latency_seconds": 0.005685499869287014, + "status": 429 + }, + { + "index": 67, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005352291744202375, + "status": 429 + }, + { + "index": 68, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004773625172674656, + "status": 429 + }, + { + "index": 69, + "instance": "c7f052699205", + "latency_seconds": 0.004888374824076891, + "status": 429 + }, + { + "index": 70, + "instance": "c7f052699205", + "latency_seconds": 0.0046980418264865875, + "status": 429 + }, + { + "index": 71, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00473354198038578, + "status": 429 + }, + { + "index": 72, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004766332916915417, + "status": 429 + }, + { + "index": 73, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.05882104206830263, + "status": 429 + }, + { + "index": 74, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005984791088849306, + "status": 429 + }, + { + "index": 75, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005357958376407623, + "status": 429 + }, + { + "index": 76, + "instance": "c7f052699205", + "latency_seconds": 0.0050283330492675304, + "status": 429 + }, + { + "index": 77, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005039124749600887, + "status": 429 + }, + { + "index": 78, + "instance": "c7f052699205", + "latency_seconds": 0.004465417005121708, + "status": 429 + }, + { + "index": 79, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0043797907419502735, + "status": 429 + }, + { + "index": 80, + "instance": "c7f052699205", + "latency_seconds": 0.004110333044081926, + "status": 429 + }, + { + "index": 81, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004332624841481447, + "status": 429 + }, + { + "index": 82, + "instance": "c7f052699205", + "latency_seconds": 0.005359041970223188, + "status": 429 + }, + { + "index": 83, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.052220291923731565, + "status": 429 + }, + { + "index": 84, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005178833846002817, + "status": 429 + }, + { + "index": 85, + "instance": "c7f052699205", + "latency_seconds": 0.004978042095899582, + "status": 429 + }, + { + "index": 86, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0047519998624920845, + "status": 429 + }, + { + "index": 87, + "instance": "c7f052699205", + "latency_seconds": 0.00493358401581645, + "status": 429 + }, + { + "index": 88, + "instance": "c7f052699205", + "latency_seconds": 0.004906500224024057, + "status": 429 + }, + { + "index": 89, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005149959120899439, + "status": 429 + }, + { + "index": 90, + "instance": "c7f052699205", + "latency_seconds": 0.005047124810516834, + "status": 429 + }, + { + "index": 91, + "instance": "c7f052699205", + "latency_seconds": 0.0050457920879125595, + "status": 429 + }, + { + "index": 92, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.06000341707840562, + "status": 429 + }, + { + "index": 93, + "instance": "c7f052699205", + "latency_seconds": 0.005376915913075209, + "status": 429 + }, + { + "index": 94, + "instance": "c7f052699205", + "latency_seconds": 0.005341209005564451, + "status": 429 + }, + { + "index": 95, + "instance": "c7f052699205", + "latency_seconds": 0.0053137498907744884, + "status": 429 + }, + { + "index": 96, + "instance": "c7f052699205", + "latency_seconds": 0.00533537520095706, + "status": 429 + }, + { + "index": 97, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005519458092749119, + "status": 429 + }, + { + "index": 98, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00486195832490921, + "status": 429 + }, + { + "index": 99, + "instance": "c7f052699205", + "latency_seconds": 0.0653402078896761, + "status": 429 + }, + { + "index": 100, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006458832882344723, + "status": 429 + }, + { + "index": 101, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006028125062584877, + "status": 429 + }, + { + "index": 102, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005547292064875364, + "status": 429 + }, + { + "index": 103, + "instance": "c7f052699205", + "latency_seconds": 0.0054204161278903484, + "status": 429 + }, + { + "index": 104, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005024792160838842, + "status": 429 + }, + { + "index": 105, + "instance": "c7f052699205", + "latency_seconds": 0.005175542086362839, + "status": 429 + }, + { + "index": 106, + "instance": "c7f052699205", + "latency_seconds": 0.004610999953001738, + "status": 429 + }, + { + "index": 107, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.060029332991689444, + "status": 429 + }, + { + "index": 108, + "instance": "c7f052699205", + "latency_seconds": 0.005939790979027748, + "status": 429 + }, + { + "index": 109, + "instance": "c7f052699205", + "latency_seconds": 0.00527929188683629, + "status": 429 + }, + { + "index": 110, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00524208415299654, + "status": 429 + }, + { + "index": 111, + "instance": "c7f052699205", + "latency_seconds": 0.005161291919648647, + "status": 429 + }, + { + "index": 112, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00498474994674325, + "status": 429 + }, + { + "index": 113, + "instance": "c7f052699205", + "latency_seconds": 0.005227250047028065, + "status": 429 + }, + { + "index": 114, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005067083053290844, + "status": 429 + }, + { + "index": 115, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.004498665686696768, + "status": 429 + }, + { + "index": 116, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.05834466591477394, + "status": 429 + }, + { + "index": 117, + "instance": "c7f052699205", + "latency_seconds": 0.0058907498605549335, + "status": 429 + }, + { + "index": 118, + "instance": "c7f052699205", + "latency_seconds": 0.005539583973586559, + "status": 429 + }, + { + "index": 119, + "instance": "c7f052699205", + "latency_seconds": 0.005087666679173708, + "status": 429 + } + ], + "requests_per_second": 81.84513025967316 + }, + { + "admission_denied_rate": 0.9416666666666667, + "api_cgroup_peak_bytes_after": [ + 114163712, + 83968000 + ], + "api_cgroup_peak_bytes_before": [ + 75415552, + 83968000 + ], + "concurrency": 2, + "elapsed_seconds": 1.8183418330736458, + "incorrect_password_401": 7, + "latency": { + "max_seconds": 0.09012062475085258, + "p50_seconds": 0.007667666766792536, + "p95_seconds": 0.08672616630792618 + }, + "limitations": [ + "Cgroup memory.peak includes container lifetime history; account/shared/local rate limits all contribute to429." + ], + "operations": 120, + "raw_samples": [ + { + "index": 0, + "instance": "c7f052699205", + "latency_seconds": 0.029454084113240242, + "status": 401 + }, + { + "index": 1, + "instance": "c7f052699205", + "latency_seconds": 0.05265391664579511, + "status": 401 + }, + { + "index": 2, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.03041662462055683, + "status": 401 + }, + { + "index": 3, + "instance": "c7f052699205", + "latency_seconds": 0.024606625083833933, + "status": 401 + }, + { + "index": 4, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.026958208065479994, + "status": 401 + }, + { + "index": 5, + "instance": "c7f052699205", + "latency_seconds": 0.032173917163163424, + "status": 401 + }, + { + "index": 6, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.02449279185384512, + "status": 401 + }, + { + "index": 7, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006006458308547735, + "status": 429 + }, + { + "index": 8, + "instance": "c7f052699205", + "latency_seconds": 0.006258625071495771, + "status": 429 + }, + { + "index": 9, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006563208997249603, + "status": 429 + }, + { + "index": 10, + "instance": "c7f052699205", + "latency_seconds": 0.006519082933664322, + "status": 429 + }, + { + "index": 11, + "instance": "c7f052699205", + "latency_seconds": 0.029703457839787006, + "status": 429 + }, + { + "index": 12, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.020365457981824875, + "status": 429 + }, + { + "index": 13, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00705345906317234, + "status": 429 + }, + { + "index": 14, + "instance": "c7f052699205", + "latency_seconds": 0.008389833848923445, + "status": 429 + }, + { + "index": 15, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007305791601538658, + "status": 429 + }, + { + "index": 16, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0061006247997283936, + "status": 429 + }, + { + "index": 17, + "instance": "c7f052699205", + "latency_seconds": 0.005771582946181297, + "status": 429 + }, + { + "index": 18, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.07164325006306171, + "status": 429 + }, + { + "index": 19, + "instance": "c7f052699205", + "latency_seconds": 0.07503870921209455, + "status": 429 + }, + { + "index": 20, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006469749845564365, + "status": 429 + }, + { + "index": 21, + "instance": "c7f052699205", + "latency_seconds": 0.006183999590575695, + "status": 429 + }, + { + "index": 22, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005979083012789488, + "status": 429 + }, + { + "index": 23, + "instance": "c7f052699205", + "latency_seconds": 0.006116459146142006, + "status": 429 + }, + { + "index": 24, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005440124776214361, + "status": 429 + }, + { + "index": 25, + "instance": "c7f052699205", + "latency_seconds": 0.005763249937444925, + "status": 429 + }, + { + "index": 26, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08069812506437302, + "status": 429 + }, + { + "index": 27, + "instance": "c7f052699205", + "latency_seconds": 0.07668645773082972, + "status": 429 + }, + { + "index": 28, + "instance": "c7f052699205", + "latency_seconds": 0.007393165957182646, + "status": 429 + }, + { + "index": 29, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007836792152374983, + "status": 429 + }, + { + "index": 30, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00656549958512187, + "status": 429 + }, + { + "index": 31, + "instance": "c7f052699205", + "latency_seconds": 0.006641167216002941, + "status": 429 + }, + { + "index": 32, + "instance": "c7f052699205", + "latency_seconds": 0.09004666609689593, + "status": 429 + }, + { + "index": 33, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09012062475085258, + "status": 429 + }, + { + "index": 34, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007977125234901905, + "status": 429 + }, + { + "index": 35, + "instance": "c7f052699205", + "latency_seconds": 0.0077583747915923595, + "status": 429 + }, + { + "index": 36, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.008059542160481215, + "status": 429 + }, + { + "index": 37, + "instance": "c7f052699205", + "latency_seconds": 0.007135499734431505, + "status": 429 + }, + { + "index": 38, + "instance": "c7f052699205", + "latency_seconds": 0.07780387485399842, + "status": 429 + }, + { + "index": 39, + "instance": "c7f052699205", + "latency_seconds": 0.08185795787721872, + "status": 429 + }, + { + "index": 40, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0069589996710419655, + "status": 429 + }, + { + "index": 41, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.008753582835197449, + "status": 429 + }, + { + "index": 42, + "instance": "c7f052699205", + "latency_seconds": 0.007028665859252214, + "status": 429 + }, + { + "index": 43, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08851249981671572, + "status": 429 + }, + { + "index": 44, + "instance": "c7f052699205", + "latency_seconds": 0.0881784581579268, + "status": 429 + }, + { + "index": 45, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007270833943039179, + "status": 429 + }, + { + "index": 46, + "instance": "c7f052699205", + "latency_seconds": 0.007731999736279249, + "status": 429 + }, + { + "index": 47, + "instance": "c7f052699205", + "latency_seconds": 0.006773749832063913, + "status": 429 + }, + { + "index": 48, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00651079136878252, + "status": 429 + }, + { + "index": 49, + "instance": "c7f052699205", + "latency_seconds": 0.08071866678074002, + "status": 429 + }, + { + "index": 50, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08434383291751146, + "status": 429 + }, + { + "index": 51, + "instance": "c7f052699205", + "latency_seconds": 0.007012625224888325, + "status": 429 + }, + { + "index": 52, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006799208000302315, + "status": 429 + }, + { + "index": 53, + "instance": "c7f052699205", + "latency_seconds": 0.00659641670063138, + "status": 429 + }, + { + "index": 54, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006423874758183956, + "status": 429 + }, + { + "index": 55, + "instance": "c7f052699205", + "latency_seconds": 0.005838166922330856, + "status": 429 + }, + { + "index": 56, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08979200012981892, + "status": 429 + }, + { + "index": 57, + "instance": "c7f052699205", + "latency_seconds": 0.08756441716104746, + "status": 429 + }, + { + "index": 58, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.008409790694713593, + "status": 429 + }, + { + "index": 59, + "instance": "c7f052699205", + "latency_seconds": 0.007887958083301783, + "status": 429 + }, + { + "index": 60, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08415579237043858, + "status": 429 + }, + { + "index": 61, + "instance": "c7f052699205", + "latency_seconds": 0.08158329222351313, + "status": 429 + }, + { + "index": 62, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006480791140347719, + "status": 429 + }, + { + "index": 63, + "instance": "c7f052699205", + "latency_seconds": 0.0064659579657018185, + "status": 429 + }, + { + "index": 64, + "instance": "c7f052699205", + "latency_seconds": 0.006498917005956173, + "status": 429 + }, + { + "index": 65, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006641167216002941, + "status": 429 + }, + { + "index": 66, + "instance": "c7f052699205", + "latency_seconds": 0.0058608329854905605, + "status": 429 + }, + { + "index": 67, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.005521625280380249, + "status": 429 + }, + { + "index": 68, + "instance": "c7f052699205", + "latency_seconds": 0.08340058336034417, + "status": 429 + }, + { + "index": 69, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08362045791000128, + "status": 429 + }, + { + "index": 70, + "instance": "c7f052699205", + "latency_seconds": 0.007076499983668327, + "status": 429 + }, + { + "index": 71, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006719999946653843, + "status": 429 + }, + { + "index": 72, + "instance": "c7f052699205", + "latency_seconds": 0.007153207901865244, + "status": 429 + }, + { + "index": 73, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006028291769325733, + "status": 429 + }, + { + "index": 74, + "instance": "c7f052699205", + "latency_seconds": 0.006996000185608864, + "status": 429 + }, + { + "index": 75, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006444999948143959, + "status": 429 + }, + { + "index": 76, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08261462533846498, + "status": 429 + }, + { + "index": 77, + "instance": "c7f052699205", + "latency_seconds": 0.08177883271127939, + "status": 429 + }, + { + "index": 78, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007949083112180233, + "status": 429 + }, + { + "index": 79, + "instance": "c7f052699205", + "latency_seconds": 0.006974291987717152, + "status": 429 + }, + { + "index": 80, + "instance": "c7f052699205", + "latency_seconds": 0.010318540968000889, + "status": 429 + }, + { + "index": 81, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.009505709167569876, + "status": 429 + }, + { + "index": 82, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.07666849996894598, + "status": 429 + }, + { + "index": 83, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.07693966710940003, + "status": 429 + }, + { + "index": 84, + "instance": "c7f052699205", + "latency_seconds": 0.006428500171750784, + "status": 429 + }, + { + "index": 85, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006513374857604504, + "status": 429 + }, + { + "index": 86, + "instance": "c7f052699205", + "latency_seconds": 0.007301207631826401, + "status": 429 + }, + { + "index": 87, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006989417131990194, + "status": 429 + }, + { + "index": 88, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08532779105007648, + "status": 429 + }, + { + "index": 89, + "instance": "c7f052699205", + "latency_seconds": 0.08451633295044303, + "status": 429 + }, + { + "index": 90, + "instance": "c7f052699205", + "latency_seconds": 0.008980459067970514, + "status": 429 + }, + { + "index": 91, + "instance": "c7f052699205", + "latency_seconds": 0.00763341598212719, + "status": 429 + }, + { + "index": 92, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0073851668275892735, + "status": 429 + }, + { + "index": 93, + "instance": "c7f052699205", + "latency_seconds": 0.006395124830305576, + "status": 429 + }, + { + "index": 94, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08440495794638991, + "status": 429 + }, + { + "index": 95, + "instance": "c7f052699205", + "latency_seconds": 0.07983925007283688, + "status": 429 + }, + { + "index": 96, + "instance": "c7f052699205", + "latency_seconds": 0.007667666766792536, + "status": 429 + }, + { + "index": 97, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007799374870955944, + "status": 429 + }, + { + "index": 98, + "instance": "c7f052699205", + "latency_seconds": 0.0067080422304570675, + "status": 429 + }, + { + "index": 99, + "instance": "c7f052699205", + "latency_seconds": 0.006925750058144331, + "status": 429 + }, + { + "index": 100, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08559104101732373, + "status": 429 + }, + { + "index": 101, + "instance": "c7f052699205", + "latency_seconds": 0.08228179160505533, + "status": 429 + }, + { + "index": 102, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007612542249262333, + "status": 429 + }, + { + "index": 103, + "instance": "c7f052699205", + "latency_seconds": 0.0068436251021921635, + "status": 429 + }, + { + "index": 104, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00708208279684186, + "status": 429 + }, + { + "index": 105, + "instance": "c7f052699205", + "latency_seconds": 0.006972667295485735, + "status": 429 + }, + { + "index": 106, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0838907090947032, + "status": 429 + }, + { + "index": 107, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006142124999314547, + "status": 429 + }, + { + "index": 108, + "instance": "c7f052699205", + "latency_seconds": 0.07859183382242918, + "status": 429 + }, + { + "index": 109, + "instance": "c7f052699205", + "latency_seconds": 0.009451707825064659, + "status": 429 + }, + { + "index": 110, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006777874659746885, + "status": 429 + }, + { + "index": 111, + "instance": "c7f052699205", + "latency_seconds": 0.007157708052545786, + "status": 429 + }, + { + "index": 112, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08672616630792618, + "status": 429 + }, + { + "index": 113, + "instance": "c7f052699205", + "latency_seconds": 0.08544899988919497, + "status": 429 + }, + { + "index": 114, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.007891708053648472, + "status": 429 + }, + { + "index": 115, + "instance": "c7f052699205", + "latency_seconds": 0.007721332833170891, + "status": 429 + }, + { + "index": 116, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006571040954440832, + "status": 429 + }, + { + "index": 117, + "instance": "c7f052699205", + "latency_seconds": 0.006330166012048721, + "status": 429 + }, + { + "index": 118, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08370312489569187, + "status": 429 + }, + { + "index": 119, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08410537522286177, + "status": 429 + } + ], + "requests_per_second": 65.99419197058081 + }, + { + "admission_denied_rate": 0.9416666666666667, + "api_cgroup_peak_bytes_after": [ + 114163712, + 83968000 + ], + "api_cgroup_peak_bytes_before": [ + 114163712, + 83968000 + ], + "concurrency": 8, + "elapsed_seconds": 2.2316102497279644, + "incorrect_password_401": 7, + "latency": { + "max_seconds": 0.29770329175516963, + "p50_seconds": 0.1635821252129972, + "p95_seconds": 0.2916066669858992 + }, + "limitations": [ + "Cgroup memory.peak includes container lifetime history; account/shared/local rate limits all contribute to429." + ], + "operations": 120, + "raw_samples": [ + { + "index": 0, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.07860833266749978, + "status": 429 + }, + { + "index": 1, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.05248608300462365, + "status": 401 + }, + { + "index": 2, + "instance": "c7f052699205", + "latency_seconds": 0.08652287535369396, + "status": 401 + }, + { + "index": 3, + "instance": "c7f052699205", + "latency_seconds": 0.0864290832541883, + "status": 401 + }, + { + "index": 4, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.1505250409245491, + "status": 401 + }, + { + "index": 5, + "instance": "c7f052699205", + "latency_seconds": 0.05246208421885967, + "status": 401 + }, + { + "index": 6, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.07675308315083385, + "status": 401 + }, + { + "index": 7, + "instance": "c7f052699205", + "latency_seconds": 0.051917958073318005, + "status": 401 + }, + { + "index": 8, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.03345029102638364, + "status": 429 + }, + { + "index": 9, + "instance": "c7f052699205", + "latency_seconds": 0.03452183399349451, + "status": 429 + }, + { + "index": 10, + "instance": "c7f052699205", + "latency_seconds": 0.0341840828768909, + "status": 429 + }, + { + "index": 11, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.011128415819257498, + "status": 429 + }, + { + "index": 12, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00989999994635582, + "status": 429 + }, + { + "index": 13, + "instance": "c7f052699205", + "latency_seconds": 0.07061866717413068, + "status": 429 + }, + { + "index": 14, + "instance": "c7f052699205", + "latency_seconds": 0.1635821252129972, + "status": 429 + }, + { + "index": 15, + "instance": "c7f052699205", + "latency_seconds": 0.16500879218801856, + "status": 429 + }, + { + "index": 16, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.07371466606855392, + "status": 429 + }, + { + "index": 17, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.2667399998754263, + "status": 429 + }, + { + "index": 18, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.07151025021448731, + "status": 429 + }, + { + "index": 19, + "instance": "c7f052699205", + "latency_seconds": 0.07492991723120213, + "status": 429 + }, + { + "index": 20, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.012537583243101835, + "status": 429 + }, + { + "index": 21, + "instance": "c7f052699205", + "latency_seconds": 0.09908483410254121, + "status": 429 + }, + { + "index": 22, + "instance": "c7f052699205", + "latency_seconds": 0.200271625071764, + "status": 429 + }, + { + "index": 23, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19991929223760962, + "status": 429 + }, + { + "index": 24, + "instance": "c7f052699205", + "latency_seconds": 0.19115266669541597, + "status": 429 + }, + { + "index": 25, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19894366711378098, + "status": 429 + }, + { + "index": 26, + "instance": "c7f052699205", + "latency_seconds": 0.11004087515175343, + "status": 429 + }, + { + "index": 27, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.10219087498262525, + "status": 429 + }, + { + "index": 28, + "instance": "c7f052699205", + "latency_seconds": 0.1962683331221342, + "status": 429 + }, + { + "index": 29, + "instance": "c7f052699205", + "latency_seconds": 0.19309066608548164, + "status": 429 + }, + { + "index": 30, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19187162490561604, + "status": 429 + }, + { + "index": 31, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09515287494286895, + "status": 429 + }, + { + "index": 32, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.18587320856750011, + "status": 429 + }, + { + "index": 33, + "instance": "c7f052699205", + "latency_seconds": 0.09239729214459658, + "status": 429 + }, + { + "index": 34, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19047337491065264, + "status": 429 + }, + { + "index": 35, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.18401699978858232, + "status": 429 + }, + { + "index": 36, + "instance": "c7f052699205", + "latency_seconds": 0.19966279109939933, + "status": 429 + }, + { + "index": 37, + "instance": "c7f052699205", + "latency_seconds": 0.2000623750500381, + "status": 429 + }, + { + "index": 38, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.2928884159773588, + "status": 429 + }, + { + "index": 39, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.20012941677123308, + "status": 429 + }, + { + "index": 40, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19970795884728432, + "status": 429 + }, + { + "index": 41, + "instance": "c7f052699205", + "latency_seconds": 0.1976976660080254, + "status": 429 + }, + { + "index": 42, + "instance": "c7f052699205", + "latency_seconds": 0.10752220777794719, + "status": 429 + }, + { + "index": 43, + "instance": "c7f052699205", + "latency_seconds": 0.2949146660976112, + "status": 429 + }, + { + "index": 44, + "instance": "c7f052699205", + "latency_seconds": 0.19700962491333485, + "status": 429 + }, + { + "index": 45, + "instance": "c7f052699205", + "latency_seconds": 0.1948003750294447, + "status": 429 + }, + { + "index": 46, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19408508436754346, + "status": 429 + }, + { + "index": 47, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.1094567091204226, + "status": 429 + }, + { + "index": 48, + "instance": "c7f052699205", + "latency_seconds": 0.10819604201242328, + "status": 429 + }, + { + "index": 49, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.1043932088650763, + "status": 429 + }, + { + "index": 50, + "instance": "c7f052699205", + "latency_seconds": 0.10679362528026104, + "status": 429 + }, + { + "index": 51, + "instance": "c7f052699205", + "latency_seconds": 0.09894683305174112, + "status": 429 + }, + { + "index": 52, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.00921566691249609, + "status": 429 + }, + { + "index": 53, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19358670804649591, + "status": 429 + }, + { + "index": 54, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0972563331015408, + "status": 429 + }, + { + "index": 55, + "instance": "c7f052699205", + "latency_seconds": 0.1901435418985784, + "status": 429 + }, + { + "index": 56, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09557545790448785, + "status": 429 + }, + { + "index": 57, + "instance": "c7f052699205", + "latency_seconds": 0.1941897077485919, + "status": 429 + }, + { + "index": 58, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.197137915994972, + "status": 429 + }, + { + "index": 59, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0956852501258254, + "status": 429 + }, + { + "index": 60, + "instance": "c7f052699205", + "latency_seconds": 0.10395362507551908, + "status": 429 + }, + { + "index": 61, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19384658383205533, + "status": 429 + }, + { + "index": 62, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006904374808073044, + "status": 429 + }, + { + "index": 63, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.006810708437114954, + "status": 429 + }, + { + "index": 64, + "instance": "c7f052699205", + "latency_seconds": 0.09454954229295254, + "status": 429 + }, + { + "index": 65, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.08977491687983274, + "status": 429 + }, + { + "index": 66, + "instance": "c7f052699205", + "latency_seconds": 0.011872583068907261, + "status": 429 + }, + { + "index": 67, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09893904207274318, + "status": 429 + }, + { + "index": 68, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19295283313840628, + "status": 429 + }, + { + "index": 69, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09916929202154279, + "status": 429 + }, + { + "index": 70, + "instance": "c7f052699205", + "latency_seconds": 0.190055750310421, + "status": 429 + }, + { + "index": 71, + "instance": "c7f052699205", + "latency_seconds": 0.19601266691461205, + "status": 429 + }, + { + "index": 72, + "instance": "c7f052699205", + "latency_seconds": 0.19387145806103945, + "status": 429 + }, + { + "index": 73, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.1933857500553131, + "status": 429 + }, + { + "index": 74, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.29770329175516963, + "status": 429 + }, + { + "index": 75, + "instance": "c7f052699205", + "latency_seconds": 0.10442758304998279, + "status": 429 + }, + { + "index": 76, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19038662500679493, + "status": 429 + }, + { + "index": 77, + "instance": "c7f052699205", + "latency_seconds": 0.19989333394914865, + "status": 429 + }, + { + "index": 78, + "instance": "c7f052699205", + "latency_seconds": 0.09653404215350747, + "status": 429 + }, + { + "index": 79, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.1923191249370575, + "status": 429 + }, + { + "index": 80, + "instance": "c7f052699205", + "latency_seconds": 0.19181829178705812, + "status": 429 + }, + { + "index": 81, + "instance": "c7f052699205", + "latency_seconds": 0.19619816588237882, + "status": 429 + }, + { + "index": 82, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0977191673591733, + "status": 429 + }, + { + "index": 83, + "instance": "c7f052699205", + "latency_seconds": 0.09964908426627517, + "status": 429 + }, + { + "index": 84, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09973208280280232, + "status": 429 + }, + { + "index": 85, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.2955189156346023, + "status": 429 + }, + { + "index": 86, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.2008316251449287, + "status": 429 + }, + { + "index": 87, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.20114158280193806, + "status": 429 + }, + { + "index": 88, + "instance": "c7f052699205", + "latency_seconds": 0.10257329232990742, + "status": 429 + }, + { + "index": 89, + "instance": "c7f052699205", + "latency_seconds": 0.20078704180195928, + "status": 429 + }, + { + "index": 90, + "instance": "c7f052699205", + "latency_seconds": 0.20653529092669487, + "status": 429 + }, + { + "index": 91, + "instance": "c7f052699205", + "latency_seconds": 0.20286854170262814, + "status": 429 + }, + { + "index": 92, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.2916066669858992, + "status": 429 + }, + { + "index": 93, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.29260241612792015, + "status": 429 + }, + { + "index": 94, + "instance": "c7f052699205", + "latency_seconds": 0.09707216639071703, + "status": 429 + }, + { + "index": 95, + "instance": "c7f052699205", + "latency_seconds": 0.09961191704496741, + "status": 429 + }, + { + "index": 96, + "instance": "c7f052699205", + "latency_seconds": 0.10305879125371575, + "status": 429 + }, + { + "index": 97, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09895754186436534, + "status": 429 + }, + { + "index": 98, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09722487488761544, + "status": 429 + }, + { + "index": 99, + "instance": "c7f052699205", + "latency_seconds": 0.28987908316776156, + "status": 429 + }, + { + "index": 100, + "instance": "c7f052699205", + "latency_seconds": 0.2085552499629557, + "status": 429 + }, + { + "index": 101, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.20307945786044002, + "status": 429 + }, + { + "index": 102, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.292429749853909, + "status": 429 + }, + { + "index": 103, + "instance": "c7f052699205", + "latency_seconds": 0.2046783328987658, + "status": 429 + }, + { + "index": 104, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.0992303341627121, + "status": 429 + }, + { + "index": 105, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.290241832844913, + "status": 429 + }, + { + "index": 106, + "instance": "c7f052699205", + "latency_seconds": 0.10070125013589859, + "status": 429 + }, + { + "index": 107, + "instance": "c7f052699205", + "latency_seconds": 0.19191016629338264, + "status": 429 + }, + { + "index": 108, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09745691670104861, + "status": 429 + }, + { + "index": 109, + "instance": "c7f052699205", + "latency_seconds": 0.09958062507212162, + "status": 429 + }, + { + "index": 110, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09649912500753999, + "status": 429 + }, + { + "index": 111, + "instance": "c7f052699205", + "latency_seconds": 0.18828733265399933, + "status": 429 + }, + { + "index": 112, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.18779883300885558, + "status": 429 + }, + { + "index": 113, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19901445787400007, + "status": 429 + }, + { + "index": 114, + "instance": "c7f052699205", + "latency_seconds": 0.19842933304607868, + "status": 429 + }, + { + "index": 115, + "instance": "c7f052699205", + "latency_seconds": 0.1039497503079474, + "status": 429 + }, + { + "index": 116, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.1975945420563221, + "status": 429 + }, + { + "index": 117, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.19732604175806046, + "status": 429 + }, + { + "index": 118, + "instance": "c7f052699205", + "latency_seconds": 0.19719345774501562, + "status": 429 + }, + { + "index": 119, + "instance": "5ac7c7f4b4c1", + "latency_seconds": 0.09876791667193174, + "status": 429 + } + ], + "requests_per_second": 53.77283063412535 + } + ], + "hash_verify": [ + { + "algorithm": "argon2id", + "busy_denied_rate": 0, + "classification": "measured", + "concurrency": 1, + "counts": { + "ok": 120 + }, + "elapsed_seconds": 1.911311916, + "gomaxprocs": 18, + "goos": "darwin", + "latency": { + "hash": { + "max_seconds": 0.019584458, + "p50_seconds": 0.015885792, + "p95_seconds": 0.017532291 + }, + "verify_correct": { + "max_seconds": 0.01885225, + "p50_seconds": 0.01573925, + "p95_seconds": 0.017318375 + }, + "verify_incorrect": { + "max_seconds": 0.01754375, + "p50_seconds": 0.015606042, + "p95_seconds": 0.017096458 + } + }, + "operations": 120, + "parameters": { + "m": 19456, + "p": 1, + "t": 2 + }, + "peak_rss_bytes": 47906816, + "raw_samples": [ + { + "operation": "hash", + "result": "ok", + "seconds": 0.019584458 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.01885225 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016711375 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016589708 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015540125 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015867292 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.014772792 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015451542 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.014999083 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016272416 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017551958 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015349042 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015518958 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.014969 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015715916 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016351834 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015931166 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015614333 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016288084 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015491292 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016348833 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016603458 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016541667 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017096458 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017532291 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017024291 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017162125 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017661 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017144708 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01685225 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016724125 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016979916 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016837334 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015235041 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015316833 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016841667 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.014949417 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015693584 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.014824667 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015271292 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016990583 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015533917 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016059458 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015345833 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015065709 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016538583 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015867875 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.014926917 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015981625 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.014953375 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016060625 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.01536275 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015584875 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015423583 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.01614225 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017318375 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01754375 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016493083 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.01658975 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015665708 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.01579825 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.01573925 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01526375 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015258209 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.01457425 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015606042 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016182333 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.0158575 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.014746083 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015464541 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.014905417 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016168 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015744292 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015862833 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015549542 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.014662917 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016364958 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015017792 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015690542 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015475791 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015277667 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016058917 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016132959 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01556725 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015405959 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.0155395 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016159 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015970041 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015358 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015887584 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016524917 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016548791 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016023292 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015885792 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.01488025 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015578 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015573958 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016630458 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015449334 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015626 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015523916 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015363 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016483542 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015315083 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01554925 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.014848334 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015747584 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015672042 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015842959 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015699542 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015571958 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015340625 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.0166685 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01456625 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.015073541 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015608875 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.015723 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016410458 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.015762791 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016802375 + } + ], + "successful_operations_per_second": 62.7841008029377 + }, + { + "algorithm": "argon2id", + "busy_denied_rate": 0, + "classification": "measured", + "concurrency": 2, + "counts": { + "ok": 120 + }, + "elapsed_seconds": 1.064564333, + "gomaxprocs": 18, + "goos": "darwin", + "latency": { + "hash": { + "max_seconds": 0.023532542, + "p50_seconds": 0.017455334, + "p95_seconds": 0.018459625 + }, + "verify_correct": { + "max_seconds": 0.020929667, + "p50_seconds": 0.0174775, + "p95_seconds": 0.01854575 + }, + "verify_incorrect": { + "max_seconds": 0.022590167, + "p50_seconds": 0.017505, + "p95_seconds": 0.018181166 + } + }, + "operations": 120, + "parameters": { + "m": 19456, + "p": 1, + "t": 2 + }, + "peak_rss_bytes": 87539712, + "raw_samples": [ + { + "operation": "hash", + "result": "ok", + "seconds": 0.023532542 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.020929667 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.022590167 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.022147291 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.019435166 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01945375 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017784 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017764667 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017432083 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017263541 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.0170745 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017025791 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017391875 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017456084 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.0173625 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017337875 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.018131625 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.018068 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017407834 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017455709 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017957875 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.01800675 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017501833 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017590292 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017505709 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017491709 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017761708 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017801167 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.018274167 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.018170708 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.018162333 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.018278458 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017832 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017717 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017899917 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017803167 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017494208 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017585959 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017755208 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017747792 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017104583 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017205084 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017428833 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017507167 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017318833 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.0172875 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.0172385 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017344459 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017455334 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.0174775 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017350375 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.01732025 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017887625 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01805275 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.018459333 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.01854575 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.018181166 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.018459625 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.018015958 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017759417 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017464542 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.0174255 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017933958 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.018107708 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.018006458 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01764325 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017568458 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017648292 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.01714425 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.01707975 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016836292 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016902291 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016800958 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016862125 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017555208 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017705583 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017383166 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017451416 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.0171295 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.016956417 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.016891292 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.016848958 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017286458 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017204167 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.01785925 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017891667 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017785833 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017663917 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017411583 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017250042 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017595375 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017535125 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017448834 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017399833 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017473416 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017426583 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.0169565 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.0170345 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017469375 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017429333 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.01713675 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.0170635 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017284041 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017205167 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017505 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017780625 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.018069458 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017994 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017223042 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017159625 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017594459 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.01730175 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.01742325 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017616291 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017436208 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017360792 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.0174295 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.017433541 + }, + { + "operation": "verify_correct", + "result": "ok", + "seconds": 0.017578208 + }, + { + "operation": "verify_incorrect", + "result": "ok", + "seconds": 0.017402209 + } + ], + "successful_operations_per_second": 112.72216838397496 + }, + { + "algorithm": "argon2id", + "busy_denied_rate": 0.9833333333333333, + "classification": "measured", + "concurrency": 8, + "counts": { + "busy_denied": 118, + "ok": 2 + }, + "elapsed_seconds": 0.021096416, + "gomaxprocs": 18, + "goos": "darwin", + "latency": { + "hash": { + "max_seconds": 0.021046583, + "p50_seconds": 0.019341708, + "p95_seconds": 0.019341708 + } + }, + "operations": 120, + "parameters": { + "m": 19456, + "p": 1, + "t": 2 + }, + "peak_rss_bytes": 47087616, + "raw_samples": [ + { + "operation": "hash", + "result": "ok", + "seconds": 0.021046583 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 0.000103625 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 9.7209e-05 + }, + { + "operation": "hash", + "result": "ok", + "seconds": 0.019341708 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 7.3e-05 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.2666e-05 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 1.1875e-05 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 4.6541e-05 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 0.000332667 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.4e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.125e-06 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 0.000277875 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 5e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 5e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.3e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.09e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 0 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 0.000155125 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 3.33e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 0.000300334 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 3.34e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 0.000272542 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.1e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.92e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 4.17e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 0 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 1.66e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 0 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 3.33e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 0.000226 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.4e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 3.34e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 3.33e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.66e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.92e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.3e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.09e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 4.17e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.1e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.5e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.916e-06 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 3.75e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.3e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.92e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 7.0542e-05 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 3.33e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 3.75e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.3e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.09e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.4e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.66e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 1.66e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.4e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.66e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.09e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.1e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.66e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 0 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.5e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.09e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.4e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.5e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 1.67e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.2e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 2.08e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 2.09e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 4.1e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 1.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 1.66e-07 + }, + { + "operation": "hash", + "result": "busy_denied", + "seconds": 8.4e-08 + }, + { + "operation": "verify_correct", + "result": "busy_denied", + "seconds": 6.25e-07 + }, + { + "operation": "verify_incorrect", + "result": "busy_denied", + "seconds": 1.66e-07 + } + ], + "successful_operations_per_second": 94.8028328603304 + } + ], + "limitations": [ + "Native benchmark imports actual configured password implementation, not a reimplementation.", + "Operation scheduling is closed-loop; memory includes Go runtime and seed hash, excludes compiler.", + "Optional API benchmark uses one fresh account per concurrency level and real shared rejection paths." + ], + "study": "lab7-auth-benchmark", + "timestamp": "2026-11-10T06:42:16.282652+00:00" +} diff --git a/evidence/lab7/failover-scope.json b/evidence/lab7/failover-scope.json new file mode 100644 index 0000000..6dd8042 --- /dev/null +++ b/evidence/lab7/failover-scope.json @@ -0,0 +1,51 @@ +{ + "after": [ + { + "id": "6dc424bc61ca96d86e3633154dd7106c9721ac2d1f562bff84749232ac72f36b", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": false, + "service": "api", + "started_at": "2026-11-09T17:49:12.241804012Z", + "volumes": [] + }, + { + "id": "78e96f0ca9d35adf9b9f2d4bb73c25fbdc24463a331eee1ec61882d1ee2cb2e3", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "api", + "started_at": "2026-11-09T17:49:12.311174933Z", + "volumes": [] + } + ], + "before": [ + { + "id": "6dc424bc61ca96d86e3633154dd7106c9721ac2d1f562bff84749232ac72f36b", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "api", + "started_at": "2026-11-09T17:49:12.241804012Z", + "volumes": [] + }, + { + "id": "78e96f0ca9d35adf9b9f2d4bb73c25fbdc24463a331eee1ec61882d1ee2cb2e3", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "api", + "started_at": "2026-11-09T17:49:12.311174933Z", + "volumes": [] + } + ], + "command": "make test-failover ACTION_SCRIPT=scripts/stop-one.sh", + "failed_attempts": 0, + "first_recovery_seconds": 0.815, + "message_attachment_session_preserved": true, + "successful_writes": 92, + "unchanged_services": [ + "postgres", + "redis", + "seaweedfs", + "broker", + "openbao", + "lb" + ] +} diff --git a/evidence/lab7/integration.txt b/evidence/lab7/integration.txt new file mode 100644 index 0000000..2745a19 --- /dev/null +++ b/evidence/lab7/integration.txt @@ -0,0 +1,2 @@ +ok mtusi-messenger/internal/storage/postgres 14.665s +ok mtusi-messenger/internal/storage/redis 4.080s diff --git a/evidence/lab7/native-revocation.json b/evidence/lab7/native-revocation.json new file mode 100644 index 0000000..1bec7cf --- /dev/null +++ b/evidence/lab7/native-revocation.json @@ -0,0 +1,15 @@ +{ + "scenario": "authorized API old leaf revoked at native Collector gateway", + "old_before_status": 200, + "old_after_classification": "tls_certificate_rejected", + "replacement_status": 200, + "revocation": { + "role": "api", + "revoked_serial": "6714be6074b176d9af075abe183d4667b04b10c3", + "crls_updated": true, + "native_gateway_crls_reloaded": true, + "old_connections_drained": true + }, + "images_rebuilt": false, + "private_old_material_deleted": true +} diff --git a/evidence/lab7/readiness.json b/evidence/lab7/readiness.json new file mode 100644 index 0000000..0673c9d --- /dev/null +++ b/evidence/lab7/readiness.json @@ -0,0 +1,10 @@ +{ + "command": "targeted Controller.wait_s3 missing-established-object scenario", + "missing_object_http_status": 404, + "deadline_seconds": 2, + "observed_failure_seconds": 2.000884750392288, + "readiness_fail_closed": true, + "established_missing_object_not_reseeded": true, + "original_marker_unchanged": true, + "original_full_body_readback_after_restore": true +} diff --git a/evidence/lab7/renewer.json b/evidence/lab7/renewer.json new file mode 100644 index 0000000..bca21fb --- /dev/null +++ b/evidence/lab7/renewer.json @@ -0,0 +1,86 @@ +{ + "timestamp": "2026-11-10T07:56:32.713259+00:00", + "ttl": "1h", + "roles": { + "api": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"api\", \"serial_number\": \"162d336ac64bf588cb605c18a7dfa5da2ba14770\", \"not_after\": \"Nov 10 08:56:32 2026 GMT\"}" + }, + "worker": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"worker\", \"serial_number\": \"59ea998e72169b9ffd2ccf321b900bba95eee4a2\", \"not_after\": \"Nov 10 08:56:33 2026 GMT\"}" + }, + "relay": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"relay\", \"serial_number\": \"050c0d78612bc04f8deb11cbb6b94c803ec676ef\", \"not_after\": \"Nov 10 08:56:33 2026 GMT\"}" + }, + "lb": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"lb\", \"serial_number\": \"4cfeb215b9c8e2b0eef72160b7d4082814acc91a\", \"not_after\": \"Nov 10 08:56:33 2026 GMT\"}" + }, + "postgres": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"postgres\", \"serial_number\": \"204a420c319906ee249d192fbd773ccf1eef8525\", \"not_after\": \"Nov 10 08:56:34 2026 GMT\"}" + }, + "redis": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"redis\", \"serial_number\": \"0c5b5d7282d991ffcc914249ff2b3234da8faca0\", \"not_after\": \"Nov 10 08:56:35 2026 GMT\"}" + }, + "s3": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"s3\", \"serial_number\": \"219d03c95951446fe4e8bd2c17cf6c2b70db180d\", \"not_after\": \"Nov 10 08:56:35 2026 GMT\"}" + }, + "broker": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"broker\", \"serial_number\": \"0f5081d2cf86907ecbc441e10d2af1d8267fb7bd\", \"not_after\": \"Nov 10 08:57:01 2026 GMT\"}" + }, + "collector": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"collector\", \"serial_number\": \"4607c993a50af826cde8a4315331c8624aef1702\", \"not_after\": \"Nov 10 08:57:13 2026 GMT\"}" + }, + "prometheus": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"prometheus\", \"serial_number\": \"743c80e8de6cb6d51b8c1155b92d7f48be345ac7\", \"not_after\": \"Nov 10 08:57:13 2026 GMT\"}" + }, + "loki": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"loki\", \"serial_number\": \"62f37ab0ac4eca0d85a8db5eb844209a7cba6340\", \"not_after\": \"Nov 10 08:57:14 2026 GMT\"}" + }, + "tempo": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"tempo\", \"serial_number\": \"5f446da237e9e07c67db3ba7887886ad6ed99747\", \"not_after\": \"Nov 10 08:57:16 2026 GMT\"}" + }, + "grafana": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"grafana\", \"serial_number\": \"601cb9ceacbde1d34e4d2ec959c769d1db506f16\", \"not_after\": \"Nov 10 08:57:19 2026 GMT\"}" + }, + "openbao": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"openbao\", \"serial_number\": \"3ca03157e464ca40bed9321b187805e9df970e29\", \"not_after\": \"Nov 10 08:57:20 2026 GMT\"}" + }, + "operator": { + "ok": true, + "mode": "renew", + "output": "{\"role\": \"operator\", \"serial_number\": \"346438665915e9c02da93b59918763d6c042440d\", \"not_after\": \"Nov 10 08:57:24 2026 GMT\"}" + } + }, + "crls": { + "ok": true, + "output": "{\"crls_updated\": true, \"identities_republished\": 18}" + }, + "passed": true +} diff --git a/evidence/lab7/resilience-final.txt b/evidence/lab7/resilience-final.txt new file mode 100644 index 0000000..c0e2c7a --- /dev/null +++ b/evidence/lab7/resilience-final.txt @@ -0,0 +1,7 @@ +2026-11-10, final image mtusi-messenger:lab7 +make test-persistence ACTION_SCRIPT=scripts/restart.sh +PASS: persistence preserved confirmed data and existing session. Hook scope needs operator evidence. + +make test-failover ACTION_SCRIPT=scripts/stop-one.sh +{"observed_instances_before": 2, "successful_writes": 93, "failed_attempts": 0, "first_recovery_seconds": 1.36} +PASS: failover preserved confirmed data and existing session. Hook scope needs operator evidence. diff --git a/evidence/lab7/resource-snapshot.json b/evidence/lab7/resource-snapshot.json new file mode 100644 index 0000000..adfb76c --- /dev/null +++ b/evidence/lab7/resource-snapshot.json @@ -0,0 +1,251 @@ +{ + "measurement": "one Docker stats --no-stream sample; not a peak/capacity benchmark", + "rows": [ + { + "BlockIO": "11.1MB / 284MB", + "CPUPerc": "0.79%", + "Container": "7d38be7a2d93250ca144a0ea7e98441e09f37ae96761d2f162270398fb75434f", + "ID": "7d38be7a2d93", + "MemPerc": "18.93%", + "MemUsage": "60.57MiB / 320MiB", + "Name": "mtusi-messenger-lab6-postgres-1", + "NetIO": "11.3MB / 74.4MB", + "PIDs": "13" + }, + { + "BlockIO": "147kB / 12.3kB", + "CPUPerc": "0.38%", + "Container": "f4be51e848db72d494d0f81e2e828c5bc85887c4263f15310029ca5039bd6eac", + "ID": "f4be51e848db", + "MemPerc": "3.47%", + "MemUsage": "4.441MiB / 128MiB", + "Name": "mtusi-messenger-lab6-redis-1", + "NetIO": "1.12MB / 38.1MB", + "PIDs": "7" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.00%", + "Container": "147b9f653169aac4ba28af1deedfb318c83a8674ba537e542f71607ae9b946d7", + "ID": "147b9f653169", + "MemPerc": "16.95%", + "MemUsage": "10.85MiB / 64MiB", + "Name": "mtusi-messenger-lab6-loki-tls-1", + "NetIO": "6.82MB / 34.6MB", + "PIDs": "5" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "4ca25f85d3e0dc61a22113a2ef8d61a87f66beef1831e36d871f9960d1ab9ab0", + "ID": "4ca25f85d3e0", + "MemPerc": "15.99%", + "MemUsage": "10.23MiB / 64MiB", + "Name": "mtusi-messenger-lab6-grafana-tls-1", + "NetIO": "272kB / 98.2kB", + "PIDs": "5" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.63%", + "Container": "d2911f0e6850c716f9602073046c61bf94d6009de249243c59da4e052c7f4bd6", + "ID": "d2911f0e6850", + "MemPerc": "23.72%", + "MemUsage": "15.18MiB / 64MiB", + "Name": "mtusi-messenger-lab6-broker-admin-tls-1", + "NetIO": "9.21MB / 47MB", + "PIDs": "5" + }, + { + "BlockIO": "4.1kB / 0B", + "CPUPerc": "0.02%", + "Container": "cf0f3e7996aa9006c5c0fbd40d3eb079368d0a4f792eed070e6174653e45f202", + "ID": "cf0f3e7996aa", + "MemPerc": "17.06%", + "MemUsage": "10.92MiB / 64MiB", + "Name": "mtusi-messenger-lab6-tempo-tls-1", + "NetIO": "7.66MB / 17.7MB", + "PIDs": "5" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.19%", + "Container": "8e19759e46485bcdb3bb73beb5082f2537a380e504a3ce30765b4f4dcc504f25", + "ID": "8e19759e4648", + "MemPerc": "17.69%", + "MemUsage": "11.32MiB / 64MiB", + "Name": "mtusi-messenger-lab6-collector-tls-1", + "NetIO": "57.3MB / 41.6MB", + "PIDs": "5" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.00%", + "Container": "0975fe463bb0d3f1ecc0ea2c543b64a9d7ea0ddd0b687ec4bd92c815c15dbf27", + "ID": "0975fe463bb0", + "MemPerc": "16.03%", + "MemUsage": "10.26MiB / 64MiB", + "Name": "mtusi-messenger-lab6-prometheus-tls-1", + "NetIO": "283MB / 34.8MB", + "PIDs": "5" + }, + { + "BlockIO": "131kB / 0B", + "CPUPerc": "0.37%", + "Container": "ba887c008d7293f890e1476be9bbce0d3309d297af0fe0f18b8d6a6bce3f1384", + "ID": "ba887c008d72", + "MemPerc": "5.29%", + "MemUsage": "13.54MiB / 256MiB", + "Name": "mtusi-messenger-lab6-api-2", + "NetIO": "11.7MB / 15.7MB", + "PIDs": "9" + }, + { + "BlockIO": "73.7kB / 0B", + "CPUPerc": "0.13%", + "Container": "b0edb201d4010d67ce0f39fc516a867adb0b34c6fcc4c1ccadeec7e7f66cd19e", + "ID": "b0edb201d401", + "MemPerc": "5.27%", + "MemUsage": "13.5MiB / 256MiB", + "Name": "mtusi-messenger-lab6-api-1", + "NetIO": "11.7MB / 15.5MB", + "PIDs": "9" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.18%", + "Container": "11f8bb80fc16a72e2bc56353d47c16765151625959d9c8e2388336ef9b8c1e0a", + "ID": "11f8bb80fc16", + "MemPerc": "9.38%", + "MemUsage": "12MiB / 128MiB", + "Name": "mtusi-messenger-lab6-relay-1", + "NetIO": "3.76MB / 6.24MB", + "PIDs": "8" + }, + { + "BlockIO": "65.5kB / 0B", + "CPUPerc": "0.15%", + "Container": "9207c3d42f1e50188efe5757c3c2869f33f96b5d7bf07faa84d5d109c20aef6c", + "ID": "9207c3d42f1e", + "MemPerc": "1.42%", + "MemUsage": "14.51MiB / 1GiB", + "Name": "mtusi-messenger-lab6-worker-1", + "NetIO": "47.4MB / 6.33MB", + "PIDs": "9" + }, + { + "BlockIO": "1.21MB / 0B", + "CPUPerc": "0.16%", + "Container": "a11152720aac3bd90254fa0fa6080ed7ae4bb31c977452fcb57bd4842437f685", + "ID": "a11152720aac", + "MemPerc": "27.38%", + "MemUsage": "70.09MiB / 256MiB", + "Name": "mtusi-messenger-lab6-s3-1", + "NetIO": "3.19MB / 95MB", + "PIDs": "10" + }, + { + "BlockIO": "0B / 0B", + "CPUPerc": "0.20%", + "Container": "6d00987f050d14af10ae5b24a91435ba2da1fbb9e59b8d7e68ff795d37952099", + "ID": "6d00987f050d", + "MemPerc": "18.20%", + "MemUsage": "11.65MiB / 64MiB", + "Name": "mtusi-messenger-lab6-lb-1", + "NetIO": "4.99MB / 20.8MB", + "PIDs": "5" + }, + { + "BlockIO": "9.22MB / 29.1MB", + "CPUPerc": "0.60%", + "Container": "c13f8ada0b058159cd1786434cdd817031d0aab60220a20b1a6722d5e221629c", + "ID": "c13f8ada0b05", + "MemPerc": "8.75%", + "MemUsage": "67.22MiB / 768MiB", + "Name": "mtusi-messenger-lab6-tempo-1", + "NetIO": "7.66MB / 17.7MB", + "PIDs": "10" + }, + { + "BlockIO": "20.8MB / 459kB", + "CPUPerc": "2.28%", + "Container": "36ecbf91a52bca1dc3ac266656b0a4a3227f15d337455a69926b28412e1ce6ee", + "ID": "36ecbf91a52b", + "MemPerc": "36.51%", + "MemUsage": "140.2MiB / 384MiB", + "Name": "mtusi-messenger-lab6-broker-1", + "NetIO": "9.21MB / 47MB", + "PIDs": "54" + }, + { + "BlockIO": "5.01MB / 938kB", + "CPUPerc": "0.27%", + "Container": "42b6a9e1330f8304ee6924e03423730f7c53f5fdf868b0a7575a26585758dc7e", + "ID": "42b6a9e1330f", + "MemPerc": "38.93%", + "MemUsage": "249.1MiB / 640MiB", + "Name": "mtusi-messenger-lab6-seaweedfs-1", + "NetIO": "3.19MB / 95MB", + "PIDs": "8" + }, + { + "BlockIO": "39.9MB / 2MB", + "CPUPerc": "0.90%", + "Container": "1d9e067c6d26f7d2613c4d520d4f5bb96e906a318d35928aac030ae05b0a17a5", + "ID": "1d9e067c6d26", + "MemPerc": "25.53%", + "MemUsage": "81.68MiB / 320MiB", + "Name": "mtusi-messenger-lab6-loki-1", + "NetIO": "6.82MB / 34.6MB", + "PIDs": "10" + }, + { + "BlockIO": "380MB / 5.21MB", + "CPUPerc": "0.92%", + "Container": "8229a7ef578fa3e4cf72a825af7d6836647de44d9f2d504c5ec5cdc307d70f93", + "ID": "8229a7ef578f", + "MemPerc": "45.68%", + "MemUsage": "233.9MiB / 512MiB", + "Name": "mtusi-messenger-lab6-grafana-1", + "NetIO": "272kB / 98.2kB", + "PIDs": "105" + }, + { + "BlockIO": "300MB / 341MB", + "CPUPerc": "1.73%", + "Container": "a0dcf9498a38d7b8b1be8cef9c1fa67f56d31e9cdb2c3a75de3c2bffb422a622", + "ID": "a0dcf9498a38", + "MemPerc": "27.68%", + "MemUsage": "88.59MiB / 320MiB", + "Name": "mtusi-messenger-lab6-prometheus-1", + "NetIO": "283MB / 34.8MB", + "PIDs": "8" + }, + { + "BlockIO": "154MB / 0B", + "CPUPerc": "0.88%", + "Container": "aad8b0935730a028d67bc63725e52b9a90e186ad73daa33719679219830692bd", + "ID": "aad8b0935730", + "MemPerc": "63.35%", + "MemUsage": "121.6MiB / 192MiB", + "Name": "mtusi-messenger-lab6-otel-collector-1", + "NetIO": "57.3MB / 41.6MB", + "PIDs": "8" + }, + { + "BlockIO": "54MB / 103MB", + "CPUPerc": "0.42%", + "Container": "6cc7c1aab331d35c424fffd4604932cff2fd25eaa86233d68af7f8ba368c09dd", + "ID": "6cc7c1aab331", + "MemPerc": "23.67%", + "MemUsage": "60.59MiB / 256MiB", + "Name": "mtusi-messenger-lab6-openbao-1", + "NetIO": "10.6MB / 12.2MB", + "PIDs": "9" + } + ], + "vm": { + "cpus": 4, + "memory_bytes": 8307167232 + } +} diff --git a/evidence/lab7/restart-scope.json b/evidence/lab7/restart-scope.json new file mode 100644 index 0000000..5e0dfbd --- /dev/null +++ b/evidence/lab7/restart-scope.json @@ -0,0 +1,483 @@ +{ + "after": [ + { + "id": "6dc424bc61ca96d86e3633154dd7106c9721ac2d1f562bff84749232ac72f36b", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "api", + "started_at": "2026-11-09T17:49:12.241804012Z", + "volumes": [] + }, + { + "id": "78e96f0ca9d35adf9b9f2d4bb73c25fbdc24463a331eee1ec61882d1ee2cb2e3", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "api", + "started_at": "2026-11-09T17:49:12.311174933Z", + "volumes": [] + }, + { + "id": "36ecbf91a52bca1dc3ac266656b0a4a3227f15d337455a69926b28412e1ce6ee", + "image": "sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528", + "running": true, + "service": "broker", + "started_at": "2026-11-09T17:48:35.591857217Z", + "volumes": [ + "mtusi-messenger-lab6_rabbitmq-data" + ] + }, + { + "id": "886a18334276270e1d4600c3d732ce08ceea44f838451b004aa2f37a8fb8810f", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "broker-admin-tls", + "started_at": "2026-11-09T17:49:06.024062987Z", + "volumes": [] + }, + { + "id": "9c7cb81c85ffdca49f6449f5d1b73972e90dfaa5dde0f43b19a3a6c47c925cce", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "collector-tls", + "started_at": "2026-11-09T17:49:05.93028472Z", + "volumes": [] + }, + { + "id": "8229a7ef578fa3e4cf72a825af7d6836647de44d9f2d504c5ec5cdc307d70f93", + "image": "sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84", + "running": true, + "service": "grafana", + "started_at": "2026-11-09T17:48:34.843817591Z", + "volumes": [ + "mtusi-messenger-lab6_grafana-data" + ] + }, + { + "id": "c0d70abdd1b7c9876b03ee24cce57174d23e32bd68b69125239133dd12995537", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "grafana-tls", + "started_at": "2026-11-09T17:49:05.891655005Z", + "volumes": [] + }, + { + "id": "6d00987f050d14af10ae5b24a91435ba2da1fbb9e59b8d7e68ff795d37952099", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "lb", + "started_at": "2026-11-09T17:49:12.37228931Z", + "volumes": [] + }, + { + "id": "1d9e067c6d26f7d2613c4d520d4f5bb96e906a318d35928aac030ae05b0a17a5", + "image": "sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511", + "running": true, + "service": "loki", + "started_at": "2026-11-09T17:48:35.128041359Z", + "volumes": [ + "mtusi-messenger-lab6_loki-data" + ] + }, + { + "id": "855c6e543694796e222b3a6d12b518a50f7a2dc3c7f57707a0d7d23565d3bf70", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "loki-tls", + "started_at": "2026-11-09T17:49:06.056135949Z", + "volumes": [] + }, + { + "id": "6cc7c1aab331d35c424fffd4604932cff2fd25eaa86233d68af7f8ba368c09dd", + "image": "sha256:5046911075e137e154ce49ab051502f4ec7cf367d484ae4a4dce665d9b90561f", + "running": true, + "service": "openbao", + "started_at": "2026-11-09T17:48:32.966437544Z", + "volumes": [ + "mtusi-messenger-lab6_openbao-audit", + "mtusi-messenger-lab6_openbao-raft-data" + ] + }, + { + "id": "aad8b0935730a028d67bc63725e52b9a90e186ad73daa33719679219830692bd", + "image": "sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b", + "running": true, + "service": "otel-collector", + "started_at": "2026-11-09T17:48:39.529892928Z", + "volumes": [] + }, + { + "id": "d039deb141cadb3741fdbcd64d3dcae8653a1c9c2fad06928c3afab30d5cba7a", + "image": "sha256:123b17998ccaf47e53b502e8c6a1e79afd8f579c6f3eec83c563da026f957395", + "running": true, + "service": "postgres", + "started_at": "2026-11-09T17:48:34.527818375Z", + "volumes": [ + "mtusi-messenger-lab6_postgres18-data" + ] + }, + { + "id": "a0dcf9498a38d7b8b1be8cef9c1fa67f56d31e9cdb2c3a75de3c2bffb422a622", + "image": "sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2", + "running": true, + "service": "prometheus", + "started_at": "2026-11-09T17:48:34.575175557Z", + "volumes": [ + "mtusi-messenger-lab6_prometheus-data" + ] + }, + { + "id": "c132e4c0463c642c878be8f019adc6ea412091c14aa36ac108831348e04bc2c8", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "prometheus-tls", + "started_at": "2026-11-09T17:49:05.995209315Z", + "volumes": [] + }, + { + "id": "6b5d87edafed608b12d639512369f25201b039428cfe92a284d3abdd227bf3d6", + "image": "sha256:c5d34a98396a4775e223c74e929162c35c5a2182901ba26b50ade939941ce14b", + "running": true, + "service": "redis", + "started_at": "2026-11-09T17:48:34.548345189Z", + "volumes": [ + "mtusi-messenger-lab6_redis7-data" + ] + }, + { + "id": "7527503180f7ff48bdd7b5c0ffe35fd1afed40fed37966dd76eec64925f824eb", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "relay", + "started_at": "2026-11-09T17:49:12.286372113Z", + "volumes": [] + }, + { + "id": "a11152720aac3bd90254fa0fa6080ed7ae4bb31c977452fcb57bd4842437f685", + "image": "sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8", + "running": true, + "service": "s3", + "started_at": "2026-11-09T17:49:05.862741573Z", + "volumes": [ + "68cfe1544e4b4c38b628fcccd543bab36e6db31f8125427cce1910ffdf152d27" + ] + }, + { + "id": "42b6a9e1330f8304ee6924e03423730f7c53f5fdf868b0a7575a26585758dc7e", + "image": "sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8", + "running": true, + "service": "seaweedfs", + "started_at": "2026-11-09T17:48:59.541759754Z", + "volumes": [ + "mtusi-messenger-lab6_seaweedfs-data" + ] + }, + { + "id": "c13f8ada0b058159cd1786434cdd817031d0aab60220a20b1a6722d5e221629c", + "image": "sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38", + "running": true, + "service": "tempo", + "started_at": "2026-11-09T17:48:34.710097969Z", + "volumes": [ + "mtusi-messenger-lab6_tempo-data" + ] + }, + { + "id": "7ba31deb6284b993212a6eaf3fab4534aadea27adc9c3f5d87662f7caa5cf9af", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "tempo-tls", + "started_at": "2026-11-09T17:49:05.963147722Z", + "volumes": [] + }, + { + "id": "5721b1bd16140a6c7c6ec996c7fc09ea72690ea5a2c22b247648df39abff6e72", + "image": "sha256:49340b346798875b5592e5d420241f2f9cfba5f47e62ebb1446a1b34734e898f", + "running": false, + "service": "volume-init", + "started_at": "2026-11-09T17:42:17.421314543Z", + "volumes": [ + "mtusi-messenger-lab6_grafana-data", + "mtusi-messenger-lab6_loki-data", + "mtusi-messenger-lab6_openbao-audit", + "mtusi-messenger-lab6_openbao-raft-data", + "mtusi-messenger-lab6_postgres18-data", + "mtusi-messenger-lab6_prometheus-data", + "mtusi-messenger-lab6_rabbitmq-data", + "mtusi-messenger-lab6_redis7-data", + "mtusi-messenger-lab6_seaweedfs-data", + "mtusi-messenger-lab6_tempo-data" + ] + }, + { + "id": "5b9060d0bbe1839c50cebca3c954298c24b32e0a4aa68eebe4dbc74a8267d90c", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "worker", + "started_at": "2026-11-09T17:49:12.241160455Z", + "volumes": [] + } + ], + "before": [ + { + "id": "6dc424bc61ca96d86e3633154dd7106c9721ac2d1f562bff84749232ac72f36b", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "api", + "started_at": "2026-11-09T17:38:31.932939071Z", + "volumes": [] + }, + { + "id": "78e96f0ca9d35adf9b9f2d4bb73c25fbdc24463a331eee1ec61882d1ee2cb2e3", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "api", + "started_at": "2026-11-09T17:38:31.867142361Z", + "volumes": [] + }, + { + "id": "36ecbf91a52bca1dc3ac266656b0a4a3227f15d337455a69926b28412e1ce6ee", + "image": "sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528", + "running": true, + "service": "broker", + "started_at": "2026-11-09T16:50:33.292613189Z", + "volumes": [ + "mtusi-messenger-lab6_rabbitmq-data" + ] + }, + { + "id": "eca35fbeb8c0cd1a21211dac175592c4a154ab2993b3524242d8e0d3e0e37b3f", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "broker-admin-tls", + "started_at": "2026-11-09T17:38:31.457677446Z", + "volumes": [] + }, + { + "id": "49e4144a7f5f69a325c07c19836b3ab40c06de238caa3a8809429e173b848850", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "collector-tls", + "started_at": "2026-11-09T17:38:30.744262456Z", + "volumes": [] + }, + { + "id": "8229a7ef578fa3e4cf72a825af7d6836647de44d9f2d504c5ec5cdc307d70f93", + "image": "sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84", + "running": true, + "service": "grafana", + "started_at": "2026-11-09T16:50:32.46372704Z", + "volumes": [ + "mtusi-messenger-lab6_grafana-data" + ] + }, + { + "id": "ad3bfb9aca712923479c6717781c89f0b6ec51980949dbe2ccca95c6cc548721", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "grafana-tls", + "started_at": "2026-11-09T17:38:31.334261143Z", + "volumes": [] + }, + { + "id": "6d00987f050d14af10ae5b24a91435ba2da1fbb9e59b8d7e68ff795d37952099", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "lb", + "started_at": "2026-11-09T17:38:37.335492745Z", + "volumes": [] + }, + { + "id": "1d9e067c6d26f7d2613c4d520d4f5bb96e906a318d35928aac030ae05b0a17a5", + "image": "sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511", + "running": true, + "service": "loki", + "started_at": "2026-11-09T16:50:32.692135394Z", + "volumes": [ + "mtusi-messenger-lab6_loki-data" + ] + }, + { + "id": "860bcb786ba551f0dab75ee92789c17ba4f5da2770d9073bc5bfa140c6d443c4", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "loki-tls", + "started_at": "2026-11-09T17:38:31.292594653Z", + "volumes": [] + }, + { + "id": "6cc7c1aab331d35c424fffd4604932cff2fd25eaa86233d68af7f8ba368c09dd", + "image": "sha256:5046911075e137e154ce49ab051502f4ec7cf367d484ae4a4dce665d9b90561f", + "running": true, + "service": "openbao", + "started_at": "2026-11-09T16:50:30.595362071Z", + "volumes": [ + "mtusi-messenger-lab6_openbao-audit", + "mtusi-messenger-lab6_openbao-raft-data" + ] + }, + { + "id": "aad8b0935730a028d67bc63725e52b9a90e186ad73daa33719679219830692bd", + "image": "sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b", + "running": true, + "service": "otel-collector", + "started_at": "2026-11-09T16:50:35.15935884Z", + "volumes": [] + }, + { + "id": "d039deb141cadb3741fdbcd64d3dcae8653a1c9c2fad06928c3afab30d5cba7a", + "image": "sha256:123b17998ccaf47e53b502e8c6a1e79afd8f579c6f3eec83c563da026f957395", + "running": true, + "service": "postgres", + "started_at": "2026-11-09T17:38:18.438516673Z", + "volumes": [ + "mtusi-messenger-lab6_postgres18-data" + ] + }, + { + "id": "a0dcf9498a38d7b8b1be8cef9c1fa67f56d31e9cdb2c3a75de3c2bffb422a622", + "image": "sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2", + "running": true, + "service": "prometheus", + "started_at": "2026-11-09T16:50:32.255745761Z", + "volumes": [ + "mtusi-messenger-lab6_prometheus-data" + ] + }, + { + "id": "e15e2129d438cd90ba9686acfa5ec00523230647a43cfc3e7290b73f4bc66965", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "prometheus-tls", + "started_at": "2026-11-09T17:38:31.250742923Z", + "volumes": [] + }, + { + "id": "6b5d87edafed608b12d639512369f25201b039428cfe92a284d3abdd227bf3d6", + "image": "sha256:c5d34a98396a4775e223c74e929162c35c5a2182901ba26b50ade939941ce14b", + "running": true, + "service": "redis", + "started_at": "2026-11-09T17:38:18.493395669Z", + "volumes": [ + "mtusi-messenger-lab6_redis7-data" + ] + }, + { + "id": "7527503180f7ff48bdd7b5c0ffe35fd1afed40fed37966dd76eec64925f824eb", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "relay", + "started_at": "2026-11-09T17:38:31.751453151Z", + "volumes": [] + }, + { + "id": "4c9dc89246275682f4f848ce68d9b20adc1919bab63ac1dbd256d59a20abf033", + "image": "sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8", + "running": true, + "service": "s3", + "started_at": "2026-11-09T17:38:18.928393231Z", + "volumes": [ + "68cfe1544e4b4c38b628fcccd543bab36e6db31f8125427cce1910ffdf152d27" + ] + }, + { + "id": "42b6a9e1330f8304ee6924e03423730f7c53f5fdf868b0a7575a26585758dc7e", + "image": "sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8", + "running": true, + "service": "seaweedfs", + "started_at": "2026-11-09T16:50:57.611450545Z", + "volumes": [ + "mtusi-messenger-lab6_seaweedfs-data" + ] + }, + { + "id": "c13f8ada0b058159cd1786434cdd817031d0aab60220a20b1a6722d5e221629c", + "image": "sha256:12b0820f13ffa10ce956b6e9acc3b03f3cffded99109be6cc09d106fe56e5d38", + "running": true, + "service": "tempo", + "started_at": "2026-11-09T17:38:31.367902689Z", + "volumes": [ + "mtusi-messenger-lab6_tempo-data" + ] + }, + { + "id": "d14cc9321a16bba368ce4a6a3cc6488183cd20c0093706cb75f4c65227e99c80", + "image": "sha256:96ec3c75a9264ba94e733eeacb44051ed6e7b79bb77a73c2c36f236b6423f1f0", + "running": true, + "service": "tempo-tls", + "started_at": "2026-11-09T17:38:31.496595102Z", + "volumes": [] + }, + { + "id": "5721b1bd16140a6c7c6ec996c7fc09ea72690ea5a2c22b247648df39abff6e72", + "image": "sha256:49340b346798875b5592e5d420241f2f9cfba5f47e62ebb1446a1b34734e898f", + "running": false, + "service": "volume-init", + "started_at": "2026-11-09T17:42:17.421314543Z", + "volumes": [ + "mtusi-messenger-lab6_grafana-data", + "mtusi-messenger-lab6_loki-data", + "mtusi-messenger-lab6_openbao-audit", + "mtusi-messenger-lab6_openbao-raft-data", + "mtusi-messenger-lab6_postgres18-data", + "mtusi-messenger-lab6_prometheus-data", + "mtusi-messenger-lab6_rabbitmq-data", + "mtusi-messenger-lab6_redis7-data", + "mtusi-messenger-lab6_seaweedfs-data", + "mtusi-messenger-lab6_tempo-data" + ] + }, + { + "id": "5b9060d0bbe1839c50cebca3c954298c24b32e0a4aa68eebe4dbc74a8267d90c", + "image": "sha256:6445f3422b2d1b393e2e5b28f1f90e3b12d4a417a27991b2ff8bb01780926f2d", + "running": true, + "service": "worker", + "started_at": "2026-11-09T17:38:31.810992367Z", + "volumes": [] + } + ], + "commands": [ + "make test test-security test-lab7 test-attachments test-presign test-queue test-idempotency test-observability", + "make test-persistence ACTION_SCRIPT=scripts/restart.sh" + ], + "persistence_result": "Full attachment bytes, confirmed message and existing session preserved.", + "recreated_services_observed": [ + "broker-admin-tls", + "collector-tls", + "grafana-tls", + "loki-tls", + "prometheus-tls", + "s3", + "tempo-tls" + ], + "restarted_services_observed": [ + "api", + "broker", + "grafana", + "lb", + "loki", + "openbao", + "otel-collector", + "postgres", + "prometheus", + "redis", + "relay", + "seaweedfs", + "tempo", + "worker" + ], + "same_volume_names": true, + "scope_note": "Before snapshot precedes the acceptance group, whose async scenarios also restart components; after snapshot follows the explicit persistence hook.", + "verified_volume_names": [ + "68cfe1544e4b4c38b628fcccd543bab36e6db31f8125427cce1910ffdf152d27", + "mtusi-messenger-lab6_grafana-data", + "mtusi-messenger-lab6_loki-data", + "mtusi-messenger-lab6_openbao-audit", + "mtusi-messenger-lab6_openbao-raft-data", + "mtusi-messenger-lab6_postgres18-data", + "mtusi-messenger-lab6_prometheus-data", + "mtusi-messenger-lab6_rabbitmq-data", + "mtusi-messenger-lab6_redis7-data", + "mtusi-messenger-lab6_seaweedfs-data", + "mtusi-messenger-lab6_tempo-data" + ] +} diff --git a/evidence/lab7/root-crl.json b/evidence/lab7/root-crl.json new file mode 100644 index 0000000..442316e --- /dev/null +++ b/evidence/lab7/root-crl.json @@ -0,0 +1,10 @@ +{ + "scenario": "expired offline root CRL operator refresh", + "expired_before": "Nov 9 19:18:56 2026 GMT", + "next_update_after": "Nov 16 19:18:57 2026 GMT", + "refreshed_signed_crl": true, + "valid_for_more_than_24h": true, + "same_ca_key_certificate_revocation_index": true, + "unexpired_crl_not_regenerated": true, + "docker_targets_mutated": false +} diff --git a/evidence/lab7/scans/before-remediation.json b/evidence/lab7/scans/before-remediation.json new file mode 100644 index 0000000..0007222 --- /dev/null +++ b/evidence/lab7/scans/before-remediation.json @@ -0,0 +1,2465 @@ +{ + "images": [ + { + "counts": { + "MEDIUM": 1 + }, + "critical_high": [], + "exit": 0, + "image": "alpine:3.22" + }, + { + "counts": { + "HIGH": 2, + "MEDIUM": 2, + "UNKNOWN": 1 + }, + "critical_high": [ + { + "FixedVersion": "4.1.6", + "InstalledVersion": "v4.1.5", + "PkgName": "github.com/go-jose/go-jose/v4", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose: go-jose: Denial of Service via crafted RSA parameters in JWKs", + "VulnerabilityID": "CVE-2026-116587" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.61.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + } + ], + "exit": 0, + "image": "chrislusf/seaweedfs:4.51@sha256:f7a49e3f3972ebed5be2ed4befa4a0c68eb7bdddba6e692d42729ceb545134b8" + }, + { + "counts": { + "HIGH": 49, + "LOW": 6, + "MEDIUM": 103, + "UNKNOWN": 5 + }, + "critical_high": [ + { + "FixedVersion": "4.1.6", + "InstalledVersion": "v4.1.4", + "PkgName": "github.com/go-jose/go-jose/v4", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose: go-jose: Denial of Service via crafted RSA parameters in JWKs", + "VulnerabilityID": "CVE-2026-116587" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.60.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.60.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.26.7", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.58.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.61.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.60.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "2.8.4, 2.9.2, 2.10.2", + "InstalledVersion": "v1.5.1-0.20260910130453-bcfe9f230c1d", + "PkgName": "github.com/grafana/tempo", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-21728", + "Severity": "HIGH", + "Title": "grafana/tempo: Tempo: Denial of Service via large queries", + "VulnerabilityID": "CVE-2026-21728" + }, + { + "FixedVersion": "2.10.3", + "InstalledVersion": "v1.5.1-0.20260910130453-bcfe9f230c1d", + "PkgName": "github.com/grafana/tempo", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28377", + "Severity": "HIGH", + "Title": "Grafana Tempo: Grafana Tempo: Information disclosure of S3 encryption key via status config endpoint", + "VulnerabilityID": "CVE-2026-28377" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.60.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.60.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + } + ], + "exit": 0, + "image": "grafana/grafana:13.2.5@sha256:9f7aa1e1e3246aade5792d35a738049f7f32f89cd51d1956cf426a4e86268a84" + }, + { + "counts": { + "CRITICAL": 2, + "HIGH": 54, + "LOW": 7, + "MEDIUM": 45, + "UNKNOWN": 5 + }, + "critical_high": [ + { + "FixedVersion": "1.1.2", + "InstalledVersion": "v1.1.1", + "PkgName": "github.com/buger/jsonparser", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32285", + "Severity": "HIGH", + "Title": "github.com/buger/jsonparser: github.com/buger/jsonparser: Denial of Service via malformed JSON input", + "VulnerabilityID": "CVE-2026-32285" + }, + { + "FixedVersion": "4.1.6", + "InstalledVersion": "v4.1.1", + "PkgName": "github.com/go-jose/go-jose/v4", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose: go-jose: Denial of Service via crafted RSA parameters in JWKs", + "VulnerabilityID": "CVE-2026-116587" + }, + { + "FixedVersion": "4.1.4", + "InstalledVersion": "v4.1.1", + "PkgName": "github.com/go-jose/go-jose/v4", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34986", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose/v3: github.com/go-jose/go-jose/v4: Go JOSE: Denial of Service via crafted JSON Web Encryption (JWE) object", + "VulnerabilityID": "CVE-2026-34986" + }, + { + "FixedVersion": "1.18.7", + "InstalledVersion": "v1.18.0", + "PkgName": "github.com/klauspost/compress", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63209", + "Severity": "HIGH", + "Title": "github.com/klauspost/compress: klauspost/compress: Denial of Service via integer overflow in dictionary processing", + "VulnerabilityID": "CVE-2026-63209" + }, + { + "FixedVersion": "0.311.3", + "InstalledVersion": "v0.305.1-0.20250806170547-208187eaa19b", + "PkgName": "github.com/prometheus/prometheus", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42151", + "Severity": "HIGH", + "Title": "github.com/prometheus/prometheus: Prometheus: Information disclosure of Azure OAuth client secret via config API", + "VulnerabilityID": "CVE-2026-42151" + }, + { + "FixedVersion": "0.311.3, 0.305.2", + "InstalledVersion": "v0.305.1-0.20250806170547-208187eaa19b", + "PkgName": "github.com/prometheus/prometheus", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42154", + "Severity": "HIGH", + "Title": "github.com/prometheus/prometheus: Prometheus: Denial of Service via uncontrolled memory allocation in remote read endpoint", + "VulnerabilityID": "CVE-2026-42154" + }, + { + "FixedVersion": "1.41.0", + "InstalledVersion": "v1.38.0", + "PkgName": "go.opentelemetry.io/otel", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-29181", + "Severity": "HIGH", + "Title": "github.com/open-telemetry/opentelemetry-go: OpenTelemetry-Go: Denial of Service via crafted multi-value baggage headers", + "VulnerabilityID": "CVE-2026-29181" + }, + { + "FixedVersion": "1.40.0", + "InstalledVersion": "v1.38.0", + "PkgName": "go.opentelemetry.io/otel/sdk", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-24051", + "Severity": "HIGH", + "Title": "opentelemetry-go: OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking", + "VulnerabilityID": "CVE-2026-24051" + }, + { + "FixedVersion": "1.43.0", + "InstalledVersion": "v1.38.0", + "PkgName": "go.opentelemetry.io/otel/sdk", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39883", + "Severity": "HIGH", + "Title": "github.com/open-telemetry/opentelemetry-go: OpenTelemetry-Go: Arbitrary code execution via PATH hijacking on BSD/Solaris", + "VulnerabilityID": "CVE-2026-39883" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39828", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Unauthorized command execution via discarded SSH permissions", + "VulnerabilityID": "CVE-2026-39828" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39829", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Denial of Service via crafted public key with excessive parameters", + "VulnerabilityID": "CVE-2026-39829" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39830", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Denial of Service via resource leak from unsolicited SSH responses", + "VulnerabilityID": "CVE-2026-39830" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39831", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Security key bypass due to missing user presence check", + "VulnerabilityID": "CVE-2026-39831" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39832", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh/agent: golang.org/x/crypto/ssh/agent: Security bypass due to improper handling of key restrictions", + "VulnerabilityID": "CVE-2026-39832" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39835", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang: golang.org/x/crypto/ssh: Denial of Service via crafted SSH certificate", + "VulnerabilityID": "CVE-2026-39835" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42508", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh/knownhosts: golang: golang.org/x/crypto/ssh/knownhosts: Revocation bypass via unchecked SignatureKey", + "VulnerabilityID": "CVE-2026-42508" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46595", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Authorization bypass due to skipped source-address validation", + "VulnerabilityID": "CVE-2026-46595" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46597", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Denial of Service via crafted AES-GCM packet decoder inputs", + "VulnerabilityID": "CVE-2026-46597" + }, + { + "FixedVersion": "0.55.0", + "InstalledVersion": "v0.45.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56854", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Authentication bypass due to unenforced source-address restrictions", + "VulnerabilityID": "CVE-2026-56854" + }, + { + "FixedVersion": "0.55.0", + "InstalledVersion": "v0.47.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25681", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Arbitrary code execution via Cross-Site Scripting", + "VulnerabilityID": "CVE-2026-25681" + }, + { + "FixedVersion": "0.55.0", + "InstalledVersion": "v0.47.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27136", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang: golang.org/x/net/html: Cross-Site Scripting via HTML parsing bypass", + "VulnerabilityID": "CVE-2026-27136" + }, + { + "FixedVersion": "0.53.0", + "InstalledVersion": "v0.47.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33814", + "Severity": "HIGH", + "Title": "net/http/internal/http2: golang: golang.org/x/net: Go HTTP/2: Denial of Service via malformed SETTINGS_MAX_FRAME_SIZE frame", + "VulnerabilityID": "CVE-2026-33814" + }, + { + "FixedVersion": "0.55.0", + "InstalledVersion": "v0.47.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39821", + "Severity": "HIGH", + "Title": "golang.org/x/net/idna: golang: net/http: golang.org/x/net/idna: Privilege escalation via incorrect Punycode label processing", + "VulnerabilityID": "CVE-2026-39821" + }, + { + "FixedVersion": "0.56.0", + "InstalledVersion": "v0.47.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46600", + "Severity": "HIGH", + "Title": "golang.org/x/net/dns/dnsmessage: golang.org/x/net/dns/dnsmessage: Denial of Service via invalid DNS record parsing", + "VulnerabilityID": "CVE-2026-46600" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.47.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.47.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "0.41.0", + "InstalledVersion": "v0.31.0", + "PkgName": "golang.org/x/text", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56851", + "Severity": "HIGH", + "Title": "golang.org/x/text: golang.org/x/text: Denial of Service via out-of-bounds slice error in Nickname profile", + "VulnerabilityID": "CVE-2026-56851" + }, + { + "FixedVersion": "0.39.0", + "InstalledVersion": "v0.31.0", + "PkgName": "golang.org/x/text", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56852", + "Severity": "HIGH", + "Title": "golang.org/x/text: golang.org/x/text: Denial of Service via invalid UTF-8 input", + "VulnerabilityID": "CVE-2026-56852" + }, + { + "FixedVersion": "1.79.3", + "InstalledVersion": "v1.75.1", + "PkgName": "google.golang.org/grpc", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33186", + "Severity": "CRITICAL", + "Title": "google.golang.org/grpc/grpc-go: google.golang.org/grpc/authz: gRPC-Go: Authorization bypass due to improper HTTP/2 path validation", + "VulnerabilityID": "CVE-2026-33186" + }, + { + "FixedVersion": "1.83.1", + "InstalledVersion": "v1.75.1", + "PkgName": "google.golang.org/grpc", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84304", + "Severity": "HIGH", + "Title": "google.golang.org/grpc: gRPC-Go: Denial of Service via HTTP/2 DATA Frame Fragmentation", + "VulnerabilityID": "CVE-2026-84304" + }, + { + "FixedVersion": "1.82.2, 1.83.2, 1.84.0-dev.0.20260825144003-d5a41119e0e3, 1.85.0-dev.0.20260825072537-93e31b48545e", + "InstalledVersion": "v1.75.1", + "PkgName": "google.golang.org/grpc", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84445", + "Severity": "HIGH", + "Title": "google.golang.org/grpc: gRPC-Go: Denial of Service via malformed RPC requests", + "VulnerabilityID": "CVE-2026-84445" + }, + { + "FixedVersion": "1.82.1", + "InstalledVersion": "v1.75.1", + "PkgName": "google.golang.org/grpc", + "PrimaryURL": "https://github.com/advisories/GHSA-hrxh-6v49-42gf", + "Severity": "HIGH", + "Title": "gRPC-Go: xDS RBAC and HTTP/2 Vulnerabilities", + "VulnerabilityID": "GHSA-hrxh-6v49-42gf" + }, + { + "FixedVersion": "1.24.13, 1.25.7, 1.26.0-rc.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-68121", + "Severity": "CRITICAL", + "Title": "crypto/tls: crypto/tls: Incorrect certificate validation during TLS session resumption", + "VulnerabilityID": "CVE-2025-68121" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.25.8, 1.26.1", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25679", + "Severity": "HIGH", + "Title": "net/url: Incorrect parsing of IPv6 host literals in net/url", + "VulnerabilityID": "CVE-2026-25679" + }, + { + "FixedVersion": "1.25.11, 1.26.4", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27145", + "Severity": "HIGH", + "Title": "crypto/x509: golang: golang crypto/x509: Denial of Service via excessive processing of DNS SAN entries", + "VulnerabilityID": "CVE-2026-27145" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32280", + "Severity": "HIGH", + "Title": "crypto/x509: crypto/tls: golang: Go: Denial of Service vulnerability in certificate chain building", + "VulnerabilityID": "CVE-2026-32280" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32281", + "Severity": "HIGH", + "Title": "crypto/x509: golang: Go crypto/x509: Denial of Service via inefficient certificate chain validation", + "VulnerabilityID": "CVE-2026-32281" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32283", + "Severity": "HIGH", + "Title": "crypto/tls: golang: Go crypto/tls: Denial of Service via multiple TLS 1.3 key update messages", + "VulnerabilityID": "CVE-2026-32283" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33811", + "Severity": "HIGH", + "Title": "net: golang: Go net package: Denial of Service via long CNAME response in LookupCNAME", + "VulnerabilityID": "CVE-2026-33811" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33814", + "Severity": "HIGH", + "Title": "net/http/internal/http2: golang: golang.org/x/net: Go HTTP/2: Denial of Service via malformed SETTINGS_MAX_FRAME_SIZE frame", + "VulnerabilityID": "CVE-2026-33814" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33818", + "Severity": "HIGH", + "Title": "encoding/asn1: golang: Go encoding/asn1: Denial of Service via excessive recursion in Unmarshal", + "VulnerabilityID": "CVE-2026-33818" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39820", + "Severity": "HIGH", + "Title": "net/mail: golang: Go net/mail: Denial of Service via crafted email inputs", + "VulnerabilityID": "CVE-2026-39820" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39821", + "Severity": "HIGH", + "Title": "golang.org/x/net/idna: golang: net/http: golang.org/x/net/idna: Privilege escalation via incorrect Punycode label processing", + "VulnerabilityID": "CVE-2026-39821" + }, + { + "FixedVersion": "1.25.12, 1.26.5, 1.27.0-rc.2", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39822", + "Severity": "HIGH", + "Title": "golang: Go os.Root: Symlink following vulnerability allows directory traversal", + "VulnerabilityID": "CVE-2026-39822" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39836", + "Severity": "HIGH", + "Title": "net: golang: Go net package: Denial of Service via NUL byte in Dial and LookupPort on Windows", + "VulnerabilityID": "CVE-2026-39836" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42499", + "Severity": "HIGH", + "Title": "net/mail: golang: net/mail: Denial of Service via pathological email address parsing", + "VulnerabilityID": "CVE-2026-42499" + }, + { + "FixedVersion": "1.25.11, 1.26.4", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42504", + "Severity": "HIGH", + "Title": "mime: golang: Golang MIME: Denial of Service via maliciously-crafted MIME header", + "VulnerabilityID": "CVE-2026-42504" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56853", + "Severity": "HIGH", + "Title": "net/http: golang: Go net/http: Unencrypted HTTP/2 connections vulnerable to Denial of Service", + "VulnerabilityID": "CVE-2026-56853" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56858", + "Severity": "HIGH", + "Title": "html/template: golang: Go html/template: Cross-Site Scripting via pathological input", + "VulnerabilityID": "CVE-2026-56858" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56859", + "Severity": "HIGH", + "Title": "encoding/xml: golang: Go: Denial of Service via XML decoding recursion depth issue", + "VulnerabilityID": "CVE-2026-56859" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56860", + "Severity": "HIGH", + "Title": "net/url: golang: golang net/url: Denial of Service from quadratic complexity in path resolution", + "VulnerabilityID": "CVE-2026-56860" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56862", + "Severity": "HIGH", + "Title": "crypto/tls: golang: Golang crypto/tls: Denial of Service via indefinite KeyUpdate messages", + "VulnerabilityID": "CVE-2026-56862" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.24.12", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + } + ], + "exit": 0, + "image": "grafana/loki:3.6.4@sha256:be31579ac047e9f78b81e48f3b69d3af709e7299b431d5aa78bcda43382f9511" + }, + { + "counts": { + "CRITICAL": 2, + "HIGH": 63, + "LOW": 7, + "MEDIUM": 59, + "UNKNOWN": 5 + }, + "critical_high": [ + { + "FixedVersion": "1.3.6", + "InstalledVersion": "v1.3.4", + "PkgName": "github.com/antchfx/xpath", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32287", + "Severity": "HIGH", + "Title": "github.com/antchfx/xpath: github.com/antchfx/xpath: Denial of Service due to infinite loop via boolean XPath expressions", + "VulnerabilityID": "CVE-2026-32287" + }, + { + "FixedVersion": "0.23.0", + "InstalledVersion": "v0.22.0", + "PkgName": "github.com/apache/thrift", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-41602", + "Severity": "HIGH", + "Title": "github.com/apache/thrift: Apache Thrift: Integer Overflow in TFramedTransport Go implementation", + "VulnerabilityID": "CVE-2026-41602" + }, + { + "FixedVersion": "0.24.0", + "InstalledVersion": "v0.22.0", + "PkgName": "github.com/apache/thrift", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-43871", + "Severity": "HIGH", + "Title": "thrift: Apache Thrift: Denial of Service via infinite loop", + "VulnerabilityID": "CVE-2026-43871" + }, + { + "FixedVersion": "1.1.2", + "InstalledVersion": "v1.1.1", + "PkgName": "github.com/buger/jsonparser", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32285", + "Severity": "HIGH", + "Title": "github.com/buger/jsonparser: github.com/buger/jsonparser: Denial of Service via malformed JSON input", + "VulnerabilityID": "CVE-2026-32285" + }, + { + "FixedVersion": "1.17.7", + "InstalledVersion": "v1.17.5", + "PkgName": "github.com/expr-lang/expr", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-68156", + "Severity": "HIGH", + "Title": "github.com/expr-lang/expr: Expr: Denial of Service via uncontrolled recursion in expression evaluation", + "VulnerabilityID": "CVE-2025-68156" + }, + { + "FixedVersion": "4.1.6", + "InstalledVersion": "v4.1.1", + "PkgName": "github.com/go-jose/go-jose/v4", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose: go-jose: Denial of Service via crafted RSA parameters in JWKs", + "VulnerabilityID": "CVE-2026-116587" + }, + { + "FixedVersion": "4.1.4", + "InstalledVersion": "v4.1.1", + "PkgName": "github.com/go-jose/go-jose/v4", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-34986", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose/v3: github.com/go-jose/go-jose/v4: Go JOSE: Denial of Service via crafted JSON Web Encryption (JWE) object", + "VulnerabilityID": "CVE-2026-34986" + }, + { + "FixedVersion": "2.8.4, 2.9.2, 2.10.2", + "InstalledVersion": "v2.9.0", + "PkgName": "github.com/grafana/tempo", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-21728", + "Severity": "HIGH", + "Title": "grafana/tempo: Tempo: Denial of Service via large queries", + "VulnerabilityID": "CVE-2026-21728" + }, + { + "FixedVersion": "2.10.3", + "InstalledVersion": "v2.9.0", + "PkgName": "github.com/grafana/tempo", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-28377", + "Severity": "HIGH", + "Title": "Grafana Tempo: Grafana Tempo: Information disclosure of S3 encryption key via status config endpoint", + "VulnerabilityID": "CVE-2026-28377" + }, + { + "FixedVersion": "1.18.7", + "InstalledVersion": "v1.18.0", + "PkgName": "github.com/klauspost/compress", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-63209", + "Severity": "HIGH", + "Title": "github.com/klauspost/compress: klauspost/compress: Denial of Service via integer overflow in dictionary processing", + "VulnerabilityID": "CVE-2026-63209" + }, + { + "FixedVersion": "0.311.3", + "InstalledVersion": "v0.304.2", + "PkgName": "github.com/prometheus/prometheus", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42151", + "Severity": "HIGH", + "Title": "github.com/prometheus/prometheus: Prometheus: Information disclosure of Azure OAuth client secret via config API", + "VulnerabilityID": "CVE-2026-42151" + }, + { + "FixedVersion": "0.311.3, 0.305.2", + "InstalledVersion": "v0.304.2", + "PkgName": "github.com/prometheus/prometheus", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42154", + "Severity": "HIGH", + "Title": "github.com/prometheus/prometheus: Prometheus: Denial of Service via uncontrolled memory allocation in remote read endpoint", + "VulnerabilityID": "CVE-2026-42154" + }, + { + "FixedVersion": "1.41.0", + "InstalledVersion": "v1.38.0", + "PkgName": "go.opentelemetry.io/otel", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-29181", + "Severity": "HIGH", + "Title": "github.com/open-telemetry/opentelemetry-go: OpenTelemetry-Go: Denial of Service via crafted multi-value baggage headers", + "VulnerabilityID": "CVE-2026-29181" + }, + { + "FixedVersion": "1.40.0", + "InstalledVersion": "v1.38.0", + "PkgName": "go.opentelemetry.io/otel/sdk", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-24051", + "Severity": "HIGH", + "Title": "opentelemetry-go: OpenTelemetry-Go Affected by Arbitrary Code Execution via PATH Hijacking", + "VulnerabilityID": "CVE-2026-24051" + }, + { + "FixedVersion": "1.43.0", + "InstalledVersion": "v1.38.0", + "PkgName": "go.opentelemetry.io/otel/sdk", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39883", + "Severity": "HIGH", + "Title": "github.com/open-telemetry/opentelemetry-go: OpenTelemetry-Go: Arbitrary code execution via PATH hijacking on BSD/Solaris", + "VulnerabilityID": "CVE-2026-39883" + }, + { + "FixedVersion": "0.43.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-47913", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh/agent: golang.org/x/crypto/ssh/agent: SSH client panic due to unexpected SSH_AGENT_SUCCESS", + "VulnerabilityID": "CVE-2025-47913" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39828", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Unauthorized command execution via discarded SSH permissions", + "VulnerabilityID": "CVE-2026-39828" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39829", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Denial of Service via crafted public key with excessive parameters", + "VulnerabilityID": "CVE-2026-39829" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39830", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Denial of Service via resource leak from unsolicited SSH responses", + "VulnerabilityID": "CVE-2026-39830" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39831", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Security key bypass due to missing user presence check", + "VulnerabilityID": "CVE-2026-39831" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39832", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh/agent: golang.org/x/crypto/ssh/agent: Security bypass due to improper handling of key restrictions", + "VulnerabilityID": "CVE-2026-39832" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39835", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang: golang.org/x/crypto/ssh: Denial of Service via crafted SSH certificate", + "VulnerabilityID": "CVE-2026-39835" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42508", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh/knownhosts: golang: golang.org/x/crypto/ssh/knownhosts: Revocation bypass via unchecked SignatureKey", + "VulnerabilityID": "CVE-2026-42508" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46595", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Authorization bypass due to skipped source-address validation", + "VulnerabilityID": "CVE-2026-46595" + }, + { + "FixedVersion": "0.52.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46597", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Denial of Service via crafted AES-GCM packet decoder inputs", + "VulnerabilityID": "CVE-2026-46597" + }, + { + "FixedVersion": "0.55.0", + "InstalledVersion": "v0.41.0", + "PkgName": "golang.org/x/crypto", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56854", + "Severity": "HIGH", + "Title": "golang.org/x/crypto/ssh: golang.org/x/crypto/ssh: Authentication bypass due to unenforced source-address restrictions", + "VulnerabilityID": "CVE-2026-56854" + }, + { + "FixedVersion": "0.55.0", + "InstalledVersion": "v0.43.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25681", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Arbitrary code execution via Cross-Site Scripting", + "VulnerabilityID": "CVE-2026-25681" + }, + { + "FixedVersion": "0.55.0", + "InstalledVersion": "v0.43.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27136", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang: golang.org/x/net/html: Cross-Site Scripting via HTML parsing bypass", + "VulnerabilityID": "CVE-2026-27136" + }, + { + "FixedVersion": "0.53.0", + "InstalledVersion": "v0.43.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33814", + "Severity": "HIGH", + "Title": "net/http/internal/http2: golang: golang.org/x/net: Go HTTP/2: Denial of Service via malformed SETTINGS_MAX_FRAME_SIZE frame", + "VulnerabilityID": "CVE-2026-33814" + }, + { + "FixedVersion": "0.55.0", + "InstalledVersion": "v0.43.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39821", + "Severity": "HIGH", + "Title": "golang.org/x/net/idna: golang: net/http: golang.org/x/net/idna: Privilege escalation via incorrect Punycode label processing", + "VulnerabilityID": "CVE-2026-39821" + }, + { + "FixedVersion": "0.56.0", + "InstalledVersion": "v0.43.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-46600", + "Severity": "HIGH", + "Title": "golang.org/x/net/dns/dnsmessage: golang.org/x/net/dns/dnsmessage: Denial of Service via invalid DNS record parsing", + "VulnerabilityID": "CVE-2026-46600" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.43.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.43.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "0.41.0", + "InstalledVersion": "v0.28.0", + "PkgName": "golang.org/x/text", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56851", + "Severity": "HIGH", + "Title": "golang.org/x/text: golang.org/x/text: Denial of Service via out-of-bounds slice error in Nickname profile", + "VulnerabilityID": "CVE-2026-56851" + }, + { + "FixedVersion": "0.39.0", + "InstalledVersion": "v0.28.0", + "PkgName": "golang.org/x/text", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56852", + "Severity": "HIGH", + "Title": "golang.org/x/text: golang.org/x/text: Denial of Service via invalid UTF-8 input", + "VulnerabilityID": "CVE-2026-56852" + }, + { + "FixedVersion": "1.79.3", + "InstalledVersion": "v1.75.0", + "PkgName": "google.golang.org/grpc", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33186", + "Severity": "CRITICAL", + "Title": "google.golang.org/grpc/grpc-go: google.golang.org/grpc/authz: gRPC-Go: Authorization bypass due to improper HTTP/2 path validation", + "VulnerabilityID": "CVE-2026-33186" + }, + { + "FixedVersion": "1.83.1", + "InstalledVersion": "v1.75.0", + "PkgName": "google.golang.org/grpc", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84304", + "Severity": "HIGH", + "Title": "google.golang.org/grpc: gRPC-Go: Denial of Service via HTTP/2 DATA Frame Fragmentation", + "VulnerabilityID": "CVE-2026-84304" + }, + { + "FixedVersion": "1.82.2, 1.83.2, 1.84.0-dev.0.20260825144003-d5a41119e0e3, 1.85.0-dev.0.20260825072537-93e31b48545e", + "InstalledVersion": "v1.75.0", + "PkgName": "google.golang.org/grpc", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84445", + "Severity": "HIGH", + "Title": "google.golang.org/grpc: gRPC-Go: Denial of Service via malformed RPC requests", + "VulnerabilityID": "CVE-2026-84445" + }, + { + "FixedVersion": "1.82.1", + "InstalledVersion": "v1.75.0", + "PkgName": "google.golang.org/grpc", + "PrimaryURL": "https://github.com/advisories/GHSA-hrxh-6v49-42gf", + "Severity": "HIGH", + "Title": "gRPC-Go: xDS RBAC and HTTP/2 Vulnerabilities", + "VulnerabilityID": "GHSA-hrxh-6v49-42gf" + }, + { + "FixedVersion": "1.24.13, 1.25.7, 1.26.0-rc.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-68121", + "Severity": "CRITICAL", + "Title": "crypto/tls: crypto/tls: Incorrect certificate validation during TLS session resumption", + "VulnerabilityID": "CVE-2025-68121" + }, + { + "FixedVersion": "1.24.12, 1.25.6", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61726", + "Severity": "HIGH", + "Title": "golang: net/url: Memory exhaustion in query parameter parsing in net/url", + "VulnerabilityID": "CVE-2025-61726" + }, + { + "FixedVersion": "1.24.11, 1.25.5", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61729", + "Severity": "HIGH", + "Title": "crypto/x509: golang: Denial of Service due to excessive resource consumption via crafted certificate", + "VulnerabilityID": "CVE-2025-61729" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.25.8, 1.26.1", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25679", + "Severity": "HIGH", + "Title": "net/url: Incorrect parsing of IPv6 host literals in net/url", + "VulnerabilityID": "CVE-2026-25679" + }, + { + "FixedVersion": "1.25.11, 1.26.4", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27145", + "Severity": "HIGH", + "Title": "crypto/x509: golang: golang crypto/x509: Denial of Service via excessive processing of DNS SAN entries", + "VulnerabilityID": "CVE-2026-27145" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32280", + "Severity": "HIGH", + "Title": "crypto/x509: crypto/tls: golang: Go: Denial of Service vulnerability in certificate chain building", + "VulnerabilityID": "CVE-2026-32280" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32281", + "Severity": "HIGH", + "Title": "crypto/x509: golang: Go crypto/x509: Denial of Service via inefficient certificate chain validation", + "VulnerabilityID": "CVE-2026-32281" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32283", + "Severity": "HIGH", + "Title": "crypto/tls: golang: Go crypto/tls: Denial of Service via multiple TLS 1.3 key update messages", + "VulnerabilityID": "CVE-2026-32283" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33811", + "Severity": "HIGH", + "Title": "net: golang: Go net package: Denial of Service via long CNAME response in LookupCNAME", + "VulnerabilityID": "CVE-2026-33811" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33814", + "Severity": "HIGH", + "Title": "net/http/internal/http2: golang: golang.org/x/net: Go HTTP/2: Denial of Service via malformed SETTINGS_MAX_FRAME_SIZE frame", + "VulnerabilityID": "CVE-2026-33814" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33818", + "Severity": "HIGH", + "Title": "encoding/asn1: golang: Go encoding/asn1: Denial of Service via excessive recursion in Unmarshal", + "VulnerabilityID": "CVE-2026-33818" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39820", + "Severity": "HIGH", + "Title": "net/mail: golang: Go net/mail: Denial of Service via crafted email inputs", + "VulnerabilityID": "CVE-2026-39820" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39821", + "Severity": "HIGH", + "Title": "golang.org/x/net/idna: golang: net/http: golang.org/x/net/idna: Privilege escalation via incorrect Punycode label processing", + "VulnerabilityID": "CVE-2026-39821" + }, + { + "FixedVersion": "1.25.12, 1.26.5, 1.27.0-rc.2", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39822", + "Severity": "HIGH", + "Title": "golang: Go os.Root: Symlink following vulnerability allows directory traversal", + "VulnerabilityID": "CVE-2026-39822" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39836", + "Severity": "HIGH", + "Title": "net: golang: Go net package: Denial of Service via NUL byte in Dial and LookupPort on Windows", + "VulnerabilityID": "CVE-2026-39836" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42499", + "Severity": "HIGH", + "Title": "net/mail: golang: net/mail: Denial of Service via pathological email address parsing", + "VulnerabilityID": "CVE-2026-42499" + }, + { + "FixedVersion": "1.25.11, 1.26.4", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42504", + "Severity": "HIGH", + "Title": "mime: golang: Golang MIME: Denial of Service via maliciously-crafted MIME header", + "VulnerabilityID": "CVE-2026-42504" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56853", + "Severity": "HIGH", + "Title": "net/http: golang: Go net/http: Unencrypted HTTP/2 connections vulnerable to Denial of Service", + "VulnerabilityID": "CVE-2026-56853" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56858", + "Severity": "HIGH", + "Title": "html/template: golang: Go html/template: Cross-Site Scripting via pathological input", + "VulnerabilityID": "CVE-2026-56858" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56859", + "Severity": "HIGH", + "Title": "encoding/xml: golang: Go: Denial of Service via XML decoding recursion depth issue", + "VulnerabilityID": "CVE-2026-56859" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56860", + "Severity": "HIGH", + "Title": "net/url: golang: golang net/url: Denial of Service from quadratic complexity in path resolution", + "VulnerabilityID": "CVE-2026-56860" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56862", + "Severity": "HIGH", + "Title": "crypto/tls: golang: Golang crypto/tls: Denial of Service via indefinite KeyUpdate messages", + "VulnerabilityID": "CVE-2026-56862" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.25.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + } + ], + "exit": 0, + "image": "grafana/tempo:2.9.0@sha256:65a5789759435f1ef696f1953258b9bbdb18eb571d5ce711ff812d2e128288a4" + }, + { + "counts": { + "HIGH": 2, + "MEDIUM": 1 + }, + "critical_high": [ + { + "FixedVersion": "1.2.6-r3", + "InstalledVersion": "1.2.6-r2", + "PkgName": "musl", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107891", + "Severity": "HIGH", + "Title": "musl: musl: Arbitrary code execution via integer overflow in regcomp", + "VulnerabilityID": "CVE-2026-107891" + }, + { + "FixedVersion": "1.2.6-r3", + "InstalledVersion": "1.2.6-r2", + "PkgName": "musl-utils", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107891", + "Severity": "HIGH", + "Title": "musl: musl: Arbitrary code execution via integer overflow in regcomp", + "VulnerabilityID": "CVE-2026-107891" + } + ], + "exit": 0, + "image": "haproxy:3.2-alpine@sha256:254e6370f01cd654e0744edf607c67f33777c1b6a9dc0d4b28bcba7171460122" + }, + { + "counts": { + "HIGH": 34, + "LOW": 6, + "MEDIUM": 80, + "UNKNOWN": 5 + }, + "critical_high": [ + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.60.0", + "InstalledVersion": "v0.59.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.27.1", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + } + ], + "exit": 0, + "image": "mtusi-messenger:lab7" + }, + { + "counts": { + "HIGH": 3, + "MEDIUM": 6, + "UNKNOWN": 1 + }, + "critical_high": [ + { + "FixedVersion": null, + "InstalledVersion": "v3.0.5", + "PkgName": "github.com/go-jose/go-jose/v3", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose: go-jose: Denial of Service via crafted RSA parameters in JWKs", + "VulnerabilityID": "CVE-2026-116587" + }, + { + "FixedVersion": "4.1.6", + "InstalledVersion": "v4.1.4", + "PkgName": "github.com/go-jose/go-jose/v4", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose: go-jose: Denial of Service via crafted RSA parameters in JWKs", + "VulnerabilityID": "CVE-2026-116587" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.61.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + } + ], + "exit": 0, + "image": "openbao/openbao:2.7.2@sha256:5046911075e137e154ce49ab051502f4ec7cf367d484ae4a4dce665d9b90561f" + }, + { + "counts": { + "HIGH": 2, + "MEDIUM": 1, + "UNKNOWN": 1 + }, + "critical_high": [ + { + "FixedVersion": "4.1.6", + "InstalledVersion": "v4.1.5", + "PkgName": "github.com/go-jose/go-jose/v4", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-116587", + "Severity": "HIGH", + "Title": "github.com/go-jose/go-jose: go-jose: Denial of Service via crafted RSA parameters in JWKs", + "VulnerabilityID": "CVE-2026-116587" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.61.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + } + ], + "exit": 0, + "image": "otel/opentelemetry-collector-contrib:0.164.0@sha256:340c9ca6a36617084c6661bdc4f0fe92b7cda5a805d61673ec8db375fddc522b" + }, + { + "counts": { + "CRITICAL": 2, + "HIGH": 29, + "LOW": 25, + "MEDIUM": 34, + "UNKNOWN": 1 + }, + "critical_high": [ + { + "FixedVersion": "1.2.1-r0", + "InstalledVersion": "1.2.0-r1", + "PkgName": "brotli-libs", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111497", + "Severity": "CRITICAL", + "Title": "brotli: Out-of-Bounds Write in Google Brotli Decoder", + "VulnerabilityID": "CVE-2026-111497" + }, + { + "FixedVersion": "8.23.0-r0", + "InstalledVersion": "8.22.0-r0", + "PkgName": "libcurl", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-92392", + "Severity": "HIGH", + "Title": "curl: curl: HTTP/2 upload Use-After-Free", + "VulnerabilityID": "CVE-2026-92392" + }, + { + "FixedVersion": "1.2.6-r3", + "InstalledVersion": "1.2.6-r2", + "PkgName": "musl", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107891", + "Severity": "HIGH", + "Title": "musl: musl: Arbitrary code execution via integer overflow in regcomp", + "VulnerabilityID": "CVE-2026-107891" + }, + { + "FixedVersion": "1.2.6-r3", + "InstalledVersion": "1.2.6-r2", + "PkgName": "musl-utils", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107891", + "Severity": "HIGH", + "Title": "musl: musl: Arbitrary code execution via integer overflow in regcomp", + "VulnerabilityID": "CVE-2026-107891" + }, + { + "FixedVersion": "1.3.2-r1", + "InstalledVersion": "1.3.2-r0", + "PkgName": "zlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85091", + "Severity": "HIGH", + "Title": "zlib: zlib: Heap buffer overflow in gz_vacate() allows arbitrary code execution", + "VulnerabilityID": "CVE-2026-85091" + }, + { + "FixedVersion": "1.24.13, 1.25.7, 1.26.0-rc.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-68121", + "Severity": "CRITICAL", + "Title": "crypto/tls: crypto/tls: Incorrect certificate validation during TLS session resumption", + "VulnerabilityID": "CVE-2025-68121" + }, + { + "FixedVersion": "1.24.12, 1.25.6", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61726", + "Severity": "HIGH", + "Title": "golang: net/url: Memory exhaustion in query parameter parsing in net/url", + "VulnerabilityID": "CVE-2025-61726" + }, + { + "FixedVersion": "1.24.11, 1.25.5", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2025-61729", + "Severity": "HIGH", + "Title": "crypto/x509: golang: Denial of Service due to excessive resource consumption via crafted certificate", + "VulnerabilityID": "CVE-2025-61729" + }, + { + "FixedVersion": "1.26.10, 1.27.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-111943", + "Severity": "HIGH", + "Title": "crypto/x509: golang: crypto/x509: Man-in-the-middle attacks via untrusted intermediate certificates", + "VulnerabilityID": "CVE-2026-111943" + }, + { + "FixedVersion": "1.25.8, 1.26.1", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-25679", + "Severity": "HIGH", + "Title": "net/url: Incorrect parsing of IPv6 host literals in net/url", + "VulnerabilityID": "CVE-2026-25679" + }, + { + "FixedVersion": "1.25.11, 1.26.4", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-27145", + "Severity": "HIGH", + "Title": "crypto/x509: golang: golang crypto/x509: Denial of Service via excessive processing of DNS SAN entries", + "VulnerabilityID": "CVE-2026-27145" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32280", + "Severity": "HIGH", + "Title": "crypto/x509: crypto/tls: golang: Go: Denial of Service vulnerability in certificate chain building", + "VulnerabilityID": "CVE-2026-32280" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32281", + "Severity": "HIGH", + "Title": "crypto/x509: golang: Go crypto/x509: Denial of Service via inefficient certificate chain validation", + "VulnerabilityID": "CVE-2026-32281" + }, + { + "FixedVersion": "1.25.9, 1.26.2", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-32283", + "Severity": "HIGH", + "Title": "crypto/tls: golang: Go crypto/tls: Denial of Service via multiple TLS 1.3 key update messages", + "VulnerabilityID": "CVE-2026-32283" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33811", + "Severity": "HIGH", + "Title": "net: golang: Go net package: Denial of Service via long CNAME response in LookupCNAME", + "VulnerabilityID": "CVE-2026-33811" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33814", + "Severity": "HIGH", + "Title": "net/http/internal/http2: golang: golang.org/x/net: Go HTTP/2: Denial of Service via malformed SETTINGS_MAX_FRAME_SIZE frame", + "VulnerabilityID": "CVE-2026-33814" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-33818", + "Severity": "HIGH", + "Title": "encoding/asn1: golang: Go encoding/asn1: Denial of Service via excessive recursion in Unmarshal", + "VulnerabilityID": "CVE-2026-33818" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39820", + "Severity": "HIGH", + "Title": "net/mail: golang: Go net/mail: Denial of Service via crafted email inputs", + "VulnerabilityID": "CVE-2026-39820" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39821", + "Severity": "HIGH", + "Title": "golang.org/x/net/idna: golang: net/http: golang.org/x/net/idna: Privilege escalation via incorrect Punycode label processing", + "VulnerabilityID": "CVE-2026-39821" + }, + { + "FixedVersion": "1.25.12, 1.26.5, 1.27.0-rc.2", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39822", + "Severity": "HIGH", + "Title": "golang: Go os.Root: Symlink following vulnerability allows directory traversal", + "VulnerabilityID": "CVE-2026-39822" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-39836", + "Severity": "HIGH", + "Title": "net: golang: Go net package: Denial of Service via NUL byte in Dial and LookupPort on Windows", + "VulnerabilityID": "CVE-2026-39836" + }, + { + "FixedVersion": "1.25.10, 1.26.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42499", + "Severity": "HIGH", + "Title": "net/mail: golang: net/mail: Denial of Service via pathological email address parsing", + "VulnerabilityID": "CVE-2026-42499" + }, + { + "FixedVersion": "1.25.11, 1.26.4", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-42504", + "Severity": "HIGH", + "Title": "mime: golang: Golang MIME: Denial of Service via maliciously-crafted MIME header", + "VulnerabilityID": "CVE-2026-42504" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56853", + "Severity": "HIGH", + "Title": "net/http: golang: Go net/http: Unencrypted HTTP/2 connections vulnerable to Denial of Service", + "VulnerabilityID": "CVE-2026-56853" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56858", + "Severity": "HIGH", + "Title": "html/template: golang: Go html/template: Cross-Site Scripting via pathological input", + "VulnerabilityID": "CVE-2026-56858" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56859", + "Severity": "HIGH", + "Title": "encoding/xml: golang: Go: Denial of Service via XML decoding recursion depth issue", + "VulnerabilityID": "CVE-2026-56859" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56860", + "Severity": "HIGH", + "Title": "net/url: golang: golang net/url: Denial of Service from quadratic complexity in path resolution", + "VulnerabilityID": "CVE-2026-56860" + }, + { + "FixedVersion": "1.25.13, 1.26.6, 1.27.0-rc.3", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-56862", + "Severity": "HIGH", + "Title": "crypto/tls: golang: Golang crypto/tls: Denial of Service via indefinite KeyUpdate messages", + "VulnerabilityID": "CVE-2026-56862" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78667", + "Severity": "HIGH", + "Title": "net/http: golang: golang: Denial of Service via crafted HTTP Range headers", + "VulnerabilityID": "CVE-2026-78667" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78669", + "Severity": "HIGH", + "Title": "net/http: net/http/internal/http2: golang.org/x/net/http2: net/http: Denial of Service via excessive HTTP/2 SETTINGS frames", + "VulnerabilityID": "CVE-2026-78669" + }, + { + "FixedVersion": "1.26.9, 1.27.2", + "InstalledVersion": "v1.24.6", + "PkgName": "stdlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-97031", + "Severity": "HIGH", + "Title": "crypto/tls: golang: crypto/tls: Denial of Service via multiple ECH outer extension references", + "VulnerabilityID": "CVE-2026-97031" + } + ], + "exit": 0, + "image": "postgres:18-alpine@sha256:77f585114c32fbca283dc835b0596f4e52b51b4c6662d7810b2f4084f60a1873" + }, + { + "counts": { + "HIGH": 2, + "MEDIUM": 2, + "UNKNOWN": 2 + }, + "critical_high": [ + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.60.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + }, + { + "FixedVersion": "0.62.0", + "InstalledVersion": "v0.60.0", + "PkgName": "golang.org/x/net", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-78661", + "Severity": "HIGH", + "Title": "golang.org/x/net/html: golang.org/x/net/html: Denial of Service via crafted HTML input", + "VulnerabilityID": "CVE-2026-78661" + } + ], + "exit": 0, + "image": "prom/prometheus:v3.15.1@sha256:fa3302279710be2f21a8301ec17a8b4f2301fd829bd113839b3b6b02b6f191a2" + }, + { + "counts": { + "MEDIUM": 1 + }, + "critical_high": [], + "exit": 0, + "image": "rabbitmq:4.3.7-management-alpine@sha256:1528a88eebf2bc4d0ab7e9d5d9bc542e9bdf5e1b105e65848fcf8de5c2186528" + }, + { + "counts": { + "HIGH": 5, + "LOW": 2, + "MEDIUM": 17 + }, + "critical_high": [ + { + "FixedVersion": "3.3.7-r2", + "InstalledVersion": "3.3.7-r1", + "PkgName": "libcrypto3", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84782", + "Severity": "HIGH", + "Title": "openssl: compat-openssl: openssl: Information disclosure via DTLS handshake retransmission", + "VulnerabilityID": "CVE-2026-84782" + }, + { + "FixedVersion": "3.3.7-r2", + "InstalledVersion": "3.3.7-r1", + "PkgName": "libssl3", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-84782", + "Severity": "HIGH", + "Title": "openssl: compat-openssl: openssl: Information disclosure via DTLS handshake retransmission", + "VulnerabilityID": "CVE-2026-84782" + }, + { + "FixedVersion": "1.2.5-r12", + "InstalledVersion": "1.2.5-r11", + "PkgName": "musl", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107891", + "Severity": "HIGH", + "Title": "musl: musl: Arbitrary code execution via integer overflow in regcomp", + "VulnerabilityID": "CVE-2026-107891" + }, + { + "FixedVersion": "1.2.5-r12", + "InstalledVersion": "1.2.5-r11", + "PkgName": "musl-utils", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-107891", + "Severity": "HIGH", + "Title": "musl: musl: Arbitrary code execution via integer overflow in regcomp", + "VulnerabilityID": "CVE-2026-107891" + }, + { + "FixedVersion": "1.3.2-r1", + "InstalledVersion": "1.3.2-r0", + "PkgName": "zlib", + "PrimaryURL": "https://avd.aquasec.com/nvd/cve-2026-85091", + "Severity": "HIGH", + "Title": "zlib: zlib: Heap buffer overflow in gz_vacate() allows arbitrary code execution", + "VulnerabilityID": "CVE-2026-85091" + } + ], + "exit": 0, + "image": "redis:7.4-alpine@sha256:858f009f9709ce576febc734aa78b8f6d624b82571f9ddb6bda4377c833b3499" + } + ], + "source_scan": { + "advisories_by_scope": { + "module": [ + "GO-2026-5932", + "GO-2026-6599", + "GO-2026-6600", + "GO-2026-6603", + "GO-2026-6604", + "GO-2026-6605", + "GO-2026-6607", + "GO-2026-6608", + "GO-2026-6609", + "GO-2026-6610", + "GO-2026-6611", + "GO-2026-6612", + "GO-2026-6613", + "GO-2026-6617", + "GO-2026-6809", + "GO-2026-6860", + "GO-2026-6866" + ], + "package": [ + "GO-2026-6599", + "GO-2026-6600", + "GO-2026-6603", + "GO-2026-6604", + "GO-2026-6605", + "GO-2026-6607", + "GO-2026-6608", + "GO-2026-6609", + "GO-2026-6610", + "GO-2026-6611", + "GO-2026-6612", + "GO-2026-6613", + "GO-2026-6617", + "GO-2026-6809" + ], + "symbol": [ + "GO-2026-6599", + "GO-2026-6600", + "GO-2026-6603", + "GO-2026-6604", + "GO-2026-6605", + "GO-2026-6607", + "GO-2026-6608", + "GO-2026-6610", + "GO-2026-6611", + "GO-2026-6612", + "GO-2026-6613", + "GO-2026-6617", + "GO-2026-6809" + ] + }, + "exit": 0, + "tool": "golang.org/x/vuln/cmd/govulncheck@v1.9.0" + }, + "stage": "before-remediation", + "trivy": "aquasec/trivy:0.76.2@sha256:8f6bb947dbc528902e11f2f5be52f7b519f6a39d5d148f41166f2040499768fb" +} diff --git a/evidence/lab7/scans/govulncheck-status.txt b/evidence/lab7/scans/govulncheck-status.txt new file mode 100644 index 0000000..9200c2a --- /dev/null +++ b/evidence/lab7/scans/govulncheck-status.txt @@ -0,0 +1 @@ +exit=0 diff --git a/evidence/lab7/scans/govulncheck.json b/evidence/lab7/scans/govulncheck.json new file mode 100644 index 0000000..0e5c8c5 --- /dev/null +++ b/evidence/lab7/scans/govulncheck.json @@ -0,0 +1,34425 @@ +[ + { + "config": { + "protocol_version": "v1.0.0", + "scanner_name": "govulncheck", + "scanner_version": "v1.9.0", + "db": "https://vuln.go.dev", + "db_last_modified": "2026-11-05T23:49:57Z", + "go_version": "go1.27.3", + "scan_level": "symbol", + "scan_mode": "source" + } + }, + { + "SBOM": { + "go_version": "go1.27.3", + "modules": [ + { + "path": "mtusi-messenger" + }, + { + "path": "github.com/aws/aws-sdk-go-v2", + "version": "v1.47.3" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/aws/protocol/eventstream", + "version": "v1.7.23" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/credentials", + "version": "v1.20.9" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/internal/configsources", + "version": "v1.5.6" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/internal/endpoints/v2", + "version": "v2.8.6" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/internal/v4a", + "version": "v1.5.6" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/service/internal/accept-encoding", + "version": "v1.13.21" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/service/internal/checksum", + "version": "v1.11.7" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/service/internal/presigned-url", + "version": "v1.14.6" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/service/internal/s3shared", + "version": "v1.20.6" + }, + { + "path": "github.com/aws/aws-sdk-go-v2/service/s3", + "version": "v1.114.4" + }, + { + "path": "github.com/aws/smithy-go", + "version": "v1.28.6" + }, + { + "path": "github.com/cenkalti/backoff/v5", + "version": "v5.0.3" + }, + { + "path": "github.com/cespare/xxhash/v2", + "version": "v2.3.0" + }, + { + "path": "github.com/dlclark/regexp2", + "version": "v1.12.0" + }, + { + "path": "github.com/ebitengine/purego", + "version": "v0.10.1" + }, + { + "path": "github.com/exaring/otelpgx", + "version": "v0.13.0" + }, + { + "path": "github.com/fatih/color", + "version": "v1.19.0" + }, + { + "path": "github.com/fsnotify/fsnotify", + "version": "v1.9.0" + }, + { + "path": "github.com/gabriel-vasile/mimetype", + "version": "v1.4.15" + }, + { + "path": "github.com/gen2brain/webp", + "version": "v0.6.4" + }, + { + "path": "github.com/ghodss/yaml", + "version": "v1.0.0" + }, + { + "path": "github.com/go-faster/errors", + "version": "v0.8.0" + }, + { + "path": "github.com/go-faster/jx", + "version": "v1.2.0" + }, + { + "path": "github.com/go-faster/yaml", + "version": "v0.4.6" + }, + { + "path": "github.com/go-logr/logr", + "version": "v1.4.4" + }, + { + "path": "github.com/go-logr/stdr", + "version": "v1.2.2" + }, + { + "path": "github.com/go-playground/locales", + "version": "v0.14.1" + }, + { + "path": "github.com/go-playground/universal-translator", + "version": "v0.18.1" + }, + { + "path": "github.com/go-playground/validator/v10", + "version": "v10.30.5" + }, + { + "path": "github.com/go-viper/mapstructure/v2", + "version": "v2.5.0" + }, + { + "path": "github.com/google/uuid", + "version": "v1.6.0" + }, + { + "path": "github.com/grpc-ecosystem/grpc-gateway/v2", + "version": "v2.30.0" + }, + { + "path": "github.com/jackc/pgpassfile", + "version": "v1.0.0" + }, + { + "path": "github.com/jackc/pgservicefile", + "version": "v0.0.0-20240606120523-5a60cdf6a761" + }, + { + "path": "github.com/jackc/pgx/v5", + "version": "v5.11.0" + }, + { + "path": "github.com/jackc/puddle/v2", + "version": "v2.2.2" + }, + { + "path": "github.com/leodido/go-urn", + "version": "v1.5.0" + }, + { + "path": "github.com/mattn/go-colorable", + "version": "v0.1.14" + }, + { + "path": "github.com/mattn/go-isatty", + "version": "v0.0.24" + }, + { + "path": "github.com/mfridman/interpolate", + "version": "v0.0.2" + }, + { + "path": "github.com/ogen-go/ogen", + "version": "v1.24.0" + }, + { + "path": "github.com/pelletier/go-toml/v2", + "version": "v2.2.4" + }, + { + "path": "github.com/pressly/goose/v3", + "version": "v3.28.0" + }, + { + "path": "github.com/rabbitmq/amqp091-go", + "version": "v1.16.0" + }, + { + "path": "github.com/redis/go-redis/v9", + "version": "v9.22.0" + }, + { + "path": "github.com/sagikazarmark/locafero", + "version": "v0.11.0" + }, + { + "path": "github.com/segmentio/asm", + "version": "v1.2.1" + }, + { + "path": "github.com/sethvargo/go-retry", + "version": "v0.4.0" + }, + { + "path": "github.com/shopspring/decimal", + "version": "v1.4.0" + }, + { + "path": "github.com/sourcegraph/conc", + "version": "v0.3.1-0.20240121214520-5f936abd7ae8" + }, + { + "path": "github.com/spf13/afero", + "version": "v1.15.0" + }, + { + "path": "github.com/spf13/cast", + "version": "v1.10.0" + }, + { + "path": "github.com/spf13/pflag", + "version": "v1.0.10" + }, + { + "path": "github.com/spf13/viper", + "version": "v1.21.0" + }, + { + "path": "github.com/stretchr/objx", + "version": "v0.5.3" + }, + { + "path": "github.com/stretchr/testify", + "version": "v1.12.1" + }, + { + "path": "github.com/subosito/gotenv", + "version": "v1.6.0" + }, + { + "path": "go.opentelemetry.io/auto/sdk", + "version": "v1.2.1" + }, + { + "path": "go.opentelemetry.io/contrib/bridges/otelslog", + "version": "v0.21.0" + }, + { + "path": "go.opentelemetry.io/otel", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp", + "version": "v0.23.0" + }, + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlptrace", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/log", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/metric", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/sdk", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/sdk/log", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/sdk/metric", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/otel/trace", + "version": "v1.47.0" + }, + { + "path": "go.opentelemetry.io/proto/otlp", + "version": "v1.11.0" + }, + { + "path": "go.uber.org/atomic", + "version": "v1.11.0" + }, + { + "path": "go.uber.org/multierr", + "version": "v1.11.0" + }, + { + "path": "go.uber.org/zap", + "version": "v1.28.0" + }, + { + "path": "go.uber.org/zap/exp", + "version": "v0.3.0" + }, + { + "path": "go.yaml.in/yaml/v3", + "version": "v3.0.5" + }, + { + "path": "golang.org/x/crypto", + "version": "v0.58.0" + }, + { + "path": "golang.org/x/exp", + "version": "v0.0.0-20260824195058-e88cd73687aa" + }, + { + "path": "golang.org/x/image", + "version": "v0.47.0" + }, + { + "path": "golang.org/x/net", + "version": "v0.62.0" + }, + { + "path": "golang.org/x/sync", + "version": "v0.24.0" + }, + { + "path": "golang.org/x/sys", + "version": "v0.49.0" + }, + { + "path": "golang.org/x/text", + "version": "v0.43.0" + }, + { + "path": "google.golang.org/genproto/googleapis/api", + "version": "v0.0.0-20260928230214-8a89bd6388cc" + }, + { + "path": "google.golang.org/genproto/googleapis/rpc", + "version": "v0.0.0-20260928230214-8a89bd6388cc" + }, + { + "path": "google.golang.org/grpc", + "version": "v1.83.2" + }, + { + "path": "google.golang.org/protobuf", + "version": "v1.36.12" + }, + { + "path": "gopkg.in/yaml.v2", + "version": "v2.4.0" + }, + { + "path": "stdlib", + "version": "v1.27.3" + } + ], + "roots": [ + "mtusi-messenger/internal/logger", + "mtusi-messenger/internal/platform/secretfile", + "mtusi-messenger/internal/platform/tlsconfig", + "mtusi-messenger/internal/config", + "mtusi-messenger/internal/domain", + "mtusi-messenger/internal/imageproc", + "mtusi-messenger/internal/platform/ratelimit", + "mtusi-messenger/internal/storage/postgres/internal/sqlcgen", + "mtusi-messenger/internal/platform/instanceid", + "mtusi-messenger/internal/platform/objectstore", + "mtusi-messenger/internal/telemetry", + "mtusi-messenger/internal/storage/postgres", + "mtusi-messenger/cmd/jobctl", + "mtusi-messenger/internal/health", + "mtusi-messenger/internal/platform/bao", + "mtusi-messenger/internal/platform/cache", + "mtusi-messenger/internal/platform/token", + "mtusi-messenger/internal/imagecheck", + "mtusi-messenger/internal/service/attachment", + "mtusi-messenger/internal/service/chat", + "mtusi-messenger/internal/service/message", + "mtusi-messenger/internal/platform/password", + "mtusi-messenger/internal/service/session", + "mtusi-messenger/internal/service/user", + "mtusi-messenger/internal/storage/redis", + "mtusi-messenger/internal/transport/rest/internal/oas", + "mtusi-messenger/internal/transport/rest", + "mtusi-messenger/cmd/messenger", + "mtusi-messenger/internal/storage/postgres/migrations", + "mtusi-messenger/cmd/migrate", + "mtusi-messenger/internal/broker", + "mtusi-messenger/internal/failpoint", + "mtusi-messenger/internal/outbox", + "mtusi-messenger/cmd/relay", + "mtusi-messenger/cmd/s3init", + "mtusi-messenger/internal/worker", + "mtusi-messenger/cmd/worker", + "mtusi-messenger/internal/platform/cache/mocks", + "mtusi-messenger/internal/service/attachment/mocks", + "mtusi-messenger/internal/service/chat/mocks", + "mtusi-messenger/internal/service/message/mocks", + "mtusi-messenger/internal/service/session/mocks", + "mtusi-messenger/internal/service/user/mocks", + "mtusi-messenger/internal/storage/redis/mocks", + "mtusi-messenger/internal/transport/rest/mocks", + "mtusi-messenger/tools/specgen" + ] + } + }, + { + "progress": { + "message": "Fetching vulnerabilities from the database..." + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-4985", + "modified": "2026-05-26T22:48:49Z", + "published": "2026-05-26T22:48:49Z", + "aliases": [ + "CVE-2026-39882", + "GHSA-w8rr-5gcm-pp58" + ], + "summary": "Oversized OTLP HTTP response bodies can cause memory exhaustion in go.opentelemetry.io/otel/exporters/otlp", + "details": "The OTLP HTTP exporters (traces, metrics, and logs) do not limit the size of the HTTP response body read from the collector. A malicious or misconfigured collector can send a large response body, leading to excessive memory consumption and potential process termination (OOM).", + "affected": [ + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.19.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp", + "symbols": [ + "Exporter.Export", + "client.UploadLogs" + ] + } + ] + } + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp", + "symbols": [ + "Exporter.Export", + "client.UploadMetrics" + ] + } + ] + } + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "symbols": [ + "New", + "NewUnstarted", + "client.UploadTraces" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://github.com/open-telemetry/opentelemetry-go/pull/8108" + }, + { + "type": "ADVISORY", + "url": "https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-w8rr-5gcm-pp58" + }, + { + "type": "WEB", + "url": "http://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.43.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-4985", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6505", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-81870", + "GHSA-8wmf-6v46-5gfg" + ], + "summary": "OpenTelemetry-Go: Exporter config logging may leak endpoint URLs in info logs in go.opentelemetry.io/otel/exporters/otlp/otlptrace", + "details": "OpenTelemetry-Go: Exporter config logging may leak endpoint URLs in info logs in go.opentelemetry.io/otel/exporters/otlp/otlptrace", + "affected": [ + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/zipkin", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "go.opentelemetry.io/otel/sdk", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-8wmf-6v46-5gfg" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-81870" + }, + { + "type": "WEB", + "url": "https://github.com/open-telemetry/opentelemetry-go/commit/3a1412d2b3bc4e4231fbeac2ed42117ae541bb38" + }, + { + "type": "WEB", + "url": "https://github.com/open-telemetry/opentelemetry-go/pull/8438" + }, + { + "type": "WEB", + "url": "https://github.com/open-telemetry/opentelemetry-go/releases/tag/exporters/zipkin/v1.45.0" + }, + { + "type": "WEB", + "url": "https://github.com/open-telemetry/opentelemetry-go/releases/tag/sdk/v1.45.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6505", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-2153", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-11-01T22:39:27Z", + "aliases": [ + "GHSA-m425-mq94-257g" + ], + "summary": "Denial of service from HTTP/2 Rapid Reset in google.golang.org/grpc", + "details": "An attacker can send HTTP/2 requests, cancel them, and send subsequent requests. This is valid by the HTTP/2 protocol, but would cause the gRPC-Go server to launch more concurrent method handlers than the configured maximum stream limit, grpc.MaxConcurrentStreams. This results in a denial of service due to resource consumption.", + "affected": [ + { + "package": { + "name": "google.golang.org/grpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.56.3" + }, + { + "introduced": "1.57.0" + }, + { + "fixed": "1.57.1" + }, + { + "introduced": "1.58.0" + }, + { + "fixed": "1.58.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "google.golang.org/grpc/internal/transport", + "symbols": [ + "NewServerTransport" + ] + }, + { + "path": "google.golang.org/grpc", + "symbols": [ + "NewServer", + "Server.Serve", + "Server.initServerWorkers" + ] + } + ] + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/grpc/grpc-go/pull/6703" + }, + { + "type": "FIX", + "url": "https://github.com/grpc/grpc-go/commit/f2180b4d5403d2210b30b93098eb7da31c05c721" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-2153", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2024-2978", + "modified": "2024-07-09T16:55:06Z", + "published": "2024-07-09T16:55:06Z", + "aliases": [ + "GHSA-xr7q-jx4m-x55m" + ], + "summary": "Private tokens could appear in logs if context containing gRPC metadata is logged in google.golang.org/grpc", + "details": "If applications print or log a context containing gRPC metadata, the output will contain all the metadata, which may include private information. This represents a potential PII concern.", + "affected": [ + { + "package": { + "name": "google.golang.org/grpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.64.0" + }, + { + "fixed": "1.64.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "google.golang.org/grpc/metadata", + "symbols": [ + "MD.String" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/grpc/grpc-go/security/advisories/GHSA-xr7q-jx4m-x55m" + }, + { + "type": "FIX", + "url": "https://github.com/grpc/grpc-go/commit/ab292411ddc0f3b7a7786754d1fe05264c3021eb" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2024-2978", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-4762", + "modified": "2026-03-27T18:39:44Z", + "published": "2026-03-27T18:39:44Z", + "aliases": [ + "CVE-2026-33186", + "GHSA-p77j-4mvh-x3m3" + ], + "summary": "Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc", + "details": "Authorization bypass in gRPC-Go via missing leading slash in :path in google.golang.org/grpc", + "affected": [ + { + "package": { + "name": "google.golang.org/grpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.79.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "google.golang.org/grpc", + "symbols": [ + "Server.Serve", + "Server.ServeHTTP", + "Server.handleStream" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/grpc/grpc-go/security/advisories/GHSA-p77j-4mvh-x3m3" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-4762", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6061", + "modified": "2026-07-27T15:30:50Z", + "published": "2026-07-27T15:30:50Z", + "aliases": [ + "GHSA-hrxh-6v49-42gf" + ], + "summary": "Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc", + "details": "Vulnerabilities in the xDS RBAC authorization engine and the HTTP/2 transport server implementation in google.golang.org/grpc", + "affected": [ + { + "package": { + "name": "google.golang.org/grpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.82.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "google.golang.org/grpc/internal/transport", + "symbols": [ + "ClientStream.Close", + "ClientStream.Header", + "ClientStream.Read", + "ClientStream.RecvCompress", + "ClientStream.TrailersOnly", + "ClientStream.Write", + "NewHTTP2Client", + "NewServerTransport", + "ServerStream.Read", + "ServerStream.SendHeader", + "ServerStream.Write", + "ServerStream.WriteStatus", + "Stream.ReadMessageHeader", + "controlBuffer.executeAndPut", + "controlBuffer.getOnceLocked", + "http2Client.Close", + "http2Client.GracefulClose", + "http2Client.NewStream", + "http2Server.Drain", + "http2Server.HandleStreams", + "recvBufferReader.Read", + "recvBufferReader.ReadMessageHeader", + "transportReader.Read", + "transportReader.ReadMessageHeader" + ] + }, + { + "path": "google.golang.org/grpc/internal/xds/rbac", + "symbols": [ + "ChainEngine.IsAuthorized", + "NewChainEngine", + "matchersFromPermissions", + "matchersFromPrincipals" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/grpc/grpc-go/security/advisories/GHSA-hrxh-6v49-42gf" + }, + { + "type": "FIX", + "url": "https://github.com/grpc/grpc-go/commit/4ea465d4ab98013f72a142fe0fc89c19770b2935" + }, + { + "type": "WEB", + "url": "https://github.com/grpc/grpc-go/pull/9236" + }, + { + "type": "WEB", + "url": "https://github.com/grpc/grpc-go/releases/tag/v1.82.1" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6061", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6348", + "modified": "2026-09-15T18:39:25Z", + "published": "2026-09-15T18:39:25Z", + "aliases": [ + "CVE-2026-84304", + "GHSA-vp52-pcj8-j9qc" + ], + "summary": "Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc", + "details": "Heap Memory Exhaustion (OOM) via HTTP/2 DATA Frame Fragmentation in google.golang.org/grpc", + "affected": [ + { + "package": { + "name": "google.golang.org/grpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.83.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "google.golang.org/grpc/internal/transport", + "symbols": [ + "ClientStream.Close", + "ClientStream.Header", + "ClientStream.Read", + "ClientStream.RecvCompress", + "ClientStream.TrailersOnly", + "NewHTTP2Client", + "NewServerTransport", + "ServerStream.Read", + "Stream.ReadMessageHeader", + "http2Client.Close", + "http2Client.GracefulClose", + "http2Client.NewStream", + "http2Client.newStream", + "http2Server.Close", + "http2Server.HandleStreams", + "http2Server.operateHeaders", + "recvBuffer.init", + "recvBuffer.load", + "recvBuffer.put", + "recvBufferReader.Read", + "recvBufferReader.ReadMessageHeader", + "serverHandlerTransport.HandleStreams", + "transportReader.Read", + "transportReader.ReadMessageHeader" + ] + }, + { + "path": "google.golang.org/grpc/mem", + "symbols": [ + "BufferSlice.MaterializeToBuffer", + "Copy", + "IsBelowBufferPoolingThreshold", + "NewBuffer", + "ReadAll", + "writer.Write" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/grpc/grpc-go/security/advisories/GHSA-vp52-pcj8-j9qc" + }, + { + "type": "FIX", + "url": "https://github.com/grpc/grpc-go/commit/7354d9c8debb4bcf2225bf429857078de310c176" + }, + { + "type": "WEB", + "url": "https://github.com/grpc/grpc-go/commit/8cfeca0e1ee5ea0980dcc320e20240fa1079ec77" + }, + { + "type": "WEB", + "url": "https://github.com/grpc/grpc-go/pull/9331" + }, + { + "type": "WEB", + "url": "https://github.com/grpc/grpc-go/pull/9333" + }, + { + "type": "WEB", + "url": "https://github.com/grpc/grpc-go/releases/tag/v1.83.1" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6348", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6441", + "modified": "2026-09-15T18:39:25Z", + "published": "2026-09-15T18:39:25Z", + "aliases": [ + "CVE-2026-84303", + "GHSA-qc2q-p7wx-3px3" + ], + "summary": "Bypass of xDS RBAC HTTP filter header matching in google.golang.org/grpc", + "details": "In google.golang.org/grpc, the xDS RBAC HTTP filter does not lowercase header matcher names before evaluating them against incoming request metadata. When an RBAC policy defines rules (such as DENY) referencing headers with uppercase or mixed-case characters, the rule fails to match, causing authorization policies to fail open. Additionally, callers can evade gRFC A41 validation blocking \"grpc-\" prefixed headers and \":scheme\" via variations in casing.", + "affected": [ + { + "package": { + "name": "google.golang.org/grpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.83.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "google.golang.org/grpc/internal/xds/httpfilter/rbac", + "symbols": [ + "builder.ParseFilterConfig", + "builder.ParseFilterConfigOverride", + "parseConfig" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/grpc/grpc-go/security/advisories/GHSA-qc2q-p7wx-3px3" + }, + { + "type": "FIX", + "url": "https://github.com/grpc/grpc-go/pull/9332" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6441", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6443", + "modified": "2026-10-06T21:18:54Z", + "published": "2026-09-15T18:39:25Z", + "aliases": [ + "CVE-2026-84445", + "GHSA-2v4p-qf9q-27wj" + ], + "summary": "Server panic via missing authority or Host headers in google.golang.org/grpc", + "details": "In google.golang.org/grpc, servers configured with xDS routing can panic when processing requests that lack both :authority and Host headers. The HTTP/2 transport layer accepted requests missing these headers, and the xDS server routing interceptor attempted to index the empty authority slice, causing an unhandled panic and terminating the server.", + "affected": [ + { + "package": { + "name": "google.golang.org/grpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.82.2" + }, + { + "introduced": "1.83.0" + }, + { + "fixed": "1.83.2" + }, + { + "introduced": "1.84.0-dev" + }, + { + "fixed": "1.84.0-dev.0.20260825144003-d5a41119e0e3" + }, + { + "introduced": "1.85.0-dev" + }, + { + "fixed": "1.85.0-dev.0.20260825072537-93e31b48545e" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "google.golang.org/grpc/internal/transport", + "symbols": [ + "http2Server.HandleStreams", + "http2Server.operateHeaders" + ] + }, + { + "path": "google.golang.org/grpc/internal/xds/server", + "symbols": [ + "RouteAndProcess" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/grpc/grpc-go/security/advisories/GHSA-2v4p-qf9q-27wj" + }, + { + "type": "REPORT", + "url": "https://github.com/grpc/grpc-go/issues/9354" + }, + { + "type": "FIX", + "url": "https://github.com/grpc/grpc-go/pull/9365" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6443", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1572", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-02-16T22:25:24Z", + "aliases": [ + "CVE-2022-41727", + "GHSA-qgc7-mgm3-q253" + ], + "summary": "Denial of service via crafted TIFF image in golang.org/x/image/tiff", + "details": "An attacker can craft a malformed TIFF image which will consume a significant amount of memory when passed to DecodeConfig. This could lead to a denial of service.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.5.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/tiff", + "symbols": [ + "Decode", + "DecodeConfig", + "decoder.ifdUint", + "newDecoder" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/58003" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/468195" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/ag-FiyjlD5o" + } + ], + "credits": [ + { + "name": "Philippe Antoine (Catena cyber)" + }, + { + "name": "OSS Fuzz" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1572", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1989", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-08-02T15:06:02Z", + "aliases": [ + "CVE-2023-29408", + "GHSA-x92r-3vfx-4cv3" + ], + "summary": "Excessive resource consumption in golang.org/x/image/tiff", + "details": "The TIFF decoder does not place a limit on the size of compressed tile data. A maliciously-crafted image can exploit this to cause a small image (both in terms of pixel width/height, and encoded size) to make the decoder decode large amounts of compressed data, consuming excessive memory and CPU.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.10.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/tiff", + "symbols": [ + "Decode", + "DecodeConfig", + "newDecoder" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/61582" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/514897" + } + ], + "credits": [ + { + "name": "Philippe Antoine (Catena cyber)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1989", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1990", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-08-02T15:06:21Z", + "aliases": [ + "CVE-2023-29407", + "GHSA-j3p8-6mrq-6g7h" + ], + "summary": "Excessive CPU consumption when decoding 0-height images in golang.org/x/image/tiff", + "details": "A maliciously-crafted image can cause excessive CPU consumption in decoding.\n\nA tiled image with a height of 0 and a very large width can cause excessive CPU consumption, despite the image size (width * height) appearing to be zero.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.10.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/tiff", + "symbols": [ + "Decode", + "DecodeConfig", + "newDecoder" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/61581" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/514897" + } + ], + "credits": [ + { + "name": "Philippe Antoine (Catena cyber)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1990", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2024-2937", + "modified": "2024-06-26T23:00:22Z", + "published": "2024-06-25T22:06:09Z", + "aliases": [ + "CVE-2024-24792", + "GHSA-9phm-fm57-rhg8" + ], + "summary": "Panic when parsing invalid palette-color images in golang.org/x/image", + "details": "Parsing a corrupt or malicious image with invalid color indices can cause a panic.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.18.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/tiff", + "symbols": [ + "Decode", + "decoder.decode" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/588115" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/67624" + } + ], + "credits": [ + { + "name": "John Wright " + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2024-2937", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-4815", + "modified": "2026-04-06T20:49:01Z", + "published": "2026-03-25T18:02:02Z", + "aliases": [ + "CVE-2026-33809", + "GHSA-44p7-9xx4-hf2g" + ], + "summary": "OOM from malicious IFD offset in golang.org/x/image/tiff", + "details": "A maliciously crafted TIFF file can cause image decoding to attempt to allocate up 4GiB of memory, causing either excessive resource consumption or an out-of-memory error.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.38.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/tiff", + "symbols": [ + "Decode", + "DecodeConfig", + "buffer.ReadAt", + "buffer.Slice", + "buffer.fill" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/757660" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/78267" + } + ], + "credits": [ + { + "name": "Andy Gill, ZephrSec Ltd" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-4815", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-4961", + "modified": "2026-06-18T22:34:50Z", + "published": "2026-04-21T18:59:43Z", + "aliases": [ + "CVE-2026-33813" + ], + "summary": "Panic when decoding large WEBP image on 32-bit platforms in golang.org/x/image", + "details": "Parsing a WEBP image with an invalid, large size panics on 32-bit platforms.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.42.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/webp", + "symbols": [ + "Decode", + "DecodeConfig", + "decode" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/759860" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/780860" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/78407" + } + ], + "credits": [ + { + "name": "Tristan Madani" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-4961", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-4962", + "modified": "2026-04-21T18:59:51Z", + "published": "2026-04-21T18:59:51Z", + "aliases": [ + "CVE-2026-33812" + ], + "summary": "Excessive memory allocation when decoding malicious SFNT in golang.org/x/image", + "details": "Parsing a malicious font file can cause excessive memory allocation.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.39.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/font/sfnt", + "symbols": [ + "Collection.Font", + "Font.GlyphAdvance", + "Font.GlyphBounds", + "Font.GlyphIndex", + "Font.GlyphName", + "Font.Kern", + "Font.LoadGlyph", + "Font.Name", + "Font.WriteSourceTo", + "Parse", + "ParseCollection", + "ParseCollectionReaderAt", + "ParseReaderAt", + "source.view" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/761180" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/78382" + } + ], + "credits": [ + { + "name": "Andy Gill, ZephrSec Ltd" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-4962", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5031", + "modified": "2026-05-29T18:17:10Z", + "published": "2026-05-29T18:17:10Z", + "aliases": [ + "CVE-2026-42500" + ], + "summary": "Panic when reading out of bound palette index in golang.org/x/image/bmp", + "details": "Decoding a paletted BMP file with an out-of-range palette index results in a panic when accessing pixels in the invalid image.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.41.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/bmp", + "symbols": [ + "Decode", + "decodePaletted" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79576" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/uhYX90BlBvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781500" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5031", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5032", + "modified": "2026-05-29T19:17:56Z", + "published": "2026-05-29T19:17:56Z", + "aliases": [ + "CVE-2026-46599" + ], + "summary": "Excessive resource consumption in PackBits decompression in golang.org/x/image/tiff", + "details": "The TIFF decoder does not place a limit on the size of PackBits-compressed data. A maliciously-crafted image can exploit this to cause a small image (both in terms of pixel width/height and encoded size) to make the decoder decode large amounts of compressed data.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.41.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/tiff", + "symbols": [ + "Decode", + "unpackBits" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79577" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/759960" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/uhYX90BlBvI" + } + ], + "credits": [ + { + "name": "Uuganbayar Lkhamsuren" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5032", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5061", + "modified": "2026-06-18T22:46:58Z", + "published": "2026-06-18T22:46:58Z", + "aliases": [ + "CVE-2026-46601" + ], + "summary": "Panic on VP8 alpha channel size mismatch in x/image/webp in golang.org/x/image", + "details": "The webp decoder can panic when processing a VP8 chunk with dimensions that do not match the canvas size.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/webp", + "symbols": [ + "Decode", + "DecodeConfig", + "decode" + ] + }, + { + "path": "golang.org/x/image/webp" + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/787681" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/79869" + } + ], + "credits": [ + { + "name": "Lucas Futures (GitHub: gn00295120)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5061", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5062", + "modified": "2026-06-18T22:50:55Z", + "published": "2026-06-18T22:50:55Z", + "aliases": [ + "CVE-2026-46602" + ], + "summary": "Lack of limit on tile sizes in x/image/tiff in golang.org/x/image", + "details": "The TIFF decoder does not set a limit on the size of tiles in tiled images, permitting a malicious or corrupt image containing a very large tile to cause unbounded memory consumption.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/tiff", + "symbols": [ + "Decode" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/788422" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/79905" + } + ], + "credits": [ + { + "name": "Prasanna Dabi (GitHub: prasanna8585)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5062", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5066", + "modified": "2026-06-26T20:04:13Z", + "published": "2026-06-26T20:04:13Z", + "aliases": [ + "CVE-2026-46604" + ], + "summary": "Panic decoding image with out-of-bounds strip offset in x/image/tiff in golang.org/x/image", + "details": "The TIFF decoder can panic when decoding an invalid image with an out-of-bounds strip offset.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/tiff", + "symbols": [ + "Decode" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/788421" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/80122" + } + ], + "credits": [ + { + "name": "sorte" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5066", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6222", + "modified": "2026-08-14T16:22:50Z", + "published": "2026-08-14T16:22:50Z", + "aliases": [ + "CVE-2026-46603" + ], + "summary": "Excessive memory allocation during VP8L decoding in golang.org/x/image", + "details": "VP8L decoding in golang.org/x/image/vp8l can allocate an excessive amount of memory when processing a crafted VP8L image containing many unused Huffman tree groups. This allows a remote attacker to cause a denial of service via memory exhaustion.", + "affected": [ + { + "package": { + "name": "golang.org/x/image", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.45.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/image/vp8l", + "symbols": [ + "Decode", + "decoder.decodeHuffmanGroups", + "decoder.decodeHuffmanTree" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/80069" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/793460" + } + ], + "credits": [ + { + "name": "Daniele Ballarini" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6222", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6372", + "modified": "2026-09-15T18:39:25Z", + "published": "2026-09-15T18:39:25Z", + "aliases": [ + "CVE-2026-79921", + "GHSA-6c5v-hqjr-5xxp" + ], + "summary": "Potential Memory Exhaustion/Protocol Violation via Broker-Controlled Oversized Payload in github.com/rabbitmq/amqp091-go", + "details": "Potential Memory Exhaustion/Protocol Violation via Broker-Controlled Oversized Payload in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": {} + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-6c5v-hqjr-5xxp" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/6beb7b51f59e46ddcf8066ad498dad32491d3be0" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/353" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6372", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6491", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77407", + "GHSA-27gv-rfvv-22mv" + ], + "summary": "RabbitMQ amqp091-go: Plaintext Credential Exposure via Exported PLAIN Authentication Struct Fields in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Plaintext Credential Exposure via Exported PLAIN Authentication Struct Fields in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "Connection.Reconnect", + "Connection.openComplete", + "DefaultConnectionRecovery.OnConnectionClose", + "Dial", + "DialConfig", + "DialTLS", + "DialTLS_ExternalAuth", + "Open" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-27gv-rfvv-22mv" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77407" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/fa013b8447eb60988db3c9281ff6b981e4d2fb4f" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/350" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6491", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6492", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77405", + "GHSA-33mj-cw25-m34h" + ], + "summary": "RabbitMQ amqp091-go: Missing Explicit TLS Minimum Version Configuration In URI Parser in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Missing Explicit TLS Minimum Version Configuration In URI Parser in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "Dial", + "DialConfig", + "DialTLS", + "DialTLS_ExternalAuth", + "tlsConfigFromURI" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-33mj-cw25-m34h" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77405" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/c9fd433ecac2e557919e51acc9d809390c402c6e" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/355" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6492", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6493", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77404", + "GHSA-465g-fh3v-9jw4" + ], + "summary": "RabbitMQ amqp091-go: Connection Configuration Overwrite via Unsanitized TLS Path Parameter Injection in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Connection Configuration Overwrite via Unsanitized TLS Path Parameter Injection in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "URI.String" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-465g-fh3v-9jw4" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77404" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/743d488e46955fe7ffc55506fe2c401d01216783" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/352" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6493", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6494", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77412", + "GHSA-4v58-74mf-rjx3" + ], + "summary": "RabbitMQ amqp091-go: Denial of Service via Malicious Field Length in AMQP Client in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Denial of Service via Malicious Field Length in AMQP Client in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "Connection.Reconnect", + "DefaultConnectionRecovery.OnConnectionClose", + "Dial", + "DialConfig", + "DialTLS", + "DialTLS_ExternalAuth", + "Open", + "readField", + "reader.ReadFrame" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-4v58-74mf-rjx3" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77412" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/669b42bf7b1db76bc6d4973e3634247f680accbf" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/344" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6494", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6496", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77411", + "GHSA-c5pq-fr2g-9jpf" + ], + "summary": "RabbitMQ amqp091-go: Protocol Desynchronization and Frame Injection via Integer Overflow in readLongstr in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Protocol Desynchronization and Frame Injection via Integer Overflow in readLongstr in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "Connection.Reconnect", + "DefaultConnectionRecovery.OnConnectionClose", + "Dial", + "DialConfig", + "DialTLS", + "DialTLS_ExternalAuth", + "Open", + "readLongstr", + "reader.ReadFrame" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-c5pq-fr2g-9jpf" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77411" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/143c1ace5fa7344cee135e5c7d22970f0de68282" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/347" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6496", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6498", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77408", + "GHSA-j497-x9hr-x34x" + ], + "summary": "RabbitMQ amqp091-go: Silent Data Truncation and State Corruption via Shortstr Integer Overflow in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Silent Data Truncation and State Corruption via Shortstr Integer Overflow in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "AMQPlainAuth.Response", + "Channel.Ack", + "Channel.Cancel", + "Channel.Close", + "Channel.Confirm", + "Channel.Consume", + "Channel.ConsumeWithContext", + "Channel.ExchangeBind", + "Channel.ExchangeDeclare", + "Channel.ExchangeDeclarePassive", + "Channel.ExchangeDelete", + "Channel.ExchangeUnbind", + "Channel.Flow", + "Channel.Get", + "Channel.Nack", + "Channel.Publish", + "Channel.PublishWithContext", + "Channel.PublishWithDeferredConfirm", + "Channel.PublishWithDeferredConfirmWithContext", + "Channel.Qos", + "Channel.QueueBind", + "Channel.QueueDeclare", + "Channel.QueueDeclarePassive", + "Channel.QueueDelete", + "Channel.QueueInspect", + "Channel.QueuePurge", + "Channel.QueueUnbind", + "Channel.Reconnect", + "Channel.Recover", + "Channel.Reject", + "Channel.Tx", + "Channel.TxCommit", + "Channel.TxRollback", + "Connection.Channel", + "Connection.Close", + "Connection.CloseDeadline", + "Connection.Reconnect", + "Connection.UpdateSecret", + "DefaultConnectionRecovery.OnChannelClose", + "DefaultConnectionRecovery.OnConnectionClose", + "Delivery.Ack", + "Delivery.Nack", + "Delivery.Reject", + "Dial", + "DialConfig", + "DialTLS", + "DialTLS_ExternalAuth", + "Open", + "writeShortstr", + "writer.WriteFrame", + "writer.WriteFrameNoFlush" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-j497-x9hr-x34x" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77408" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/6959423aa2784a1971e399175dfb2065dea0f3b0" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/354" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6498", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6500", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77410", + "GHSA-r9c8-gcjp-xfwh" + ], + "summary": "RabbitMQ amqp091-go: Resource Exhaustion (OOM) via Unbounded Body Buffer Allocation in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Resource Exhaustion (OOM) via Unbounded Body Buffer Allocation in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "Channel.recvContent", + "Connection.Reconnect", + "DefaultConnectionRecovery.OnConnectionClose", + "Dial", + "DialConfig", + "DialTLS", + "DialTLS_ExternalAuth", + "Open" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-r9c8-gcjp-xfwh" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77410" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/91b65fa0096a99a580cf51a31b24028ff1c60382" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/346" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6500", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6502", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77406", + "GHSA-rm6m-hrcw-jw33" + ], + "summary": "RabbitMQ amqp091-go: Consumer Message Flooding via Signed-to-Unsigned Integer Casting in Qos Configuration in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Consumer Message Flooding via Signed-to-Unsigned Integer Casting in Qos Configuration in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "Channel.Qos" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-rm6m-hrcw-jw33" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77406" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/3b879e1d1d25b544e26b3bc3d7db3213203c0f3b" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/351" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6502", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6503", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-77403", + "GHSA-xwwf-m8fg-p9q2" + ], + "summary": "RabbitMQ amqp091-go: Denial of Service via Sub-Spec Frame Size Negotiation in github.com/rabbitmq/amqp091-go", + "details": "RabbitMQ amqp091-go: Denial of Service via Sub-Spec Frame Size Negotiation in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "Connection.Reconnect", + "Connection.openTune", + "DefaultConnectionRecovery.OnConnectionClose", + "Dial", + "DialConfig", + "DialTLS", + "DialTLS_ExternalAuth", + "Open" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-xwwf-m8fg-p9q2" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77403" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/2e0a919b89f337dbf58db2bb34ab206dac354a06" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/353" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.13.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6503", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6700", + "modified": "2026-10-19T21:08:21Z", + "published": "2026-10-19T21:08:21Z", + "aliases": [ + "CVE-2026-107386", + "GHSA-w6r9-248c-frg8" + ], + "summary": "Pre-negotiation frame limit is not enforced to 4KB in github.com/rabbitmq/amqp091-go", + "details": "Pre-negotiation frame limit is not enforced to 4KB in github.com/rabbitmq/amqp091-go", + "affected": [ + { + "package": { + "name": "github.com/rabbitmq/amqp091-go", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.14.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/rabbitmq/amqp091-go", + "symbols": [ + "Dial", + "DialConfig", + "DialTLS", + "DialTLS_ExternalAuth", + "Open" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/rabbitmq/amqp091-go/security/advisories/GHSA-w6r9-248c-frg8" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/commit/6723e8cff8710f0a6bf5fb4af375e285052535b3" + }, + { + "type": "FIX", + "url": "https://github.com/rabbitmq/amqp091-go/pull/377" + }, + { + "type": "WEB", + "url": "https://github.com/rabbitmq/amqp091-go/releases/tag/v1.14.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6700", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6505", + "modified": "2026-10-01T20:23:56Z", + "published": "2026-10-01T20:23:56Z", + "aliases": [ + "CVE-2026-81870", + "GHSA-8wmf-6v46-5gfg" + ], + "summary": "OpenTelemetry-Go: Exporter config logging may leak endpoint URLs in info logs in go.opentelemetry.io/otel/exporters/otlp/otlptrace", + "details": "OpenTelemetry-Go: Exporter config logging may leak endpoint URLs in info logs in go.opentelemetry.io/otel/exporters/otlp/otlptrace", + "affected": [ + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/zipkin", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "go.opentelemetry.io/otel/sdk", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0" + }, + { + "fixed": "1.45.0" + } + ] + } + ], + "ecosystem_specific": {} + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-8wmf-6v46-5gfg" + }, + { + "type": "ADVISORY", + "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-81870" + }, + { + "type": "WEB", + "url": "https://github.com/open-telemetry/opentelemetry-go/commit/3a1412d2b3bc4e4231fbeac2ed42117ae541bb38" + }, + { + "type": "WEB", + "url": "https://github.com/open-telemetry/opentelemetry-go/pull/8438" + }, + { + "type": "WEB", + "url": "https://github.com/open-telemetry/opentelemetry-go/releases/tag/exporters/zipkin/v1.45.0" + }, + { + "type": "WEB", + "url": "https://github.com/open-telemetry/opentelemetry-go/releases/tag/sdk/v1.45.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6505", + "review_status": "UNREVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-4985", + "modified": "2026-05-26T22:48:49Z", + "published": "2026-05-26T22:48:49Z", + "aliases": [ + "CVE-2026-39882", + "GHSA-w8rr-5gcm-pp58" + ], + "summary": "Oversized OTLP HTTP response bodies can cause memory exhaustion in go.opentelemetry.io/otel/exporters/otlp", + "details": "The OTLP HTTP exporters (traces, metrics, and logs) do not limit the size of the HTTP response body read from the collector. A malicious or misconfigured collector can send a large response body, leading to excessive memory consumption and potential process termination (OOM).", + "affected": [ + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.19.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp", + "symbols": [ + "Exporter.Export", + "client.UploadLogs" + ] + } + ] + } + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp", + "symbols": [ + "Exporter.Export", + "client.UploadMetrics" + ] + } + ] + } + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "symbols": [ + "New", + "NewUnstarted", + "client.UploadTraces" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://github.com/open-telemetry/opentelemetry-go/pull/8108" + }, + { + "type": "ADVISORY", + "url": "https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-w8rr-5gcm-pp58" + }, + { + "type": "WEB", + "url": "http://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.43.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-4985", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2020-0012", + "modified": "2024-05-20T16:03:47Z", + "published": "2021-04-14T20:04:52Z", + "aliases": [ + "CVE-2020-9283", + "GHSA-ffhg-7mh4-33c4" + ], + "summary": "Panic due to improper verification of cryptographic signatures in golang.org/x/crypto/ssh", + "details": "An attacker can craft an ssh-ed25519 or sk-ssh-ed25519@openssh.com public key, such that the library will panic when trying to verify a signature with it. If verifying signatures using user supplied public keys, this may be used as a denial of service vector.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20200220183623-bac4c82f6975" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "CertChecker.Authenticate", + "CertChecker.CheckCert", + "CertChecker.CheckHostKey", + "Certificate.Verify", + "Dial", + "NewClientConn", + "NewPublicKey", + "NewServerConn", + "NewSignerFromKey", + "NewSignerFromSigner", + "ParseAuthorizedKey", + "ParseKnownHosts", + "ParsePrivateKey", + "ParsePrivateKeyWithPassphrase", + "ParsePublicKey", + "ParseRawPrivateKey", + "ParseRawPrivateKeyWithPassphrase", + "ed25519PublicKey.Verify", + "parseED25519", + "parseSKEd25519", + "skEd25519PublicKey.Verify" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/220357" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/crypto/+/bac4c82f69751a6dd76e702d54b3ceb88adab236" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/3L45YRc91SY" + } + ], + "credits": [ + { + "name": "Alex Gaynor, Fish in a Barrel" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2020-0012", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2020-0013", + "modified": "2024-05-20T16:03:47Z", + "published": "2021-04-14T20:04:52Z", + "aliases": [ + "CVE-2017-3204", + "GHSA-xhjq-w7xm-p8qj" + ], + "summary": "Man-in-the-middle attack in golang.org/x/crypto/ssh", + "details": "By default host key verification is disabled which allows for man-in-the-middle attacks against SSH clients if ClientConfig.HostKeyCallback is not set.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20170330155735-e4e2799dd7aa" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Dial", + "NewClientConn" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/38701" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/crypto/+/e4e2799dd7aab89f583e1d898300d96367750991" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/19767" + }, + { + "type": "WEB", + "url": "https://bridge.grumpy-troll.org/2017/04/golang-ssh-security/" + } + ], + "credits": [ + { + "name": "Phil Pennock" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2020-0013", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0227", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:35:32Z", + "aliases": [ + "CVE-2020-29652", + "GHSA-3vm4-22fp-5rfm" + ], + "summary": "Panic on crafted authentication request message in golang.org/x/crypto/ssh", + "details": "Clients can cause a panic in SSH servers. An attacker can craft an authentication request message for the \u201cgssapi-with-mic\u201d method which will cause NewServerConn to panic via a nil pointer dereference if ServerConfig.GSSAPIWithMICConfig is nil.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20201216223049-8b5274cf687f" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "NewServerConn", + "connection.serverAuthenticate" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/278852" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/crypto/+/8b5274cf687fd9316b4108863654cc57385531e8" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/ouZIlBimOsE?pli=1" + } + ], + "credits": [ + { + "name": "Joern Schneewesiz (GitLab Security Research Team)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0227", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0356", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-04-25T20:38:40Z", + "aliases": [ + "CVE-2022-27191", + "GHSA-8c26-wmh5-6g9v" + ], + "summary": "Denial of service via crafted Signer in golang.org/x/crypto/ssh", + "details": "Attackers can cause a crash in SSH servers when the server has been configured by passing a Signer to ServerConfig.AddHostKey such that\n1) the Signer passed to AddHostKey does not implement AlgorithmSigner, and\n2) the Signer passed to AddHostKey returns a key of type \u201cssh-rsa\u201d from its PublicKey method.\n\nServers that only use Signer implementations provided by the ssh package are unaffected.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20220314234659-1baeb1ce4c0b" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "ServerConfig.AddHostKey" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/392355" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/crypto/+/1baeb1ce4c0b006eff0f294c47cb7617598dfb3d" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/-cp44ypCT5s" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0356", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0209", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-01T20:15:25Z", + "aliases": [ + "CVE-2019-11840", + "GHSA-r5c5-pr8j-pfp7" + ], + "summary": "Insufficiently random values in golang.org/x/crypto/salsa20", + "details": "XORKeyStream generates incorrect and insecure output for very large inputs.\n\nIf more than 256 GiB of keystream is generated, or if the counter otherwise grows greater than 32 bits, the amd64 implementation will first generate incorrect output, and then cycle back to previously generated keystream. Repeated keystream bytes can lead to loss of confidentiality in encryption applications, or to predictability in CSPRNG applications.\n\nThe issue might affect uses of golang.org/x/crypto/nacl with extremely large messages.\n\nArchitectures other than amd64 and uses that generate less than 256 GiB of keystream for a single salsa20.XORKeyStream invocation are unaffected.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20190320223903-b7391e95e576" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/salsa20/salsa", + "goarch": [ + "amd64" + ], + "symbols": [ + "XORKeyStream" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/168406" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/crypto/+/b7391e95e576cacdcdd422573063bc057239113d" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/30965" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/tjyNcJxb2vQ/m/n0NRBziSCAAJ" + } + ], + "credits": [ + { + "name": "Michael McLoughlin" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0209", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0229", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-06T18:23:48Z", + "aliases": [ + "CVE-2020-7919", + "GHSA-cjjc-xp8v-855w" + ], + "summary": "Panic in certificate parsing in crypto/x509 and golang.org/x/crypto/cryptobyte", + "details": "On 32-bit architectures, a malformed input to crypto/x509 or the ASN.1 parsing functions of golang.org/x/crypto/cryptobyte can lead to a panic.\n\nThe malformed certificate can be delivered via a crypto/tls connection to a client, or to a server that accepts client certificates. net/http clients can be made to crash by an HTTPS server, while net/http servers that accept client certificates will recover the panic and are unaffected.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.12.16" + }, + { + "introduced": "1.13.0-0" + }, + { + "fixed": "1.13.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/x509" + } + ] + } + }, + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20200124225646-8b5121be2f68" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/cryptobyte" + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/216680" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/b13ce14c4a6aa59b7b041ad2b6eed2d23e15b574" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/216677" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/36837" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Hsw4mHYc470" + } + ], + "credits": [ + { + "name": "Project Wycheproof" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0229", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0968", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-09-13T03:32:38Z", + "aliases": [ + "CVE-2021-43565", + "GHSA-gwc9-m7rh-j2ww" + ], + "summary": "Panic on malformed packets in golang.org/x/crypto/ssh", + "details": "Unauthenticated clients can cause a panic in SSH servers.\n\nWhen using AES-GCM or ChaCha20Poly1305, consuming a malformed packet which contains an empty plaintext causes a panic.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20211202192323-5770296d904e" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Dial", + "NewClientConn", + "NewServerConn", + "chacha20Poly1305Cipher.readCipherPacket", + "curve25519sha256.Client", + "curve25519sha256.Server", + "dhGEXSHA.Client", + "dhGEXSHA.Server", + "dhGroup.Client", + "dhGroup.Server", + "ecdh.Client", + "ecdh.Server", + "gcmCipher.readCipherPacket" + ] + } + ] + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/2AR1sKiM-Qs" + }, + { + "type": "REPORT", + "url": "https://go.dev/issues/49932" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/368814/" + } + ], + "credits": [ + { + "name": "Rod Hynes (Psiphon Inc)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0968", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1992", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-08-23T14:38:42Z", + "aliases": [ + "CVE-2019-11841", + "GHSA-x3jr-pf6g-c48f" + ], + "summary": "Misleading message verification in golang.org/x/crypto/openpgp/clearsign", + "details": "The clearsign package accepts some malformed messages, making it possible for an attacker to trick a human user (but not a Go program) into thinking unverified text is part of the message.\n\nWith fix, messages with malformed headers in the SIGNED MESSAGE section are rejected.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20190424203555-c05e17bb3b2d" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/openpgp/clearsign", + "symbols": [ + "Decode" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go-review.git.corp.google.com/c/crypto/+/173778" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/crypto/+/c05e17bb3b2dca130fc919668a96b4bec9eb9442" + }, + { + "type": "WEB", + "url": "https://groups.google.com/d/msg/golang-openpgp/6vdgZoTgbIY/K6bBY9z3DAAJ" + } + ], + "credits": [ + { + "name": "Aida Mynzhasova (SEC Consult Vulnerability Lab)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1992", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-2402", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-12-18T21:18:26Z", + "aliases": [ + "CVE-2023-48795", + "GHSA-45x7-px36-x8w8" + ], + "summary": "Man-in-the-middle attacker can compromise integrity of secure channel in golang.org/x/crypto", + "details": "A protocol weakness allows a MITM attacker to compromise the integrity of the secure channel before it is established, allowing the attacker to prevent transmission of a number of messages immediately after the secure channel is established without either side being aware.\n\nThe impact of this attack is relatively limited, as it does not compromise confidentiality of the channel. Notably this attack would allow an attacker to prevent the transmission of the SSH2_MSG_EXT_INFO message, disabling a handful of newer security features.\n\nThis protocol weakness was also fixed in OpenSSH 9.6.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.17.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Client.Dial", + "Client.DialContext", + "Client.DialTCP", + "Client.Listen", + "Client.ListenTCP", + "Client.ListenUnix", + "Client.NewSession", + "Dial", + "DiscardRequests", + "NewClient", + "NewClientConn", + "NewServerConn", + "Request.Reply", + "Session.Close", + "Session.CombinedOutput", + "Session.Output", + "Session.RequestPty", + "Session.RequestSubsystem", + "Session.Run", + "Session.SendRequest", + "Session.Setenv", + "Session.Shell", + "Session.Signal", + "Session.Start", + "Session.WindowChange", + "channel.Accept", + "channel.Close", + "channel.CloseWrite", + "channel.Read", + "channel.ReadExtended", + "channel.Reject", + "channel.SendRequest", + "channel.Write", + "channel.WriteExtended", + "connectionState.readPacket", + "connectionState.writePacket", + "curve25519sha256.Client", + "curve25519sha256.Server", + "dhGEXSHA.Client", + "dhGEXSHA.Server", + "dhGroup.Client", + "dhGroup.Server", + "ecdh.Client", + "ecdh.Server", + "extChannel.Read", + "extChannel.Write", + "handshakeTransport.enterKeyExchange", + "handshakeTransport.readLoop", + "handshakeTransport.sendKexInit", + "mux.OpenChannel", + "mux.SendRequest", + "sessionStdin.Close", + "sshClientKeyboardInteractive.Challenge", + "tcpListener.Accept", + "tcpListener.Close", + "transport.readPacket", + "transport.writePacket", + "unixListener.Accept", + "unixListener.Close" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/64784" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/550715" + }, + { + "type": "FIX", + "url": "https://github.com/golang/crypto/commit/9d2ee975ef9fe627bf0a6f01c1f69e8ef1d4f05d" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/qA3XtxvMUyg" + }, + { + "type": "WEB", + "url": "https://www.openssh.com/txt/release-9.6" + } + ], + "credits": [ + { + "name": "Fabian B\u00e4umer (Ruhr University Bochum)" + }, + { + "name": "Marcus Brinkmann (Ruhr University Bochum)" + }, + { + "name": "J\u00f6rg Schwenk (Ruhr University Bochum)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-2402", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2024-2961", + "modified": "2024-07-02T19:27:52Z", + "published": "2024-07-02T19:27:52Z", + "aliases": [ + "CVE-2022-30636" + ], + "summary": "Limited directory traversal vulnerability on Windows in golang.org/x/crypto", + "details": "httpTokenCacheKey uses path.Base to extract the expected HTTP-01 token value to lookup in the DirCache implementation. On Windows, path.Base acts differently to filepath.Base, since Windows uses a different path separator (\\ vs. /), allowing a user to provide a relative path, i.e. .well-known/acme-challenge/..\\..\\asd becomes ..\\..\\asd. The extracted path is then suffixed with +http-01, joined with the cache directory, and opened.\n\nSince the controlled path is suffixed with +http-01 before opening, the impact of this is significantly limited, since it only allows reading arbitrary files on the system if and only if they have this suffix.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20220525230936-793ad666bf5e" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/acme/autocert", + "goos": [ + "windows" + ], + "symbols": [ + "DirCache.Delete", + "DirCache.Get", + "DirCache.Put", + "HostWhitelist", + "Manager.GetCertificate", + "Manager.Listener", + "NewListener", + "listener.Accept", + "listener.Close" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/408694" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53082" + } + ], + "credits": [ + { + "name": "Juho Nurminen of Mattermost" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2024-2961", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2024-3321", + "modified": "2025-02-18T20:32:01Z", + "published": "2024-12-11T18:40:19Z", + "aliases": [ + "CVE-2024-45337", + "GHSA-v778-237x-gjrc" + ], + "summary": "Misuse of connection.serverAuthenticate may cause authorization bypass in golang.org/x/crypto", + "details": "Applications and libraries which misuse connection.serverAuthenticate (via callback field ServerConfig.PublicKeyCallback) may be susceptible to an authorization bypass.\n\nThe documentation for ServerConfig.PublicKeyCallback says that \"A call to this function does not guarantee that the key offered is in fact used to authenticate.\" Specifically, the SSH protocol allows clients to inquire about whether a public key is acceptable before proving control of the corresponding private key. PublicKeyCallback may be called with multiple keys, and the order in which the keys were provided cannot be used to infer which key the client successfully authenticated with, if any. Some applications, which store the key(s) passed to PublicKeyCallback (or derived information) and make security relevant determinations based on it once the connection is established, may make incorrect assumptions.\n\nFor example, an attacker may send public keys A and B, and then authenticate with A. PublicKeyCallback would be called only twice, first with A and then with B. A vulnerable application may then make authorization decisions based on key B for which the attacker does not actually control the private key.\n\nSince this API is widely misused, as a partial mitigation golang.org/x/cry...@v0.31.0 enforces the property that, when successfully authenticating via public key, the last key passed to ServerConfig.PublicKeyCallback will be the key used to authenticate the connection. PublicKeyCallback will now be called multiple times with the same key, if necessary. Note that the client may still not control the last key passed to PublicKeyCallback if the connection is then authenticated with a different method, such as PasswordCallback, KeyboardInteractiveCallback, or NoClientAuth.\n\nUsers should be using the Extensions field of the Permissions return value from the various authentication callbacks to record data associated with the authentication attempt instead of referencing external state. Once the connection is established the state corresponding to the successful authentication attempt can be retrieved via the ServerConn.Permissions field. Note that some third-party libraries misuse the Permissions type by sharing it across authentication attempts; users of third-party libraries should refer to the relevant projects for guidance.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.31.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "NewServerConn", + "ServerConfig.PublicKeyCallback", + "connection.serverAuthenticate" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://github.com/golang/crypto/commit/b4f1988a35dee11ec3e05d6bf3e90b695fbd8909" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/635315" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/70779" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/-nPEi39gI4Q/m/cGVPJCqdAQAJ" + } + ], + "credits": [ + { + "name": "Damien Tournoud (Platform.sh / Upsun)" + }, + { + "name": "Patrick Dawkins (Platform.sh / Upsun)" + }, + { + "name": "Vince Parker (Platform.sh / Upsun)" + }, + { + "name": "Jules Duvivier (Platform.sh / Upsun)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2024-3321", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2025-3487", + "modified": "2025-02-26T02:51:51Z", + "published": "2025-02-26T02:51:51Z", + "aliases": [ + "CVE-2025-22869" + ], + "summary": "Potential denial of service in golang.org/x/crypto", + "details": "SSH servers which implement file transfer protocols are vulnerable to a denial of service attack from clients which complete the key exchange slowly, or not at all, causing pending content to be read into memory, but never transmitted.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.35.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Client.Dial", + "Client.DialContext", + "Client.DialTCP", + "Client.Listen", + "Client.ListenTCP", + "Client.ListenUnix", + "Client.NewSession", + "Dial", + "DiscardRequests", + "NewClient", + "NewClientConn", + "NewServerConn", + "Request.Reply", + "Session.Close", + "Session.CombinedOutput", + "Session.Output", + "Session.RequestPty", + "Session.RequestSubsystem", + "Session.Run", + "Session.SendRequest", + "Session.Setenv", + "Session.Shell", + "Session.Signal", + "Session.Start", + "Session.WindowChange", + "channel.Accept", + "channel.Close", + "channel.CloseWrite", + "channel.Read", + "channel.ReadExtended", + "channel.Reject", + "channel.SendRequest", + "channel.Write", + "channel.WriteExtended", + "connection.SendAuthBanner", + "curve25519sha256.Client", + "curve25519sha256.Server", + "dhGEXSHA.Client", + "dhGEXSHA.Server", + "dhGroup.Client", + "dhGroup.Server", + "ecdh.Client", + "ecdh.Server", + "extChannel.Read", + "extChannel.Write", + "handshakeTransport.kexLoop", + "handshakeTransport.recordWriteError", + "handshakeTransport.writePacket", + "mux.OpenChannel", + "mux.SendRequest", + "newHandshakeTransport", + "sessionStdin.Close", + "sshClientKeyboardInteractive.Challenge", + "tcpListener.Accept", + "tcpListener.Close", + "unixListener.Accept", + "unixListener.Close" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/652135" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/71931" + } + ], + "credits": [ + { + "name": "Yuichi Watanabe" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2025-3487", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2025-4116", + "modified": "2025-12-16T16:23:22Z", + "published": "2025-11-13T21:12:03Z", + "aliases": [ + "CVE-2025-47913" + ], + "summary": "Potential denial of service in golang.org/x/crypto/ssh/agent", + "details": "SSH clients receiving SSH_AGENT_SUCCESS when expecting a typed response will panic and cause early termination of the client process.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh/agent", + "symbols": [ + "agentKeyringSigner.Sign", + "agentKeyringSigner.SignWithAlgorithm", + "client.List", + "client.Sign", + "client.SignWithFlags", + "client.Signers" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/700295" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/75178" + }, + { + "type": "WEB", + "url": "https://github.com/advisories/GHSA-56w8-48fp-6mgv" + } + ], + "credits": [ + { + "name": "Jakub Ciolek" + }, + { + "name": "Nicola Murino" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2025-4116", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2025-4134", + "modified": "2025-11-20T16:52:31Z", + "published": "2025-11-19T20:11:57Z", + "aliases": [ + "CVE-2025-58181", + "GHSA-j5w8-q4qc-rx2x" + ], + "summary": "Unbounded memory consumption in golang.org/x/crypto/ssh", + "details": "SSH servers parsing GSSAPI authentication requests do not validate the number of mechanisms specified in the request, allowing an attacker to cause unbounded memory consumption.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.45.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "NewServerConn", + "parseGSSAPIPayload" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://groups.google.com/g/golang-announce/c/w-oX3UxNcZA" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/721961" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/76363" + } + ], + "credits": [ + { + "name": "Jakub Ciolek" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2025-4134", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2025-4135", + "modified": "2025-11-20T16:52:31Z", + "published": "2025-11-19T20:11:57Z", + "aliases": [ + "CVE-2025-47914", + "GHSA-f6x5-jh6r-wrfv" + ], + "summary": "Malformed constraint may cause denial of service in golang.org/x/crypto/ssh/agent", + "details": "SSH Agent servers do not validate the size of messages when processing new identity requests, which may cause the program to panic if the message is malformed due to an out of bounds read.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.45.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh/agent", + "symbols": [ + "ForwardToAgent", + "ServeAgent", + "parseConstraints" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://groups.google.com/g/golang-announce/c/w-oX3UxNcZA" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/721960" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/76364" + } + ], + "credits": [ + { + "name": "Jakub Ciolek" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2025-4135", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5005", + "modified": "2026-08-11T21:06:47Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39833", + "GHSA-jppx-rxg9-jmrx" + ], + "summary": "Invoking key constraints not enforced in golang.org/x/crypto/ssh/agent", + "details": "The in-memory keyring returned by NewKeyring() silently accepted keys with the ConfirmBeforeUse constraint but never enforced it. The key would sign without any confirmation prompt, with no indication to the caller that the constraint was not in effect. NewKeyring() now returns an error when unsupported constraints are requested.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh/agent", + "symbols": [ + "keyring.Add" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79436" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/778642" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5005", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5006", + "modified": "2026-08-11T21:06:47Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39832", + "GHSA-f5wc-c3c7-36mc" + ], + "summary": "Invoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent", + "details": "When adding a key to a remote agent constraint extensions such as restrict-destination-v00@openssh.com were not serialized in the request. Destination restrictions were silently stripped when forwarding keys, allowing unrestricted use of the key on the remote host. The client now serializes all constraint extensions. Additionally, the in-memory keyring returned by NewKeyring() now rejects keys with unsupported constraint extensions instead of silently ignoring them.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh/agent", + "symbols": [ + "client.Add", + "keyring.Add" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79435" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/778640" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/778641" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5006", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5013", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-46597" + ], + "summary": "Invoking byte arithmetic causes underflow and panic in golang.org/x/crypto/ssh", + "details": "An incorrectly placed cast from bytes to int allowed for server-side panic in the AES-GCM packet decoder for well-crafted inputs.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Dial", + "NewClientConn", + "NewServerConn", + "curve25519sha256.Client", + "curve25519sha256.Server", + "dhGEXSHA.Client", + "dhGEXSHA.Server", + "dhGroup.Client", + "dhGroup.Server", + "ecdh.Client", + "ecdh.Server", + "gcmCipher.readCipherPacket", + "mlkem768WithCurve25519sha256.Client", + "mlkem768WithCurve25519sha256.Server" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79561" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781620" + } + ], + "credits": [ + { + "name": "Maciej Kawka" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5013", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5014", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39828" + ], + "summary": "Invoking bypass of certificate restrictions in golang.org/x/crypto/ssh", + "details": "When an SSH server authentication callback returned PartialSuccessError with non-nil Permissions, those permissions were silently discarded, potentially dropping certificate restrictions such as force-command after a second factor succeeded. Returning non-nil Permissions with PartialSuccessError now results in a connection error.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "NewServerConn", + "connection.serverAuthenticate" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79562" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781621" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5014", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5015", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39835" + ], + "summary": "Invoking server panic during CheckHostKey/Authenticate in golang.org/x/crypto/ssh", + "details": "SSH servers which use CertChecker as a public key callback without setting IsUserAuthority or IsHostAuthority could be caused to panic by a client presenting a certificate. CertChecker now returns an error instead of panicking when these callbacks are nil.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "CertChecker.Authenticate", + "CertChecker.CheckHostKey" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79563" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781660" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5015", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5016", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39827" + ], + "summary": "Invoking memory leak when rejecting channels can lead to DoS in golang.org/x/crypto/ssh", + "details": "An authenticated SSH client that repeatedly opened channels which were rejected by the server caused unbounded memory growth, eventually crashing the server process and affecting all connected users. Rejected channels are now properly removed from the connection's internal state and released for garbage collection.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "channel.Reject" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/35127" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781320" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + } + ], + "credits": [ + { + "name": "Ziyan Zhou" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5016", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5017", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39830" + ], + "summary": "Invoking client can cause server deadlock on unexpected responses in golang.org/x/crypto/ssh", + "details": "A malicious SSH peer could send unsolicited global request responses to fill an internal buffer, blocking the connection's read loop. The blocked goroutine could not be released by calling Close(), resulting in a resource leak per connection. Unsolicited global responses are now discarded.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Client.Listen", + "Client.ListenTCP", + "Client.ListenUnix", + "Dial", + "NewClientConn", + "NewServerConn", + "Session.CombinedOutput", + "Session.Output", + "Session.RequestPty", + "Session.RequestSubsystem", + "Session.Run", + "Session.SendRequest", + "Session.Setenv", + "Session.Shell", + "Session.Signal", + "Session.Start", + "Session.WindowChange", + "channel.SendRequest", + "channel.handlePacket", + "mux.SendRequest", + "mux.handleGlobalPacket", + "tcpListener.Close", + "unixListener.Close" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79564" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781640" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781664" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5017", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5018", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39829" + ], + "summary": "Invoking pathological RSA/DSA parameters may cause DoS in golang.org/x/crypto/ssh", + "details": "The RSA and DSA public key parsers did not enforce size limits on key parameters. A crafted public key with an excessively large modulus or DSA parameter could cause several minutes of CPU consumption during signature verification. This could be triggered by unauthenticated clients during public key authentication. RSA moduli are now limited to 8192 bits, and DSA parameters are validated per FIPS 186-2.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Dial", + "NewClientConn", + "NewServerConn", + "NewSignerFromKey", + "ParseAuthorizedKey", + "ParseKnownHosts", + "ParsePrivateKey", + "ParsePrivateKeyWithPassphrase", + "ParsePublicKey", + "ParseRawPrivateKey", + "ParseRawPrivateKeyWithPassphrase", + "checkDSAParams", + "parseDSA", + "parseRSA" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79565" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781641" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781661" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5018", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5019", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39831" + ], + "summary": "Invoking bypass of FIDO/U2F security keys physical interaction in golang.org/x/crypto/ssh", + "details": "The Verify() method for FIDO/U2F security key types (sk-ecdsa-sha2-nistp256@openssh.com, sk-ssh-ed25519@openssh.com) did not check the User Presence flag. Signatures generated without physical touch were accepted, allowing unattended use of a hardware security key. To restore the previous behavior, return a \"no-touch-required\" extension in Permissions.Extensions from PublicKeyCallback.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "CertChecker.Authenticate", + "CertChecker.CheckCert", + "CertChecker.CheckHostKey", + "Certificate.Verify", + "Dial", + "NewClientConn", + "NewServerConn", + "connection.serverAuthenticate", + "skECDSAPublicKey.Verify", + "skEd25519PublicKey.Verify" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79566" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781662" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5019", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5020", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-39834" + ], + "summary": "Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh", + "details": "When writing data larger than 4GB in a single Write call on an SSH channel, an integer overflow in the internal payload size calculation caused the write loop to spin indefinitely, sending empty packets without making progress. The size comparison now uses int64 to prevent truncation.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Dial", + "NewClientConn", + "NewServerConn", + "Session.CombinedOutput", + "Session.Output", + "Session.Run", + "Session.Shell", + "Session.Start", + "channel.Write", + "channel.WriteExtended", + "curve25519sha256.Client", + "curve25519sha256.Server", + "dhGEXSHA.Client", + "dhGEXSHA.Server", + "dhGroup.Client", + "dhGroup.Server", + "ecdh.Client", + "ecdh.Server", + "extChannel.Write", + "mlkem768WithCurve25519sha256.Client", + "mlkem768WithCurve25519sha256.Server" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79567" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781663" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5020", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5021", + "modified": "2026-08-14T16:22:54Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-42508", + "GHSA-5cgq-3rg8-m6cv" + ], + "summary": "Invoking auth bypass via unenforced @revoked status in golang.org/x/crypto/ssh/knownhosts", + "details": "Previously, a revoked 'SignatureKey' belonging to a CA was not correctly checked for revocation. Now, both the 'key' and 'key.SignatureKey' are checked for @revoked.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh/knownhosts", + "symbols": [ + "hostKeyDB.IsRevoked" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79568" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781220" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + } + ], + "credits": [ + { + "name": "Omar Khaleel Ibrahim - mr3okk" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5021", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5023", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-46595" + ], + "summary": "Invoking VerifiedPublicKeyCallback permissions skip enforcement in golang.org/x/crypto/ssh", + "details": "Previously, CVE-2024-45337 fixed an authorization bypass for misused ssh server configurations; if any other type of callback is passed other than public key, then the source-address validation would be skipped.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "NewServerConn", + "connection.serverAuthenticate" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79570" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781642" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5023", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5033", + "modified": "2026-05-22T02:08:34Z", + "published": "2026-05-22T02:08:34Z", + "aliases": [ + "CVE-2026-46598" + ], + "summary": "Invoking pathological inputs can lead to client panic in golang.org/x/crypto/ssh/agent", + "details": "For certain crafted inputs, a 'ed25519.PrivateKey' was created by casting malformed wire bytes, leading to a panic when used.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.52.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh/agent", + "symbols": [ + "ForwardToAgent", + "ServeAgent", + "parseEd25519Cert", + "parseEd25519Key" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/79596" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/781360" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/a082jnz-LvI" + } + ], + "credits": [ + { + "name": "NCC Group Cryptography Services, sponsored by Teleport" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5033", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5932", + "modified": "2026-11-02T22:01:43Z", + "published": "2026-07-07T22:15:29Z", + "summary": "The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues", + "details": "The golang.org/x/crypto/openpgp package is unsafe by design, has numerous known security issues, is not maintained, and should not be used.\n\nIf you are required to interoperate with OpenPGP systems and need a maintained package, consider github.com/ProtonMail/go-crypto/openpgp which is a maintained fork that aims to be a drop-in replacement for this package.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.58.1-0.20261009181718-2f1f834330b2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/openpgp" + }, + { + "path": "golang.org/x/crypto/openpgp/packet" + }, + { + "path": "golang.org/x/crypto/openpgp/armor" + }, + { + "path": "golang.org/x/crypto/openpgp/clearsign" + }, + { + "path": "golang.org/x/crypto/openpgp/errors" + }, + { + "path": "golang.org/x/crypto/openpgp/elgamal" + }, + { + "path": "golang.org/x/crypto/openpgp/s2k" + } + ] + } + }, + { + "package": { + "name": "golang.org/x/crypto/openpgp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/openpgp" + }, + { + "path": "golang.org/x/crypto/openpgp/packet" + }, + { + "path": "golang.org/x/crypto/openpgp/armor" + }, + { + "path": "golang.org/x/crypto/openpgp/clearsign" + }, + { + "path": "golang.org/x/crypto/openpgp/errors" + }, + { + "path": "golang.org/x/crypto/openpgp/elgamal" + }, + { + "path": "golang.org/x/crypto/openpgp/s2k" + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/44226" + }, + { + "type": "WEB", + "url": "https://go.dev/issue/81227" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5932", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6303", + "modified": "2026-08-28T14:47:45Z", + "published": "2026-08-28T14:47:45Z", + "aliases": [ + "CVE-2026-56854" + ], + "summary": "Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh", + "details": "The source-address critical option in the Permissions returned by an authentication callback was only enforced for the PublicKeyCallback and VerifiedPublicKeyCallback paths, extending the fix for CVE-2026-46595. Permissions returned by the PasswordCallback, KeyboardInteractiveCallback, NoClientAuthCallback, and GSSAPIWithMICConfig.AllowLogin callbacks were not validated against the client's remote address, so a source-address restriction set by those callbacks was silently ignored. The check is now applied to the Permissions returned by any authentication callback.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.55.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "NewServerConn", + "connection.serverAuthenticate" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/80213" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/797040" + } + ], + "credits": [ + { + "name": "Longwei Wang (@gn00295120)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6303", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6354", + "modified": "2026-09-02T19:12:04Z", + "published": "2026-09-02T19:12:04Z", + "aliases": [ + "CVE-2026-78662" + ], + "summary": "Prevent DoS on deadlocked undecided channel in golang.org/x/crypto/ssh", + "details": "Previously, a channel registered in the mux's chanList is not usable until it is established. A malicious peer was able flood the channel's incomingRequests, deadlocking the entire connection.\n\nNow, we add an atomic established state, set when a channel becomes usable. Until such a time, handlePacket drops every packet other than the open confirmation/failure, without blocking and without tearing down the connection.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.56.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Dial", + "NewClientConn", + "NewControlClientConn", + "NewServerConn", + "channel.Accept", + "channel.handlePacket", + "channel.responseMessageReceived" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/81316" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/826504" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/1y3fb2np35U" + } + ], + "credits": [ + { + "name": "Will Mortensen" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6354", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6355", + "modified": "2026-09-02T19:12:04Z", + "published": "2026-09-02T19:12:04Z", + "aliases": [ + "CVE-2026-56855" + ], + "summary": "Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh", + "details": "Previously, after a channel has been established, a malicious peer could send crafted messages that would deadlock the entire connection.\n\nNow, we handle all RFC 4254 channel messages; global requests are handled explicitly. Then, treat all other messages as a protocol error and tear the connection down instead of buffering and blocking.", + "affected": [ + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.56.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/ssh", + "symbols": [ + "Dial", + "NewClientConn", + "NewControlClientConn", + "NewServerConn", + "channel.handlePacket" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/81317" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/826524" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/1y3fb2np35U" + } + ], + "credits": [ + { + "name": "Will Mortensen" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6355", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-4985", + "modified": "2026-05-26T22:48:49Z", + "published": "2026-05-26T22:48:49Z", + "aliases": [ + "CVE-2026-39882", + "GHSA-w8rr-5gcm-pp58" + ], + "summary": "Oversized OTLP HTTP response bodies can cause memory exhaustion in go.opentelemetry.io/otel/exporters/otlp", + "details": "The OTLP HTTP exporters (traces, metrics, and logs) do not limit the size of the HTTP response body read from the collector. A malicious or misconfigured collector can send a large response body, leading to excessive memory consumption and potential process termination (OOM).", + "affected": [ + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.19.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlplog/otlploghttp", + "symbols": [ + "Exporter.Export", + "client.UploadLogs" + ] + } + ] + } + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlpmetric/otlpmetrichttp", + "symbols": [ + "Exporter.Export", + "client.UploadMetrics" + ] + } + ] + } + }, + { + "package": { + "name": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.43.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp", + "symbols": [ + "New", + "NewUnstarted", + "client.UploadTraces" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://github.com/open-telemetry/opentelemetry-go/pull/8108" + }, + { + "type": "ADVISORY", + "url": "https://github.com/open-telemetry/opentelemetry-go/security/advisories/GHSA-w8rr-5gcm-pp58" + }, + { + "type": "WEB", + "url": "http://github.com/open-telemetry/opentelemetry-go/releases/tag/v1.43.0" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-4985", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2020-0015", + "modified": "2024-05-20T16:03:47Z", + "published": "2021-04-14T20:04:52Z", + "aliases": [ + "CVE-2020-14040", + "GHSA-5rcv-m4m3-hfh7" + ], + "summary": "Infinite loop when decoding some inputs in golang.org/x/text", + "details": "An attacker could provide a single byte to a UTF16 decoder instantiated with UseBOM or ExpectBOM to trigger an infinite loop if the String function on the Decoder is called, or the Decoder is passed to transform.String. If used to parse user supplied input, this may be used as a denial of service vector.", + "affected": [ + { + "package": { + "name": "golang.org/x/text", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.3.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/text/encoding/unicode", + "symbols": [ + "bomOverride.Transform", + "utf16Decoder.Transform" + ] + }, + { + "path": "golang.org/x/text/transform", + "symbols": [ + "String" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/238238" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/text/+/23ae387dee1f90d29a23c0e87ee0b46038fbed0e" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/39491" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/bXVeAmGOqz0" + } + ], + "credits": [ + { + "name": "@abacabadabacaba" + }, + { + "name": "Anton Gyllenberg" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2020-0015", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0113", + "modified": "2024-05-20T16:03:47Z", + "published": "2021-10-06T17:51:21Z", + "aliases": [ + "CVE-2021-38561", + "GHSA-ppp9-7jff-5vj2" + ], + "summary": "Out-of-bounds read in golang.org/x/text/language", + "details": "Due to improper index calculation, an incorrectly formatted language tag can cause Parse to panic via an out of bounds read. If Parse is used to process untrusted user inputs, this may be used as a vector for a denial of service attack.", + "affected": [ + { + "package": { + "name": "golang.org/x/text", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.3.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/text/language", + "symbols": [ + "MatchStrings", + "MustParse", + "Parse", + "ParseAcceptLanguage" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/340830" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/text/+/383b2e75a7a4198c42f8f87833eefb772868a56f" + } + ], + "credits": [ + { + "name": "Guido Vranken" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0113", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-1059", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-10-11T18:16:24Z", + "aliases": [ + "CVE-2022-32149", + "GHSA-69ch-w2m2-3vjp" + ], + "summary": "Denial of service via crafted Accept-Language header in golang.org/x/text/language", + "details": "An attacker may cause a denial of service by crafting an Accept-Language header which ParseAcceptLanguage will take significant time to parse.", + "affected": [ + { + "package": { + "name": "golang.org/x/text", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.3.8" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/text/language", + "symbols": [ + "MatchStrings", + "ParseAcceptLanguage" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/56152" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/442235" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/-hjNw559_tE/m/KlGTfid5CAAJ" + } + ], + "credits": [ + { + "name": "Adam Korczynski (ADA Logics)" + }, + { + "name": "OSS-Fuzz" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-1059", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-5970", + "modified": "2026-08-10T22:42:36Z", + "published": "2026-07-14T17:29:56Z", + "aliases": [ + "CVE-2026-56852" + ], + "summary": "Infinite loop on invalid input in golang.org/x/text", + "details": "A norm.Iter can enter an infinite loop when handling input containing invalid UTF-8 bytes.", + "affected": [ + { + "package": { + "name": "golang.org/x/text", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.39.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/text/unicode/norm", + "symbols": [ + "Form.Append", + "Form.AppendString", + "Form.Bytes", + "Form.FirstBoundary", + "Form.FirstBoundaryInString", + "Form.IsNormal", + "Form.IsNormalString", + "Form.LastBoundary", + "Form.NextBoundary", + "Form.NextBoundaryInString", + "Form.Properties", + "Form.PropertiesString", + "Form.QuickSpan", + "Form.QuickSpanString", + "Form.Span", + "Form.SpanString", + "Form.String", + "Form.Transform", + "Iter.Init", + "Iter.InitString", + "Iter.Next", + "Iter.Seek", + "nextComposed", + "normReader.Read", + "normWriter.Write" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/80142" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/794100" + } + ], + "credits": [ + { + "name": "Viky Choi (\"vikychoi\" on GitHub)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-5970", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2026-6629", + "modified": "2026-10-07T14:09:43Z", + "published": "2026-10-07T14:09:43Z", + "aliases": [ + "CVE-2026-56851" + ], + "summary": "Panic parsing crafted input in x/text/secure/precis in golang.org/x/text", + "details": "The Nickname profile can panic with an out-of-bounds slice error when transforming crafted input into a short destination buffer.", + "affected": [ + { + "package": { + "name": "golang.org/x/text", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.41.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/text/secure/precis", + "symbols": [ + "Profile.Append", + "Profile.AppendCompareKey", + "Profile.Bytes", + "Profile.Compare", + "Profile.CompareKey", + "Profile.NewTransformer", + "Profile.String", + "Transformer.Bytes", + "Transformer.String", + "Transformer.Transform", + "nickAdditionalMapping.Transform" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/793360" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/80112" + } + ], + "credits": [ + { + "name": "Omkhar Arasaratnam (GitHub: omkhar)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2026-6629", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2025-3540", + "modified": "2025-03-26T17:24:24Z", + "published": "2025-03-26T17:24:24Z", + "aliases": [ + "CVE-2025-29923", + "GHSA-92cp-5422-2mw7" + ], + "summary": "Potential out of order responses when CLIENT SETINFO times out during connection establishment in github.com/redis/go-redis", + "details": "Potential out of order responses when CLIENT SETINFO times out during connection establishment in github.com/redis/go-redis", + "affected": [ + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v7", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis/v8", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "9.5.1" + }, + { + "fixed": "9.5.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "9.6.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "9.7.0-beta.1" + }, + { + "fixed": "9.7.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/redis/go-redis/security/advisories/GHSA-92cp-5422-2mw7" + }, + { + "type": "FIX", + "url": "https://github.com/redis/go-redis/commit/d236865b0cfa1b752ea4b7da666b1fdcd0acebb6" + }, + { + "type": "FIX", + "url": "https://github.com/redis/go-redis/pull/3295" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2025-3540", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2025-3540", + "modified": "2025-03-26T17:24:24Z", + "published": "2025-03-26T17:24:24Z", + "aliases": [ + "CVE-2025-29923", + "GHSA-92cp-5422-2mw7" + ], + "summary": "Potential out of order responses when CLIENT SETINFO times out during connection establishment in github.com/redis/go-redis", + "details": "Potential out of order responses when CLIENT SETINFO times out during connection establishment in github.com/redis/go-redis", + "affected": [ + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v7", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis/v8", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "9.5.1" + }, + { + "fixed": "9.5.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "9.6.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "9.7.0-beta.1" + }, + { + "fixed": "9.7.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/redis/go-redis/security/advisories/GHSA-92cp-5422-2mw7" + }, + { + "type": "FIX", + "url": "https://github.com/redis/go-redis/commit/d236865b0cfa1b752ea4b7da666b1fdcd0acebb6" + }, + { + "type": "FIX", + "url": "https://github.com/redis/go-redis/pull/3295" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2025-3540", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2025-3540", + "modified": "2025-03-26T17:24:24Z", + "published": "2025-03-26T17:24:24Z", + "aliases": [ + "CVE-2025-29923", + "GHSA-92cp-5422-2mw7" + ], + "summary": "Potential out of order responses when CLIENT SETINFO times out during connection establishment in github.com/redis/go-redis", + "details": "Potential out of order responses when CLIENT SETINFO times out during connection establishment in github.com/redis/go-redis", + "affected": [ + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v7", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis/v8", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + } + ] + } + ], + "ecosystem_specific": {} + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "9.5.1" + }, + { + "fixed": "9.5.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "9.6.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + }, + { + "package": { + "name": "github.com/redis/go-redis/v9", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "9.7.0-beta.1" + }, + { + "fixed": "9.7.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "github.com/redis/go-redis/v9", + "symbols": [ + "baseClient.initConn", + "redis.ClusterOptions", + "redis.FailoverOptions", + "redis.RingOptions", + "redis.UniversalOptions" + ] + } + ] + } + } + ], + "references": [ + { + "type": "ADVISORY", + "url": "https://github.com/redis/go-redis/security/advisories/GHSA-92cp-5422-2mw7" + }, + { + "type": "FIX", + "url": "https://github.com/redis/go-redis/commit/d236865b0cfa1b752ea4b7da666b1fdcd0acebb6" + }, + { + "type": "FIX", + "url": "https://github.com/redis/go-redis/pull/3295" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2025-3540", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0067", + "modified": "2024-05-20T16:03:47Z", + "published": "2021-04-14T20:04:52Z", + "aliases": [ + "CVE-2021-27919" + ], + "summary": "Panic when opening archives in archive/zip", + "details": "Using Reader.Open on an archive containing a file with a path prefixed by \"../\" will cause a panic due to a stack overflow. If parsing user supplied archives, this may be used as a denial of service vector.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "archive/zip", + "symbols": [ + "toValidName" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/300489" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/cd3b4ca9f20fd14187ed4cdfdee1a02ea87e5cd8" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/44916" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw/m/zzhWj5jPAQAJ" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0067", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0069", + "modified": "2024-05-20T16:03:47Z", + "published": "2021-04-14T20:04:52Z", + "aliases": [ + "CVE-2020-28362" + ], + "summary": "Panic during division of very large numbers in math/big", + "details": "A number of math/big.Int methods can panic when provided large inputs due to a flawed division method.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.14.0-0" + }, + { + "fixed": "1.14.12" + }, + { + "introduced": "1.15.0-0" + }, + { + "fixed": "1.15.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "math/big", + "symbols": [ + "nat.divRecursiveStep" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/269657" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/1e1fa5903b760c6714ba17e50bf850b01f49135c" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/42552" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/NpBGTTmKzpM/m/fLguyiM2CAAJ" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0069", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0142", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-01T20:11:09Z", + "aliases": [ + "CVE-2020-16845", + "GHSA-q6gq-997w-f55g" + ], + "summary": "Unbounded read from invalid inputs in encoding/binary", + "details": "ReadUvarint and ReadVarint can read an unlimited number of bytes from invalid inputs.\n\nCertain invalid inputs to ReadUvarint or ReadVarint can cause these functions to read an unlimited number of bytes from the ByteReader parameter before returning an error. This can lead to processing more input than expected when the caller is reading directly from a network and depends on ReadUvarint or ReadVarint only consuming a small, bounded number of bytes, even from invalid inputs.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.15" + }, + { + "introduced": "1.14.0-0" + }, + { + "fixed": "1.14.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "encoding/binary", + "symbols": [ + "ReadUvarint", + "ReadVarint" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/247120" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/027d7241ce050d197e7fabea3d541ffbe3487258" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/40618" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/NyPIaucMgXo" + } + ], + "credits": [ + { + "name": "Diederik Loerakker" + }, + { + "name": "Jonny Rhea" + }, + { + "name": "Ra\u00fal Kripalani" + }, + { + "name": "Preston Van Loon" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0142", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0154", + "modified": "2024-06-03T20:51:31Z", + "published": "2022-05-25T21:11:41Z", + "aliases": [ + "CVE-2014-7189" + ], + "summary": "Man-in-the-middle attack with SessionTicketsDisabled in crypto/tls", + "details": "When SessionTicketsDisabled is enabled, crypto/tls allowed man-in-the-middle attackers to spoof clients via unspecified vectors.\n\nIf the server enables TLS client authentication using certificates (this is rare) and explicitly sets SessionTicketsDisabled to true in the tls.Config, then a malicious client can falsely assert ownership of any client certificate it wishes.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.1.0-0" + }, + { + "fixed": "1.3.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/tls", + "symbols": [ + "checkForResumption", + "decryptTicket" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/148080043" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53085" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-nuts/c/eeOHNw_shwU/m/OHALUmroA5kJ" + } + ], + "credits": [ + { + "name": "Go Team" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0154", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0159", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-01-05T21:39:14Z", + "aliases": [ + "CVE-2015-5739", + "CVE-2015-5740", + "CVE-2015-5741" + ], + "summary": "Request smuggling due to improper header parsing in net/http", + "details": "HTTP headers were not properly parsed, which allows remote attackers to conduct HTTP request smuggling attacks via a request that contains Content-Length and Transfer-Encoding header fields.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.4.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "CanonicalMIMEHeaderKey", + "body.readLocked", + "canonicalMIMEHeaderKey", + "chunkWriter.writeHeader", + "fixLength", + "fixTransferEncoding", + "readTransfer", + "transferWriter.shouldSendContentLength", + "validHeaderFieldByte" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/13148" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/26049f6f9171d1190f3bbe05ec304845cfe6399f" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/11772" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/11810" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/12865" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/117ddcb83d7f42d6aa72241240af99ded81118e9" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/300d9a21583e7cf0149a778a0611e76ff7c6680f" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/c2db5f4ccc61ba7df96a747e268a277b802cbb87" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/12027" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/11930" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/iSIyW4lM4hY/m/ADuQR4DiDwAJ" + } + ], + "credits": [ + { + "name": "Jed Denlea" + }, + { + "name": "R\u00e9gis Leroy" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0159", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0160", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-01-05T15:31:16Z", + "aliases": [ + "CVE-2015-8618" + ], + "summary": "Incorrect calculation affecting RSA computations in math/big", + "details": "Int.Exp Montgomery mishandled carry propagation and produced an incorrect output, which makes it easier for attackers to obtain private RSA keys via unspecified vectors.\n\nThis issue can affect RSA computations in crypto/rsa, which is used by crypto/tls. TLS servers on 32-bit systems could plausibly leak their RSA private key due to this issue. Other protocol implementations that create many RSA signatures could also be impacted in the same way.\n\nSpecifically, incorrect results in one part of the RSA Chinese Remainder computation can cause the result to be incorrect in such a way that it leaks one of the primes. While RSA blinding should prevent an attacker from crafting specific inputs that trigger the bug, on 32-bit systems the bug can be expected to occur at random around one in 2^26 times. Thus collecting around 64 million signatures (of known data) from an affected server should be enough to extract the private key used.\n\nNote that on 64-bit systems, the frequency of the bug is so low (less than one in 2^50) that it would be very difficult to exploit.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.5.0-0" + }, + { + "fixed": "1.5.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "math/big", + "symbols": [ + "nat.expNNMontgomery", + "nat.montgomery" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/18491" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/1e066cad1ba23f4064545355b8737e4762dd6838" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/4306352182bf94f86f0cfc6a8b0ed461cbf1d82c" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/17672" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/13515" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/MEATuOi_ei4" + } + ], + "credits": [ + { + "name": "Nick Craig-Wood" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0160", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0163", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-01-05T22:41:50Z", + "aliases": [ + "CVE-2016-3958" + ], + "summary": "Privilege escalation on Windows via malicious DLL in syscall", + "details": "Untrusted search path vulnerability on Windows related to LoadLibrary allows local users to gain privileges via a malicious DLL in the current working directory.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.5.4" + }, + { + "introduced": "1.6.0-0" + }, + { + "fixed": "1.6.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "syscall", + "symbols": [ + "LoadLibrary" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/21428" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/6a0bb87bd0bf0fdf8ddbd35f77a75ebd412f61b0" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/14959" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/9eqIHqaWvck" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0163", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0172", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-15T23:56:14Z", + "aliases": [ + "CVE-2017-1000098" + ], + "summary": "Denial of service when parsing large forms in mime/multipart", + "details": "When parsing large multipart/form-data, an attacker can cause a HTTP server to open a large number of file descriptors. This may be used as a denial-of-service vector.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.6.4" + }, + { + "introduced": "1.7.0-0" + }, + { + "fixed": "1.7.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "mime/multipart", + "symbols": [ + "Reader.readForm" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/30410" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/7478ea5dba7ed02ddffd91c1d17ec8141f7cf184" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/16296" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-dev/c/4NdLzS8sls8/m/uIz8QlnIBQAJ" + } + ], + "credits": [ + { + "name": "Simon Rawet" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0172", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0178", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-01-07T20:35:00Z", + "aliases": [ + "CVE-2017-15042" + ], + "summary": "Cleartext transmission of credentials in net/smtp", + "details": "SMTP clients using net/smtp can use the PLAIN authentication scheme on network connections not secured with TLS, exposing passwords to man-in-the-middle SMTP servers.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.1.0-0" + }, + { + "fixed": "1.8.4" + }, + { + "introduced": "1.9.0-0" + }, + { + "fixed": "1.9.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/smtp", + "symbols": [ + "plainAuth.Start" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/68170" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/ec3b6131de8f9c9c25283260c95c616c74f6d790" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/22134" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-dev/c/RinSE3EiJBI/m/kYL7zb07AgAJ" + } + ], + "credits": [ + { + "name": "Stevie Johnstone" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0178", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0223", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:46:03Z", + "aliases": [ + "CVE-2020-14039" + ], + "summary": "Certificate verification error on Windows in crypto/x509", + "details": "On Windows, if VerifyOptions.Roots is nil, Certificate.Verify does not check the EKU requirements specified in VerifyOptions.KeyUsages. This may allow a certificate to be used for an unintended purpose.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.13" + }, + { + "introduced": "1.14.0-0" + }, + { + "fixed": "1.14.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/x509", + "goos": [ + "windows" + ], + "symbols": [ + "Certificate.systemVerify" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/242597" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/82175e699a2e2cd83d3aa34949e9b922d66d52f5" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/39360" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/XZNfaiwgt2w" + } + ], + "credits": [ + { + "name": "Niall Newman" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0223", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0224", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:36:04Z", + "aliases": [ + "CVE-2020-15586" + ], + "summary": "Data race and crash in net/http", + "details": "HTTP servers where the Handler concurrently reads the request body and writes a response can encounter a data race and crash. The httputil.ReverseProxy Handler is affected.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.13.13" + }, + { + "introduced": "1.14.0-0" + }, + { + "fixed": "1.14.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "expectContinueReader.Read" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/242598" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/fa98f46741f818913a8c11b877520a548715131f" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/34902" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/XZNfaiwgt2w" + } + ], + "credits": [ + { + "name": "Mikael Manukyan" + }, + { + "name": "Andrew Kutz" + }, + { + "name": "Dave McClure" + }, + { + "name": "Tim Downey" + }, + { + "name": "Clay Kauzlaric" + }, + { + "name": "Gabe Rosenhouse" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0224", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0226", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-01-13T03:44:58Z", + "aliases": [ + "CVE-2020-24553" + ], + "summary": "Cross-site scripting in net/http/cgi and net/http/fcgi", + "details": "When a Handler does not explicitly set the Content-Type header, the the package would default to \u201ctext/html\u201d, which could cause a Cross-Site Scripting vulnerability if an attacker can control any part of the contents of a response.\n\nThe Content-Type header is now set based on the contents of the first Write using http.DetectContentType, which is consistent with the behavior of the net/http package.\n\nAlthough this protects some applications that validate the contents of uploaded files, not setting the Content-Type header explicitly on any attacker-controlled file is unsafe and should be avoided.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.14.8" + }, + { + "introduced": "1.15.0-0" + }, + { + "fixed": "1.15.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http/cgi", + "symbols": [ + "response.Write", + "response.WriteHeader", + "response.writeCGIHeader" + ] + }, + { + "path": "net/http/fcgi", + "symbols": [ + "response.Write", + "response.WriteHeader", + "response.writeCGIHeader" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/252179" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/4f5cd0c0331943c7ec72df3b827d972584f77833" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/8wqlSbkLdPs" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/40928" + } + ], + "credits": [ + { + "name": "RedTeam Pentesting GmbH" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0226", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0234", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:34:24Z", + "aliases": [ + "CVE-2021-27918" + ], + "summary": "Infinite loop when decoding inputs in encoding/xml", + "details": "The Decode, DecodeElement, and Skip methods of an xml.Decoder provided by xml.NewTokenDecoder may enter an infinite loop when operating on a custom xml.TokenReader which returns an EOF in the middle of an open XML element.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.15.9" + }, + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "encoding/xml", + "symbols": [ + "Decoder.Token" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/300391" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/d0b79e3513a29628f3599dc8860666b6eed75372" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/44913" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/MfiLYjG-RAw" + } + ], + "credits": [ + { + "name": "Sam Whited" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0234", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0235", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:34:14Z", + "aliases": [ + "CVE-2021-3114" + ], + "summary": "Incorrect operations on the P-224 curve in crypto/elliptic", + "details": "The P224() Curve implementation can in rare circumstances generate incorrect outputs, including returning invalid points from ScalarMult.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.14.14" + }, + { + "introduced": "1.15.0-0" + }, + { + "fixed": "1.15.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/elliptic", + "symbols": [ + "p224Contract" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/284779" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/d95ca9138026cbe40e0857d76a81a16d03230871" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/43786" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/mperVMGa98w" + } + ], + "credits": [ + { + "name": "The elliptic-curve-differential-fuzzer project running on OSS-Fuzz" + }, + { + "name": "Philippe Antoine (Catena cyber)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0235", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0239", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:33:35Z", + "aliases": [ + "CVE-2021-33195" + ], + "summary": "Improper sanitization when resolving values from DNS in net", + "details": "The LookupCNAME, LookupSRV, LookupMX, LookupNS, and LookupAddr functions and their respective methods on the Resolver type may return arbitrary values retrieved from DNS which do not follow the established RFC 1035 rules for domain names. If these names are used without further sanitization, for instance unsafely included in HTML, they may allow for injection of unexpected content. Note that LookupTXT may still return arbitrary values that could require sanitization before further use.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.15.13" + }, + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net", + "symbols": [ + "Resolver.LookupAddr", + "Resolver.LookupCNAME", + "Resolver.LookupMX", + "Resolver.LookupNS", + "Resolver.LookupSRV" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/320949" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/c89f1224a544cde464fcb86e78ebb0cc97eedba2" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/46241" + } + ], + "credits": [ + { + "name": "Philipp Jeitner" + }, + { + "name": "Haya Shulman from Fraunhofer SIT" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0239", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0240", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:33:25Z", + "aliases": [ + "CVE-2021-33196" + ], + "summary": "Panic when reading certain archives in archive/zip", + "details": "NewReader and OpenReader can cause a panic or an unrecoverable fatal error when reading an archive that claims to contain a large number of files, regardless of its actual size.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.15.13" + }, + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "archive/zip", + "symbols": [ + "Reader.init" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/318909" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/74242baa4136c7a9132a8ccd9881354442788c8c" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/46242" + } + ], + "credits": [ + { + "name": "OSS-Fuzz (discovery)" + }, + { + "name": "Emmanuel Odeke (reporter)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0240", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0241", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:33:16Z", + "aliases": [ + "CVE-2021-33197" + ], + "summary": "Attacker can drop certain headers in net/http/httputil", + "details": "ReverseProxy can be made to forward certain hop-by-hop headers, including Connection. If the target of the ReverseProxy is itself a reverse proxy, this lets an attacker drop arbitrary headers, including those set by the ReverseProxy.Director.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.15.13" + }, + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http/httputil", + "symbols": [ + "ReverseProxy.ServeHTTP" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/321929" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/950fa11c4cb01a145bb07eeb167d90a1846061b3" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/46313" + } + ], + "credits": [ + { + "name": "Mattias Grenfeldt (https://grenfeldt.dev)" + }, + { + "name": "Asta Olofsson" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0241", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0242", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:33:07Z", + "aliases": [ + "CVE-2021-33198" + ], + "summary": "Panic on inputs with large exponents in math/big", + "details": "Rat.SetString and Rat.UnmarshalText may cause a panic or an unrecoverable fatal error if passed inputs with very large exponents.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.15.13" + }, + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "math/big", + "symbols": [ + "Rat.SetString" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/316149" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/6c591f79b0b5327549bd4e94970f7a279efb4ab0" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/RgCMkAEQjSI" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/45910" + } + ], + "credits": [ + { + "name": "The OSS-Fuzz project (discovery)" + }, + { + "name": "Emmanuel Odeke (reporter)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0242", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0243", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:32:57Z", + "aliases": [ + "CVE-2021-34558" + ], + "summary": "Panic on certain certificates in crypto/tls", + "details": "crypto/tls clients can panic when provided a certificate of the wrong type for the negotiated parameters. net/http clients performing HTTPS requests are also affected.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.15.14" + }, + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.6" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/tls", + "symbols": [ + "rsaKeyAgreement.generateClientKeyExchange" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/334031" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/a98589711da5e9d935e8d690cfca92892e86d557" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/n9FxMelZGAQ" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/47143" + } + ], + "credits": [ + { + "name": "Imre Rad" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0243", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0245", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-02-17T17:32:24Z", + "aliases": [ + "CVE-2021-36221" + ], + "summary": "Panic in ReverseProxy in net/http/httputil", + "details": "ReverseProxy can panic after encountering a problem copying a proxied response body.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.15.15" + }, + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http/httputil", + "symbols": [ + "ReverseProxy.ServeHTTP" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/333191" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/b7a85e0003cedb1b48a1fd3ae5b746ec6330102e" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/uHACNfXAZqk" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/46866" + } + ], + "credits": [ + { + "name": "Andrew Crump" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0245", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0263", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-01-13T03:45:03Z", + "aliases": [ + "CVE-2021-41771" + ], + "summary": "Panic on invalid symbol tables in debug/macho", + "details": "Calling File.ImportedSymbols on a loaded file which contains an invalid dynamic symbol table command can cause a panic, in particular if the encoded number of undefined symbols is larger than the number of symbols in the symbol table.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.10" + }, + { + "introduced": "1.17.0-0" + }, + { + "fixed": "1.17.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "debug/macho", + "symbols": [ + "NewFile" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/367075" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/61536ec03063b4951163bd09609c86d82631fa27" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/0fM21h43arc" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/48990" + } + ], + "credits": [ + { + "name": "Burak \u00c7ar\u0131k\u00e7\u0131 - Yunus Y\u0131ld\u0131r\u0131m (CT-Zer0 Crypttech)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0263", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0264", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-01-13T20:54:43Z", + "aliases": [ + "CVE-2021-41772" + ], + "summary": "Panic when opening certain archives in archive/zip", + "details": "Previously, opening a zip with (*Reader).Open could result in a panic if the zip contained a file whose name was exclusively made up of slash characters or \"..\" path elements.\n\nOpen could also panic if passed the empty string directly as an argument.\n\nNow, any files in the zip whose name could not be made valid for fs.FS.Open will be skipped, and no longer added to the fs.FS file list, although they are still accessible through (*Reader).File.\n\nNote that it was already the case that a file could be accessible from (*Reader).Open with a name different from the one in (*Reader).File, as the former is the cleaned name, while the latter is the original one.\n\nFinally, the actual panic site was made robust as a defense-in-depth measure.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.10" + }, + { + "introduced": "1.17.0-0" + }, + { + "fixed": "1.17.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "archive/zip", + "symbols": [ + "Reader.Open", + "split" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/349770" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/b24687394b55a93449e2be4e6892ead58ea9a10f" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/0fM21h43arc" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/48085" + } + ], + "credits": [ + { + "name": "Colin Arnott (SiteHost)" + }, + { + "name": "Noah Santschi-Cooney (Sourcegraph Code Intelligence Team)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0264", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0317", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-23T22:15:42Z", + "aliases": [ + "CVE-2022-23772" + ], + "summary": "Uncontrolled memory consumption in math/big", + "details": "Rat.SetString had an overflow issue that can lead to uncontrolled memory consumption.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.14" + }, + { + "introduced": "1.17.0-0" + }, + { + "fixed": "1.17.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "math/big", + "symbols": [ + "Rat.SetString" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/379537" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/ad345c265916bbf6c646865e4642eafce6d39e78" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/SUsQn0aSgPQ" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/50699" + } + ], + "credits": [ + { + "name": "Emmanuel Odeke" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0317", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0319", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-23T22:15:21Z", + "aliases": [ + "CVE-2022-23806" + ], + "summary": "Incorrect computation for some invalid field elements in crypto/elliptic", + "details": "Some big.Int values that are not valid field elements (negative or overflowing) might cause Curve.IsOnCurve to incorrectly return true. Operating on those values may cause a panic or an invalid curve operation. Note that Unmarshal will never return such values.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.14" + }, + { + "introduced": "1.17.0-0" + }, + { + "fixed": "1.17.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/elliptic", + "symbols": [ + "CurveParams.IsOnCurve", + "p384PointFromAffine", + "p521PointFromAffine" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/382455" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/7f9494c277a471f6f47f4af3036285c0b1419816" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/SUsQn0aSgPQ" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/50974" + } + ], + "credits": [ + { + "name": "Guido Vranken" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0319", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2021-0347", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-23T22:15:47Z", + "aliases": [ + "CVE-2022-24921" + ], + "summary": "Stack exhaustion when compiling deeply nested expressions in regexp", + "details": "On 64-bit platforms, an extremely deeply nested expression can cause regexp.Compile to cause goroutine stack exhaustion, forcing the program to exit. Note this applies to very large expressions, on the order of 2MB.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.15" + }, + { + "introduced": "1.17.0-0" + }, + { + "fixed": "1.17.8" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "regexp", + "symbols": [ + "regexp.Compile" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/384616" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/452f24ae94f38afa3704d4361d91d51218405c0a" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/51112" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/RP1hfrBYVuk" + } + ], + "credits": [ + { + "name": "Juho Nurminen" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2021-0347", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0166", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-24T22:06:33Z", + "aliases": [ + "CVE-2016-3959" + ], + "summary": "Denial of service due to unchecked parameters in crypto/dsa", + "details": "The Verify function in crypto/dsa passed certain parameters unchecked to the underlying big integer library, possibly leading to extremely long-running computations, which in turn makes Go programs vulnerable to remote denial of service attacks. Programs using HTTPS client certificates or the Go SSH server libraries are both exposed to this vulnerability.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.5.4" + }, + { + "introduced": "1.6.0-0" + }, + { + "fixed": "1.6.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/dsa", + "symbols": [ + "Verify" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/21533" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/eb876dd83cb8413335d64e50aae5d38337d1ebb4" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/15184" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/9eqIHqaWvck" + } + ], + "credits": [ + { + "name": "David Wong" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0166", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0171", + "modified": "2024-06-03T20:51:31Z", + "published": "2022-05-24T20:17:59Z", + "aliases": [ + "CVE-2017-1000097" + ], + "summary": "Mishandled trust preferences for root certificates on Darwin in crypto/x509", + "details": "On Darwin, user's trust preferences for root certificates were not honored. If the user had a root certificate loaded in their Keychain that was explicitly not trusted, a Go program would still verify a connection using that root certificate.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.6.4" + }, + { + "introduced": "1.7.0-0" + }, + { + "fixed": "1.7.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/x509", + "goos": [ + "darwin" + ], + "symbols": [ + "FetchPEMRoots", + "execSecurityRoots" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/7e5b2e0ec144d5f5b2923a7d5db0b9143f79a35a" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/18141" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-dev/c/4NdLzS8sls8/m/uIz8QlnIBQAJ" + } + ], + "credits": [ + { + "name": "Xy Ziemba" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0171", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0187", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-01T20:11:15Z", + "aliases": [ + "CVE-2017-8932" + ], + "summary": "Incorrect computation for P-256 curves in crypto/elliptic", + "details": "The ScalarMult implementation of curve P-256 for amd64 architectures generates incorrect results for certain specific input points. An adaptive attack can progressively extract the scalar input to ScalarMult by submitting crafted points and observing failures to derive correct output. This leads to a full key recovery attack against static ECDH, as used in popular JWT libraries.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.6.0-0" + }, + { + "fixed": "1.7.6" + }, + { + "introduced": "1.8.0-0" + }, + { + "fixed": "1.8.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/elliptic", + "goarch": [ + "amd64" + ], + "symbols": [ + "p256SubInternal" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/41070" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/9294fa2749ffee7edbbb817a0ef9fe633136fa9c" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/20040" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/B5ww0iFt1_Q/m/TgUFJV14BgAJ" + } + ], + "credits": [ + { + "name": "Vlad Krasnov" + }, + { + "name": "Filippo Valsorda at Cloudflare" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0187", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0191", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-15T23:03:26Z", + "aliases": [ + "CVE-2018-16875" + ], + "summary": "Denial of service in chain verification in crypto/x509", + "details": "The crypto/x509 package does not limit the amount of work performed for each chain verification, which might allow attackers to craft pathological inputs leading to a CPU denial of service. Go TLS servers accepting client certificates and TLS clients verifying certificates are affected.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.10.6" + }, + { + "introduced": "1.11.0-0" + }, + { + "fixed": "1.11.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/x509", + "symbols": [ + "CertPool.findVerifiedParents", + "Certificate.buildChains" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/154105" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/770130659b6fb2acf271476579a3644e093dda7f" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/29233" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Kw31K8G7Fi0" + } + ], + "credits": [ + { + "name": "Netflix" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0191", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0211", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-01T20:15:30Z", + "aliases": [ + "CVE-2019-14809" + ], + "summary": "Incorrect parsing validation in net/url", + "details": "The url.Parse function accepts URLs with malformed hosts, such that the Host field can have arbitrary suffixes that appear in neither Hostname() nor Port(), allowing authorization bypasses in certain applications.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.11.13" + }, + { + "introduced": "1.12.0-0" + }, + { + "fixed": "1.12.8" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/url", + "symbols": [ + "URL.Hostname", + "URL.Port", + "parseHost" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/189258" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/61bb56ad63992a3199acc55b2537c8355ef887b6" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/29098" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/65QixT3tcmg" + } + ], + "credits": [ + { + "name": "Julian Hector" + }, + { + "name": "Nikolai Krein from Cure53" + }, + { + "name": "Adi Cohen (adico.me)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0211", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0212", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-23T22:46:20Z", + "aliases": [ + "CVE-2019-16276" + ], + "summary": "Request smuggling due to accepting invalid headers in net/http via net/textproto", + "details": "net/http (through net/textproto) used to accept and normalize invalid HTTP/1.1 headers with a space before the colon, in violation of RFC 7230.\n\nIf a Go server is used behind an uncommon reverse proxy that accepts and forwards but doesn't normalize such invalid headers, the reverse proxy and the server can interpret the headers differently. This can lead to filter bypasses or request smuggling, the latter if requests from separate clients are multiplexed onto the same upstream connection by the proxy. Such invalid headers are now rejected by Go servers, and passed without normalization to Go client applications.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.12.10" + }, + { + "introduced": "1.13.0-0" + }, + { + "fixed": "1.13.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/textproto", + "symbols": [ + "Reader.ReadMimeHeader" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/197503" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/41b1f88efab9d263408448bf139659119002ea50" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/34540" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/cszieYyuL9Q/m/g4Z7pKaqAgAJ" + } + ], + "credits": [ + { + "name": "Andrew Stucki (99designs.com)" + }, + { + "name": "Adam Scarr (99designs.com)" + }, + { + "name": "Jan Masarik (masarik.sh)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0212", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0213", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-24T20:14:11Z", + "aliases": [ + "CVE-2019-17596" + ], + "summary": "Panic on invalid DSA public keys in crypto/dsa", + "details": "Invalid DSA public keys can cause a panic in dsa.Verify. In particular, using crypto/x509.Verify on a crafted X.509 certificate chain can lead to a panic, even if the certificates don't chain to a trusted root. The chain can be delivered via a crypto/tls connection to a client, or to a server that accepts and verifies client certificates. net/http clients can be made to crash by an HTTPS server, while net/http servers that accept client certificates will recover the panic and are unaffected.\n\nMoreover, an application might crash invoking crypto/x509.(*CertificateRequest).CheckSignature on an X.509 certificate request, parsing a golang.org/x/crypto/openpgp Entity, or during a golang.org/x/crypto/otr conversation. Finally, a golang.org/x/crypto/ssh client can panic due to a malformed host key, while a server could panic if either PublicKeyCallback accepts a malformed public key, or if IsUserAuthority accepts a certificate with a malformed public key.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.12.11" + }, + { + "introduced": "1.13.0-0" + }, + { + "fixed": "1.13.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/dsa", + "symbols": [ + "Verify" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/205441" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/552987fdbf4c2bc9641016fd323c3ae5d3a0d9a3" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/34960" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/lVEm7llp0w0/m/VbafyRkgCgAJ" + } + ], + "credits": [ + { + "name": "Daniel M" + }, + { + "name": "ragona" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0213", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0217", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-24T15:21:01Z", + "aliases": [ + "CVE-2019-6486" + ], + "summary": "Denial of service affecting P-521 and P-384 curves in crypto/elliptic", + "details": "A DoS vulnerability in the crypto/elliptic implementations of the P-521 and P-384 elliptic curves may let an attacker craft inputs that consume excessive amounts of CPU.\n\nThese inputs might be delivered via TLS handshakes, X.509 certificates, JWT tokens, ECDH shares or ECDSA signatures. In some cases, if an ECDH private key is reused more than once, the attack can also lead to key recovery.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.10.8" + }, + { + "introduced": "1.11.0-0" + }, + { + "fixed": "1.11.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/elliptic", + "symbols": [ + "curve.doubleJacobian" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/159218" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/193c16a3648b8670a762e925b6ac6e074f468a20" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/29903" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/mVeX35iXuSw" + } + ], + "credits": [ + { + "name": "Wycheproof Project" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0217", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0220", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-25T18:01:46Z", + "aliases": [ + "CVE-2019-9634" + ], + "summary": "DLL injection on Windows in runtime and syscall", + "details": "Go on Windows misused certain LoadLibrary functionality, leading to DLL injection.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.11.10" + }, + { + "introduced": "1.12.0-0" + }, + { + "fixed": "1.12.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "runtime", + "goos": [ + "windows" + ] + }, + { + "path": "syscall", + "goos": [ + "windows" + ], + "symbols": [ + "LoadDLL" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/165798" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/9b6e9f0c8c66355c0f0575d808b32f52c8c6d21c" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/28978" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/z9eTD34GEIs/m/Z_XmhTrVAwAJ" + } + ], + "credits": [ + { + "name": "Samuel Cochran" + }, + { + "name": "Jason Donenfeld" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0220", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0229", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-06T18:23:48Z", + "aliases": [ + "CVE-2020-7919", + "GHSA-cjjc-xp8v-855w" + ], + "summary": "Panic in certificate parsing in crypto/x509 and golang.org/x/crypto/cryptobyte", + "details": "On 32-bit architectures, a malformed input to crypto/x509 or the ASN.1 parsing functions of golang.org/x/crypto/cryptobyte can lead to a panic.\n\nThe malformed certificate can be delivered via a crypto/tls connection to a client, or to a server that accepts client certificates. net/http clients can be made to crash by an HTTPS server, while net/http servers that accept client certificates will recover the panic and are unaffected.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.12.16" + }, + { + "introduced": "1.13.0-0" + }, + { + "fixed": "1.13.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/x509" + } + ] + } + }, + { + "package": { + "name": "golang.org/x/crypto", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20200124225646-8b5121be2f68" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/crypto/cryptobyte" + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/216680" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/b13ce14c4a6aa59b7b041ad2b6eed2d23e15b574" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/216677" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/36837" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Hsw4mHYc470" + } + ], + "credits": [ + { + "name": "Project Wycheproof" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0229", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0236", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-15T23:04:18Z", + "aliases": [ + "CVE-2021-31525", + "GHSA-h86h-8ppg-mxmh" + ], + "summary": "Panic due to large headers in net/http and golang.org/x/net/http/httpguts", + "details": "A malicious HTTP server or client can cause the net/http client or server to panic.\n\nReadRequest and ReadResponse can hit an unrecoverable panic when reading a very large header (over 7MB on 64-bit architectures, or over 4MB on 32-bit ones). Transport and Client are vulnerable and the program can be made to crash by a malicious server. Server is not vulnerable by default, but can be if the default max header of 1MB is overridden by setting Server.MaxHeaderBytes to a higher value, in which case the program can be made to crash by a malicious client.\n\nThis also affects golang.org/x/net/http2/h2c and HeaderValuesContainsToken in golang.org/x/net/http/httpguts.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.15.12" + }, + { + "introduced": "1.16.0-0" + }, + { + "fixed": "1.16.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "http2clientStream.writeRequest", + "http2isConnectionCloseRequest", + "isProtocolSwitchHeader", + "shouldClose" + ] + } + ] + } + }, + { + "package": { + "name": "golang.org/x/net", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20210428140749-89ef3d95e781" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/net/http/httpguts", + "symbols": [ + "HeaderValuesContainsToken", + "headerValueContainsToken" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/313069" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/net/+/89ef3d95e781148a0951956029c92a211477f7f9" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/45710" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/cu9SP4eSXMc" + } + ], + "credits": [ + { + "name": "Guido Vranken" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0236", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0273", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-18T18:23:31Z", + "aliases": [ + "CVE-2021-39293" + ], + "summary": "Panic due to crafted inputs in archive/zip", + "details": "The NewReader and OpenReader functions in archive/zip can cause a panic or an unrecoverable fatal error when reading an archive that claims to contain a large number of files, regardless of its actual size. This is caused by an incomplete fix for CVE-2021-33196.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.8" + }, + { + "introduced": "1.17.0-0" + }, + { + "fixed": "1.17.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "archive/zip", + "symbols": [ + "NewReader", + "OpenReader" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/343434" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/bacbc33439b124ffd7392c91a5f5d96eca8c0c0b" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/47801" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/dx9d7IOseHw" + } + ], + "credits": [ + { + "name": "OSS-Fuzz Project" + }, + { + "name": "Emmanuel Odeke" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0273", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0288", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-15T23:08:33Z", + "aliases": [ + "CVE-2021-44716", + "GHSA-vc3p-29h2-gpcp" + ], + "summary": "Unbounded memory growth in net/http and golang.org/x/net/http2", + "details": "An attacker can cause unbounded memory growth in servers accepting HTTP/2 requests.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.12" + }, + { + "introduced": "1.17.0-0" + }, + { + "fixed": "1.17.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "http2serverConn.canonicalHeader" + ] + } + ] + } + }, + { + "package": { + "name": "golang.org/x/net", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20211209124913-491a49abca63" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/net/http2", + "symbols": [ + "Server.ServeConn", + "serverConn.canonicalHeader" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/369794" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/50058" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/hcmEScgc00k" + } + ], + "credits": [ + { + "name": "murakmii" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0288", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0289", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-18T18:23:23Z", + "aliases": [ + "CVE-2021-44717" + ], + "summary": "Misdirected I/O in syscall", + "details": "When a Go program running on a Unix system is out of file descriptors and calls syscall.ForkExec (including indirectly by using the os/exec package), syscall.ForkExec can close file descriptor 0 as it fails. If this happens (or can be provoked) repeatedly, it can result in misdirected I/O such as writing network traffic intended for one connection to a different connection, or content intended for one file to a different one.\n\nFor users who cannot immediately update to the new release, the bug can be mitigated by raising the per-process file descriptor limit.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.16.12" + }, + { + "introduced": "1.17.0-0" + }, + { + "fixed": "1.17.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "syscall", + "symbols": [ + "ForkExec" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/370576" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/a76511f3a40ea69ee4f5cd86e735e1c8a84f0aa2" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/50057" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/hcmEScgc00k" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/370577" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/370795" + } + ], + "credits": [ + { + "name": "Tomasz Maczukin" + }, + { + "name": "Kamil Trzci\u0144ski of GitLab" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0289", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0433", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-20T21:17:25Z", + "aliases": [ + "CVE-2022-24675" + ], + "summary": "Stack overflow from a large amount of PEM data in encoding/pem", + "details": "encoding/pem in Go before 1.17.9 and 1.18.x before 1.18.1 has a Decode stack overflow via a large amount of PEM data.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.9" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "encoding/pem", + "symbols": [ + "Decode" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/399820" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/45c3387d777caf28f4b992ad9a6216e3085bb8fe" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/51853" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/oecdBNLOml8" + } + ], + "credits": [ + { + "name": "Juho Nurminen of Mattermost" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0433", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0434", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-23T21:59:00Z", + "aliases": [ + "CVE-2022-27536" + ], + "summary": "Panic during certificate parsing on Darwin in crypto/x509", + "details": "Verifying certificate chains containing certificates which are not compliant with RFC 5280 causes Certificate.Verify to panic on macOS.\n\nThese chains can be delivered through TLS and can cause a crypto/tls or net/http client to crash.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/x509", + "goos": [ + "darwin" + ], + "symbols": [ + "Certificate.Verify" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/393655" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/0fca8a8f25cf4636fd980e72ba0bded4230922de" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/51759" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/oecdBNLOml8" + } + ], + "credits": [ + { + "name": "Tailscale" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0434", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0435", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-05-20T21:17:46Z", + "aliases": [ + "CVE-2022-28327" + ], + "summary": "Panic due to large inputs affecting P-256 curves in crypto/elliptic", + "details": "A crafted scalar input longer than 32 bytes can cause P256().ScalarMult or P256().ScalarBaseMult to panic. Indirect uses through crypto/ecdsa and crypto/tls are unaffected. amd64, arm64, ppc64le, and s390x are unaffected.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.9" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/elliptic", + "symbols": [ + "CurveParams.ScalarBaseMult", + "CurveParams.ScalarMult", + "p256Curve.CombinedMult", + "p256Curve.ScalarBaseMult", + "p256Curve.ScalarMult", + "p256GetScalar" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/397135" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/37065847d87df92b5eb246c88ba2085efcf0b331" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/52075" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/oecdBNLOml8" + } + ], + "credits": [ + { + "name": "Project Wycheproof" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0435", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0477", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-06-09T01:43:37Z", + "aliases": [ + "CVE-2022-30634" + ], + "summary": "Indefinite hang with large buffers on Windows in crypto/rand", + "details": "On Windows, rand.Read will hang indefinitely if passed a buffer larger than 1 << 32 - 1 bytes.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.11" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/rand", + "goos": [ + "windows" + ], + "symbols": [ + "Read" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/402257" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/bb1f4416180511231de6d17a1f2f55c82aafc863" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/52561" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ" + } + ], + "credits": [ + { + "name": "Davis Goodin" + }, + { + "name": "Quim Muntal of Microsoft" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0477", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0493", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-15T23:30:12Z", + "aliases": [ + "CVE-2022-29526", + "GHSA-p782-xgp4-8hr8" + ], + "summary": "Incorrect privilege reporting in syscall and golang.org/x/sys/unix", + "details": "When called with a non-zero flags parameter, the Faccessat function can incorrectly report that a file is accessible.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.10" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "syscall", + "symbols": [ + "Faccessat" + ] + } + ] + } + }, + { + "package": { + "name": "golang.org/x/sys", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20220412211240-33da011f77ad" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/sys/unix", + "symbols": [ + "Faccessat" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/399539" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/52313" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/400074" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Y5qrqw_lWdU" + } + ], + "credits": [ + { + "name": "Jo\u00ebl G\u00e4hwiler (@256dpi)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0493", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0515", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-20T17:01:45Z", + "aliases": [ + "CVE-2022-1962" + ], + "summary": "Stack exhaustion due to deeply nested types in go/parser", + "details": "Calling any of the Parse functions on Go source code which contains deeply nested types or declarations can cause a panic due to stack exhaustion.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go/parser", + "symbols": [ + "ParseExprFrom", + "ParseFile", + "parser.parseBinaryExpr", + "parser.parseIfStmt", + "parser.parsePrimaryExpr", + "parser.parseStmt", + "parser.parseUnaryExpr", + "parser.tryIdentOrType", + "resolver.closeScope", + "resolver.openScope" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/417063" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/695be961d57508da5a82217f7415200a11845879" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53616" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "credits": [ + { + "name": "Juho Nurminen of Mattermost" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0515", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0520", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-28T17:23:05Z", + "aliases": [ + "CVE-2022-32148" + ], + "summary": "Exposure of client IP addresses in net/http", + "details": "Client IP adresses may be unintentionally exposed via X-Forwarded-For headers.\n\nWhen httputil.ReverseProxy.ServeHTTP is called with a Request.Header map containing a nil value for the X-Forwarded-For header, ReverseProxy sets the client IP as the value of the X-Forwarded-For header, contrary to its documentation.\n\nIn the more usual case where a Director function sets the X-Forwarded-For header value to nil, ReverseProxy leaves the header unmodified as expected.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "Header.Clone" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/412857" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/b2cc0fecc2ccd80e6d5d16542cc684f97b3a9c8a" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53423" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "credits": [ + { + "name": "Christian Mehlmauer" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0520", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0521", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-20T17:02:04Z", + "aliases": [ + "CVE-2022-28131" + ], + "summary": "Stack exhaustion from deeply nested XML documents in encoding/xml", + "details": "Calling Decoder.Skip when parsing a deeply nested XML document can cause a panic due to stack exhaustion.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "encoding/xml", + "symbols": [ + "Decoder.Skip" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/417062" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/08c46ed43d80bbb67cb904944ea3417989be4af3" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53614" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "credits": [ + { + "name": "Go Security Team" + }, + { + "name": "Juho Nurminen of Mattermost" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0521", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0522", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-20T17:02:29Z", + "aliases": [ + "CVE-2022-30632" + ], + "summary": "Stack exhaustion on crafted paths in path/filepath", + "details": "Calling Glob on a path which contains a large number of path separators can cause a panic due to stack exhaustion.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "path/filepath", + "symbols": [ + "Glob" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/417066" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/ac68c6c683409f98250d34ad282b9e1b0c9095ef" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53416" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "credits": [ + { + "name": "Juho Nurminen of Mattermost" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0522", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0523", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-20T20:52:06Z", + "aliases": [ + "CVE-2022-30633" + ], + "summary": "Stack exhaustion when unmarshaling certain documents in encoding/xml", + "details": "Unmarshaling an XML document into a Go struct which has a nested field that uses the 'any' field tag can panic due to stack exhaustion.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "encoding/xml", + "symbols": [ + "Decoder.DecodeElement", + "Decoder.unmarshal", + "Decoder.unmarshalPath" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/417061" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/c4c1993fd2a5b26fe45c09592af6d3388a3b2e08" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53611" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0523", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0524", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-20T20:52:11Z", + "aliases": [ + "CVE-2022-30631" + ], + "summary": "Stack exhaustion when reading certain archives in compress/gzip", + "details": "Calling Reader.Read on an archive containing a large number of concatenated 0-length compressed files can cause a panic due to stack exhaustion.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "compress/gzip", + "symbols": [ + "Reader.Read" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/417067" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/b2b8872c876201eac2d0707276c6999ff3eb185e" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53168" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0524", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0525", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-25T17:34:18Z", + "aliases": [ + "CVE-2022-1705" + ], + "summary": "Improper sanitization of Transfer-Encoding headers in net/http", + "details": "The HTTP/1 client accepted some invalid Transfer-Encoding headers as indicating a \"chunked\" encoding. This could potentially allow for request smuggling, but only if combined with an intermediate server that also improperly failed to reject the header as invalid.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "transferReader.parseTransferEncoding" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/409874" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/e5017a93fcde94f09836200bca55324af037ee5f" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53188" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/410714" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "credits": [ + { + "name": "Zeyu Zhang (https://www.zeyu2001.com/)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0525", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0526", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-20T20:52:17Z", + "aliases": [ + "CVE-2022-30635" + ], + "summary": "Stack exhaustion when decoding certain messages in encoding/gob", + "details": "Calling Decoder.Decode on a message which contains deeply nested structures can cause a panic due to stack exhaustion.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "encoding/gob", + "symbols": [ + "Decoder.compileDec", + "Decoder.compileIgnoreSingle", + "Decoder.decIgnoreOpFor" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/417064" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/6fa37e98ea4382bf881428ee0c150ce591500eb7" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53615" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0526", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0527", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-20T20:52:22Z", + "aliases": [ + "CVE-2022-30630" + ], + "summary": "Stack exhaustion in Glob on certain paths in io/fs", + "details": "Calling Glob on a path which contains a large number of path separators can cause a panic due to stack exhaustion.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.12" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "io/fs", + "symbols": [ + "Glob" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/417065" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/fa2d41d0ca736f3ad6b200b2a4e134364e9acc59" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53415" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0527", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0531", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-28T17:24:57Z", + "aliases": [ + "CVE-2022-30629" + ], + "summary": "Session tickets lack random ticket_age_add in crypto/tls", + "details": "An attacker can correlate a resumed TLS session with a previous connection.\n\nSession tickets generated by crypto/tls do not contain a randomly generated ticket_age_add, which allows an attacker that can observe TLS handshakes to correlate successive connections by comparing ticket ages during session resumption.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.11" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/tls", + "symbols": [ + "serverHandshakeStateTLS13.sendSessionTickets" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/405994" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/fe4de36198794c447fbd9d7cc2d7199a506c76a5" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/52814" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ" + } + ], + "credits": [ + { + "name": "Github user @nervuri" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0531", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0532", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-26T21:41:20Z", + "aliases": [ + "CVE-2022-30580" + ], + "summary": "Empty Cmd.Path can trigger unintended binary in os/exec on Windows", + "details": "On Windows, executing Cmd.Run, Cmd.Start, Cmd.Output, or Cmd.CombinedOutput when Cmd.Path is unset will unintentionally trigger execution of any binaries in the working directory named either \"..com\" or \"..exe\".", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.11" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "os/exec", + "goos": [ + "windows" + ], + "symbols": [ + "Cmd.Start" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/403759" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/960ffa98ce73ef2c2060c84c7ac28d37a83f345e" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/52574" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ" + } + ], + "credits": [ + { + "name": "Chris Darroch (chrisd8088@github.com)" + }, + { + "name": "brian m. carlson (bk2204@github.com)" + }, + { + "name": "Mikhail Shcherbakov (https://twitter.com/yu5k3)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0532", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0533", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-07-28T17:25:07Z", + "aliases": [ + "CVE-2022-29804" + ], + "summary": "Path traversal via Clean on Windows in path/filepath", + "details": "On Windows, the filepath.Clean function can convert certain invalid paths to valid, absolute paths, potentially allowing a directory traversal attack.\n\nFor example, Clean(\".\\c:\") returns \"c:\".", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.11" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "path/filepath", + "goos": [ + "windows" + ], + "symbols": [ + "Clean" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/401595" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/52476" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ" + } + ], + "credits": [ + { + "name": "Unrud" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0533", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0535", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-08-01T22:21:17Z", + "aliases": [ + "CVE-2020-0601" + ], + "summary": "Certificate validation bypass on Windows in crypto/x509", + "details": "A Windows vulnerability allows attackers to spoof valid certificate chains when the system root store is in use.\n\nA workaround is present in Go 1.12.6+ and Go 1.13.7+, but affected users should additionally install the Windows security update to protect their system.\n\nSee https://msrc.microsoft.com/update-guide/en-US/vulnerability/CVE-2020-0601 for details on the Windows vulnerability.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.12.16" + }, + { + "introduced": "1.13.0-0" + }, + { + "fixed": "1.13.7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/x509", + "goos": [ + "windows" + ], + "symbols": [ + "Certificate.systemVerify" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/215905" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/953bc8f391a63adf00bac2515dba62abe8a1e2c2" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/36834" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Hsw4mHYc470/m/WJeW5wguEgAJ" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0535", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0536", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-08-01T22:20:53Z", + "aliases": [ + "CVE-2019-9512", + "CVE-2019-9514", + "GHSA-39qc-96h7-956f", + "GHSA-hgr8-6h9x-f7q9" + ], + "summary": "Reset flood in net/http and golang.org/x/net/http", + "details": "Some HTTP/2 implementations are vulnerable to a reset flood, potentially leading to a denial of service.\n\nServers that accept direct connections from untrusted clients could be remotely made to allocate an unlimited amount of memory, until the program crashes. The attacker opens a number of streams and sends an invalid request over each stream that should solicit a stream of RST_STREAM frames from the peer. Depending on how the peer queues the RST_STREAM frames, this can consume excess memory, CPU, or both.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.11.13" + }, + { + "introduced": "1.12.0-0" + }, + { + "fixed": "1.12.8" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "http2serverConn.scheduleFrameWrite", + "http2serverConn.serve", + "http2serverConn.writeFrame" + ] + } + ] + } + }, + { + "package": { + "name": "golang.org/x/net", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20190813141303-74dc4d7220e7" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/net/http2", + "symbols": [ + "Server.ServeConn", + "serverConn.scheduleFrameWrite", + "serverConn.serve", + "serverConn.writeFrame" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/190137" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/145e193131eb486077b66009beb051aba07c52a5" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/33606" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/65QixT3tcmg/m/DrFiG6vvCwAJ" + } + ], + "credits": [ + { + "name": "Jonathan Looney of Netflix" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0536", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0537", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-08-01T22:21:06Z", + "aliases": [ + "CVE-2022-32189" + ], + "summary": "Panic when decoding Float and Rat types in math/big", + "details": "Decoding big.Float and big.Rat types can panic if the encoded message is too short, potentially allowing a denial of service.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.17.13" + }, + { + "introduced": "1.18.0-0" + }, + { + "fixed": "1.18.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "math/big", + "symbols": [ + "Float.GobDecode", + "Rat.GobDecode" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/417774" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/055113ef364337607e3e72ed7d48df67fde6fc66" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/53871" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/YqYYG87xB10" + } + ], + "credits": [ + { + "name": "@catenacyber" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0537", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0761", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-08-09T17:05:15Z", + "aliases": [ + "CVE-2016-5386" + ], + "summary": "Improper input validation in net/http and net/http/cgi", + "details": "An input validation flaw in the CGI components allows the HTTP_PROXY environment variable to be set by the incoming Proxy header, which changes where Go by default proxies all outbound HTTP requests.\n\nThis environment variable is also used to set the outgoing proxy, enabling an attacker to insert a proxy into outgoing requests of a CGI program.\n\nRead more about \"httpoxy\" here: https://httpoxy.org.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.6.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "Handler.ServeHTTP" + ] + }, + { + "path": "net/http/cgi", + "symbols": [ + "ProxyFromEnvironment" + ] + } + ] + } + } + ], + "references": [ + { + "type": "FIX", + "url": "https://go.dev/cl/25010" + }, + { + "type": "FIX", + "url": "https://go.googlesource.com/go/+/b97df54c31d6c4cc2a28a3c83725366d52329223" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/16405" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/7jZDOQ8f8tM/m/eWRWHnc8CgAJ" + } + ], + "credits": [ + { + "name": "Dominic Scheirlinck" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0761", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0969", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-09-12T20:23:06Z", + "aliases": [ + "CVE-2022-27664", + "GHSA-69cg-p879-7622" + ], + "summary": "Denial of service in net/http and golang.org/x/net/http2", + "details": "HTTP/2 server connections can hang forever waiting for a clean shutdown that was preempted by a fatal error. This condition can be exploited by a malicious client to cause a denial of service.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.18.6" + }, + { + "introduced": "1.19.0-0" + }, + { + "fixed": "1.19.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "ListenAndServe", + "ListenAndServeTLS", + "Serve", + "ServeTLS", + "Server.ListenAndServe", + "Server.ListenAndServeTLS", + "Server.Serve", + "Server.ServeTLS", + "http2Server.ServeConn", + "http2serverConn.goAway" + ] + } + ] + } + }, + { + "package": { + "name": "golang.org/x/net", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.0.0-20220906165146-f3363e06e74c" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/net/http2", + "symbols": [ + "Server.ServeConn", + "serverConn.goAway" + ] + } + ] + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/x49AQzIVX-s" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/54658" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/428735" + } + ], + "credits": [ + { + "name": "Bahruz Jabiyev" + }, + { + "name": "Tommaso Innocenti" + }, + { + "name": "Anthony Gavazzi" + }, + { + "name": "Steven Sprecher" + }, + { + "name": "Kaan Onarlioglu" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0969", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-0988", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-09-12T20:23:15Z", + "aliases": [ + "CVE-2022-32190" + ], + "summary": "Failure to strip relative path components in net/url", + "details": "JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath(\"https://go.dev\", \"../go\") returns the URL \"https://go.dev/../go\", despite the JoinPath documentation stating that ../ path elements are removed from the result.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "1.19.0-0" + }, + { + "fixed": "1.19.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/url", + "symbols": [ + "JoinPath", + "URL.JoinPath" + ] + } + ] + } + } + ], + "references": [ + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/x49AQzIVX-s" + }, + { + "type": "REPORT", + "url": "https://go.dev/issue/54385" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/423514" + } + ], + "credits": [ + { + "name": "@q0jt" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-0988", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-1037", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-10-06T16:26:05Z", + "aliases": [ + "CVE-2022-2879" + ], + "summary": "Unbounded memory consumption when reading headers in archive/tar", + "details": "Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.18.7" + }, + { + "introduced": "1.19.0-0" + }, + { + "fixed": "1.19.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "archive/tar", + "symbols": [ + "Reader.Next", + "Reader.next", + "Writer.WriteHeader", + "Writer.writePAXHeader", + "parsePAX" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/54853" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/439355" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU" + } + ], + "credits": [ + { + "name": "Adam Korczynski (ADA Logics)" + }, + { + "name": "OSS-Fuzz" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-1037", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-1038", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-10-06T16:42:43Z", + "aliases": [ + "CVE-2022-2880" + ], + "summary": "Incorrect sanitization of forwarded query parameters in net/http/httputil", + "details": "Requests forwarded by ReverseProxy include the raw query parameters from the inbound request, including unparsable parameters rejected by net/http. This could permit query parameter smuggling when a Go proxy forwards a parameter with an unparsable value.\n\nAfter fix, ReverseProxy sanitizes the query parameters in the forwarded query when the outbound request's Form field is set after the ReverseProxy. Director function returns, indicating that the proxy has parsed the query parameters. Proxies which do not parse query parameters continue to forward the original query parameters unchanged.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.18.7" + }, + { + "introduced": "1.19.0-0" + }, + { + "fixed": "1.19.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http/httputil", + "symbols": [ + "ReverseProxy.ServeHTTP" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/54663" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/432976" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU" + } + ], + "credits": [ + { + "name": "Gal Goldstein (Security Researcher, Oxeye)" + }, + { + "name": "Daniel Abeles (Head of Research, Oxeye)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-1038", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-1039", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-10-06T16:42:07Z", + "aliases": [ + "CVE-2022-41715" + ], + "summary": "Memory exhaustion when compiling regular expressions in regexp/syntax", + "details": "Programs which compile regular expressions from untrusted sources may be vulnerable to memory exhaustion or denial of service.\n\nThe parsed regexp representation is linear in the size of the input, but in some cases the constant factor can be as high as 40,000, making relatively small regexps consume much larger amounts of memory.\n\nAfter fix, each regexp being parsed is limited to a 256 MB memory footprint. Regular expressions whose representation would use more space than that are rejected. Normal use of regular expressions is unaffected.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.18.7" + }, + { + "introduced": "1.19.0-0" + }, + { + "fixed": "1.19.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "regexp/syntax", + "symbols": [ + "Parse", + "parse", + "parser.factor", + "parser.push", + "parser.repeat" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/55949" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/439356" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/xtuG5faxtaU" + } + ], + "credits": [ + { + "name": "Adam Korczynski (ADA Logics)" + }, + { + "name": "OSS-Fuzz" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-1039", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-1095", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-11-01T23:55:57Z", + "aliases": [ + "CVE-2022-41716" + ], + "summary": "Unsanitized NUL in environment variables on Windows in syscall and os/exec", + "details": "Due to unsanitized NUL values, attackers may be able to maliciously set environment variables on Windows.\n\nIn syscall.StartProcess and os/exec.Cmd, invalid environment variable values containing NUL values are not properly checked for. A malicious environment variable value can exploit this behavior to set a value for a different environment variable. For example, the environment variable string \"A=B\\x00C=D\" sets the variables \"A=B\" and \"C=D\".", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.18.8" + }, + { + "introduced": "1.19.0-0" + }, + { + "fixed": "1.19.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "syscall", + "goos": [ + "windows" + ], + "symbols": [ + "StartProcess" + ] + }, + { + "path": "os/exec", + "goos": [ + "windows" + ], + "symbols": [ + "Cmd.CombinedOutput", + "Cmd.Environ", + "Cmd.Output", + "Cmd.Run", + "Cmd.Start", + "Cmd.environ", + "dedupEnv", + "dedupEnvCase" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/56284" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/446916" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/mbHY1UY3BaM/m/hSpmRzk-AgAJ" + } + ], + "credits": [ + { + "name": "RyotaK (https://twitter.com/ryotkak)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-1095", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-1143", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-12-07T16:08:45Z", + "aliases": [ + "CVE-2022-41720" + ], + "summary": "Restricted file access on Windows in os and net/http", + "details": "On Windows, restricted files can be accessed via os.DirFS and http.Dir.\n\nThe os.DirFS function and http.Dir type provide access to a tree of files rooted at a given directory. These functions permit access to Windows device files under that root. For example, os.DirFS(\"C:/tmp\").Open(\"COM1\") opens the COM1 device. Both os.DirFS and http.Dir only provide read-only filesystem access.\n\nIn addition, on Windows, an os.DirFS for the directory (the root of the current drive) can permit a maliciously crafted path to escape from the drive and access any path on the system.\n\nWith fix applied, the behavior of os.DirFS(\"\") has changed. Previously, an empty root was treated equivalently to \"/\", so os.DirFS(\"\").Open(\"tmp\") would open the path \"/tmp\". This now returns an error.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.18.9" + }, + { + "introduced": "1.19.0-0" + }, + { + "fixed": "1.19.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "os", + "goos": [ + "windows" + ], + "symbols": [ + "DirFS", + "dirFS.Open", + "dirFS.Stat" + ] + }, + { + "path": "net/http", + "goos": [ + "windows" + ], + "symbols": [ + "Dir.Open", + "ServeFile", + "fileHandler.ServeHTTP", + "fileTransport.RoundTrip" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/56694" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/455716" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJ" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-1143", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2022-1144", + "modified": "2024-05-20T16:03:47Z", + "published": "2022-12-08T19:01:21Z", + "aliases": [ + "CVE-2022-41717", + "GHSA-xrjj-mj9h-534m" + ], + "summary": "Excessive memory growth in net/http and golang.org/x/net/http2", + "details": "An attacker can cause excessive memory growth in a Go server accepting HTTP/2 requests.\n\nHTTP/2 server connections contain a cache of HTTP header keys sent by the client. While the total number of entries in this cache is capped, an attacker sending very large keys can cause the server to allocate approximately 64 MiB per open connection.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.18.9" + }, + { + "introduced": "1.19.0-0" + }, + { + "fixed": "1.19.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "ListenAndServe", + "ListenAndServeTLS", + "Serve", + "ServeTLS", + "Server.ListenAndServe", + "Server.ListenAndServeTLS", + "Server.Serve", + "Server.ServeTLS", + "http2Server.ServeConn", + "http2serverConn.canonicalHeader" + ] + } + ] + } + }, + { + "package": { + "name": "golang.org/x/net", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.4.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/net/http2", + "symbols": [ + "Server.ServeConn", + "serverConn.canonicalHeader" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/56350" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/455717" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/455635" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/L_3rmdT0BMU/m/yZDrXjIiBQAJ" + } + ], + "credits": [ + { + "name": "Josselin Costanzi" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2022-1144", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1568", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-02-16T19:49:19Z", + "aliases": [ + "CVE-2022-41722" + ], + "summary": "Path traversal on Windows in path/filepath", + "details": "A path traversal vulnerability exists in filepath.Clean on Windows.\n\nOn Windows, the filepath.Clean function could transform an invalid path such as \"a/../c:/b\" into the valid path \"c:\\b\". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack.\n\nAfter fix, the filepath.Clean function transforms this path into the relative (but still invalid) path \".\\c:\\b\".", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.6" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "path/filepath", + "goos": [ + "windows" + ], + "symbols": [ + "Abs", + "Clean", + "Dir", + "EvalSymlinks", + "Glob", + "IsLocal", + "Join", + "Rel", + "Walk", + "WalkDir" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/57274" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/468123" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E" + } + ], + "credits": [ + { + "name": "RyotaK (https://ryotak.net)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1568", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1569", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-02-21T20:44:30Z", + "aliases": [ + "CVE-2022-41725" + ], + "summary": "Excessive resource consumption in mime/multipart", + "details": "A denial of service is possible from excessive resource consumption in net/http and mime/multipart.\n\nMultipart form parsing with mime/multipart.Reader.ReadForm can consume largely unlimited amounts of memory and disk files. This also affects form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue.\n\nReadForm takes a maxMemory parameter, and is documented as storing \"up to maxMemory bytes +10MB (reserved for non-file parts) in memory\". File parts which cannot be stored in memory are stored on disk in temporary files. The unconfigurable 10MB reserved for non-file parts is excessively large and can potentially open a denial of service vector on its own. However, ReadForm did not properly account for all memory consumed by a parsed form, such as map entry overhead, part names, and MIME headers, permitting a maliciously crafted form to consume well over 10MB. In addition, ReadForm contained no limit on the number of disk files created, permitting a relatively small request body to create a large number of disk temporary files.\n\nWith fix, ReadForm now properly accounts for various forms of memory overhead, and should now stay within its documented limit of 10MB + maxMemory bytes of memory consumption. Users should still be aware that this limit is high and may still be hazardous.\n\nIn addition, ReadForm now creates at most one on-disk temporary file, combining multiple form parts into a single temporary file. The mime/multipart.File interface type's documentation states, \"If stored on disk, the File's underlying concrete type will be an *os.File.\". This is no longer the case when a form contains more than one file part, due to this coalescing of parts into a single file. The previous behavior of using distinct files for each form part may be reenabled with the environment variable GODEBUG=multipartfiles=distinct.\n\nUsers should be aware that multipart.ReadForm and the http.Request methods that call it do not limit the amount of disk consumed by temporary files. Callers can limit the size of form data with http.MaxBytesReader.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.6" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "mime/multipart", + "symbols": [ + "Reader.ReadForm" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/58006" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/468124" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E" + } + ], + "credits": [ + { + "name": "Arpad Ryszka" + }, + { + "name": "Jakob Ackermann (@das7pad)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1569", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1570", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-02-16T22:24:51Z", + "aliases": [ + "CVE-2022-41724" + ], + "summary": "Panic on large handshake records in crypto/tls", + "details": "Large handshake records may cause panics in crypto/tls.\n\nBoth clients and servers may send large TLS handshake records which cause servers and clients, respectively, to panic when attempting to construct responses.\n\nThis affects all TLS 1.3 clients, TLS 1.2 clients which explicitly enable session resumption (by setting Config.ClientSessionCache to a non-nil value), and TLS 1.3 servers which request client certificates (by setting Config.ClientAuth >= RequestClientCert).", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.6" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/tls", + "symbols": [ + "Conn.Handshake", + "Conn.HandshakeContext", + "Conn.Read", + "Conn.Write", + "Conn.clientHandshake", + "Conn.handleKeyUpdate", + "Conn.handlePostHandshakeMessage", + "Conn.handleRenegotiation", + "Conn.loadSession", + "Conn.readClientHello", + "Conn.readHandshake", + "Conn.writeRecord", + "ConnectionState.ExportKeyingMaterial", + "Dial", + "DialWithDialer", + "Dialer.Dial", + "Dialer.DialContext", + "certificateMsg.marshal", + "certificateMsgTLS13.marshal", + "certificateRequestMsg.marshal", + "certificateRequestMsgTLS13.marshal", + "certificateStatusMsg.marshal", + "certificateVerifyMsg.marshal", + "cipherSuiteTLS13.expandLabel", + "clientHandshakeState.doFullHandshake", + "clientHandshakeState.handshake", + "clientHandshakeState.readFinished", + "clientHandshakeState.readSessionTicket", + "clientHandshakeState.sendFinished", + "clientHandshakeStateTLS13.handshake", + "clientHandshakeStateTLS13.processHelloRetryRequest", + "clientHandshakeStateTLS13.readServerCertificate", + "clientHandshakeStateTLS13.readServerFinished", + "clientHandshakeStateTLS13.readServerParameters", + "clientHandshakeStateTLS13.sendClientCertificate", + "clientHandshakeStateTLS13.sendClientFinished", + "clientHandshakeStateTLS13.sendDummyChangeCipherSpec", + "clientHelloMsg.marshal", + "clientHelloMsg.marshalWithoutBinders", + "clientHelloMsg.updateBinders", + "clientKeyExchangeMsg.marshal", + "encryptedExtensionsMsg.marshal", + "endOfEarlyDataMsg.marshal", + "finishedMsg.marshal", + "handshakeMessage.marshal", + "helloRequestMsg.marshal", + "keyUpdateMsg.marshal", + "newSessionTicketMsg.marshal", + "newSessionTicketMsgTLS13.marshal", + "serverHandshakeState.doFullHandshake", + "serverHandshakeState.doResumeHandshake", + "serverHandshakeState.readFinished", + "serverHandshakeState.sendFinished", + "serverHandshakeState.sendSessionTicket", + "serverHandshakeStateTLS13.checkForResumption", + "serverHandshakeStateTLS13.doHelloRetryRequest", + "serverHandshakeStateTLS13.readClientCertificate", + "serverHandshakeStateTLS13.readClientFinished", + "serverHandshakeStateTLS13.sendDummyChangeCipherSpec", + "serverHandshakeStateTLS13.sendServerCertificate", + "serverHandshakeStateTLS13.sendServerFinished", + "serverHandshakeStateTLS13.sendServerParameters", + "serverHandshakeStateTLS13.sendSessionTickets", + "serverHelloDoneMsg.marshal", + "serverHelloMsg.marshal", + "serverKeyExchangeMsg.marshal", + "sessionState.marshal", + "sessionStateTLS13.marshal" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/58001" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/468125" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E" + } + ], + "credits": [ + { + "name": "Marten Seemann" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1570", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1571", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-02-16T22:31:36Z", + "aliases": [ + "CVE-2022-41723", + "GHSA-vvpx-j8f3-3w6h" + ], + "summary": "Denial of service via crafted HTTP/2 stream in net/http and golang.org/x/net", + "details": "A maliciously crafted HTTP/2 stream could cause excessive CPU consumption in the HPACK decoder, sufficient to cause a denial of service from a small number of small requests.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.6" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.1" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "Client.Do", + "Client.Get", + "Client.Head", + "Client.Post", + "Client.PostForm", + "Get", + "Head", + "ListenAndServe", + "ListenAndServeTLS", + "Post", + "PostForm", + "Serve", + "ServeTLS", + "Server.ListenAndServe", + "Server.ListenAndServeTLS", + "Server.Serve", + "Server.ServeTLS", + "Transport.RoundTrip" + ] + } + ] + } + }, + { + "package": { + "name": "golang.org/x/net", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.7.0" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "golang.org/x/net/http2", + "symbols": [ + "ClientConn.Close", + "ClientConn.Ping", + "ClientConn.RoundTrip", + "ClientConn.Shutdown", + "ConfigureServer", + "ConfigureTransport", + "ConfigureTransports", + "ConnectionError.Error", + "ErrCode.String", + "FrameHeader.String", + "FrameType.String", + "FrameWriteRequest.String", + "Framer.ReadFrame", + "Framer.WriteContinuation", + "Framer.WriteData", + "Framer.WriteDataPadded", + "Framer.WriteGoAway", + "Framer.WriteHeaders", + "Framer.WritePing", + "Framer.WritePriority", + "Framer.WritePushPromise", + "Framer.WriteRSTStream", + "Framer.WriteRawFrame", + "Framer.WriteSettings", + "Framer.WriteSettingsAck", + "Framer.WriteWindowUpdate", + "GoAwayError.Error", + "ReadFrameHeader", + "Server.ServeConn", + "Setting.String", + "SettingID.String", + "SettingsFrame.ForeachSetting", + "StreamError.Error", + "Transport.CloseIdleConnections", + "Transport.NewClientConn", + "Transport.RoundTrip", + "Transport.RoundTripOpt", + "bufferedWriter.Flush", + "bufferedWriter.Write", + "chunkWriter.Write", + "clientConnPool.GetClientConn", + "connError.Error", + "dataBuffer.Read", + "duplicatePseudoHeaderError.Error", + "gzipReader.Close", + "gzipReader.Read", + "headerFieldNameError.Error", + "headerFieldValueError.Error", + "noDialClientConnPool.GetClientConn", + "noDialH2RoundTripper.RoundTrip", + "pipe.Read", + "priorityWriteScheduler.CloseStream", + "priorityWriteScheduler.OpenStream", + "pseudoHeaderError.Error", + "requestBody.Close", + "requestBody.Read", + "responseWriter.Flush", + "responseWriter.FlushError", + "responseWriter.Push", + "responseWriter.SetReadDeadline", + "responseWriter.SetWriteDeadline", + "responseWriter.Write", + "responseWriter.WriteHeader", + "responseWriter.WriteString", + "serverConn.CloseConn", + "serverConn.Flush", + "stickyErrWriter.Write", + "transportResponseBody.Close", + "transportResponseBody.Read", + "writeData.String" + ] + }, + { + "path": "golang.org/x/net/http2/hpack", + "symbols": [ + "Decoder.DecodeFull", + "Decoder.Write", + "Decoder.parseFieldLiteral", + "Decoder.readString" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/57855" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/468135" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/468295" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E" + } + ], + "credits": [ + { + "name": "Philippe Antoine (Catena cyber)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1571", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1621", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-03-08T19:30:53Z", + "aliases": [ + "CVE-2023-24532" + ], + "summary": "Incorrect calculation on P256 curves in crypto/internal/nistec", + "details": "The ScalarMult and ScalarBaseMult methods of the P256 Curve may return an incorrect result if called with some specific unreduced scalars (a scalar larger than the order of the curve).\n\nThis does not impact usages of crypto/ecdsa or crypto/ecdh.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.7" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.2" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/internal/nistec", + "symbols": [ + "P256OrdInverse", + "P256Point.ScalarBaseMult", + "P256Point.ScalarMult" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/58647" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/471255" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/3-TpUx48iQY" + } + ], + "credits": [ + { + "name": "Guido Vranken, via the Ethereum Foundation bug bounty program" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1621", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1702", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-04-05T21:05:07Z", + "aliases": [ + "CVE-2023-24537" + ], + "summary": "Infinite loop in parsing in go/scanner", + "details": "Calling any of the Parse functions on Go source code which contains //line directives with very large line numbers can cause an infinite loop due to integer overflow.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.8" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "go/scanner", + "symbols": [ + "Scanner.Scan", + "Scanner.updateLineInfo" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/59180" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/482078" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8" + } + ], + "credits": [ + { + "name": "Philippe Antoine (Catena cyber)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1702", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1703", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-04-05T21:05:27Z", + "aliases": [ + "CVE-2023-24538" + ], + "summary": "Backticks not treated as string delimiters in html/template", + "details": "Templates do not properly consider backticks (`) as Javascript string delimiters, and do not escape them as expected.\n\nBackticks are used, since ES6, for JS template literals. If a template contains a Go template action within a Javascript template literal, the contents of the action can be used to terminate the literal, injecting arbitrary Javascript code into the Go template.\n\nAs ES6 template literals are rather complex, and themselves can do string interpolation, the decision was made to simply disallow Go template actions from being used inside of them (e.g. \"var a = {{.}}\"), since there is no obviously safe way to allow this behavior. This takes the same approach as github.com/google/safehtml.\n\nWith fix, Template.Parse returns an Error when it encounters templates like this, with an ErrorCode of value 12. This ErrorCode is currently unexported, but will be exported in the release of Go 1.21.\n\nUsers who rely on the previous behavior can re-enable it using the GODEBUG flag jstmpllitinterp=1, with the caveat that backticks will now be escaped. This should be used with caution.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.8" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "html/template", + "symbols": [ + "Template.Execute", + "Template.ExecuteTemplate", + "tJS", + "tJSDelimited" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/59234" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/482079" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8" + } + ], + "credits": [ + { + "name": "Sohom Datta, Manipal Institute of Technology" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1703", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1704", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-04-05T21:04:28Z", + "aliases": [ + "CVE-2023-24534" + ], + "summary": "Excessive memory allocation in net/http and net/textproto", + "details": "HTTP and MIME header parsing can allocate large amounts of memory, even when parsing small inputs, potentially leading to a denial of service.\n\nCertain unusual patterns of input data can cause the common function used to parse HTTP and MIME headers to allocate substantially more memory than required to hold the parsed headers. An attacker can exploit this behavior to cause an HTTP server to allocate large amounts of memory from a small request, potentially leading to memory exhaustion and a denial of service.\n\nWith fix, header parsing now correctly allocates only the memory required to hold parsed headers.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.8" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/textproto", + "symbols": [ + "Reader.ReadMIMEHeader", + "Reader.upcomingHeaderNewlines", + "readMIMEHeader" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/58975" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/481994" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8" + } + ], + "credits": [ + { + "name": "Jakob Ackermann (@das7pad)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1704", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1705", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-04-05T21:04:39Z", + "aliases": [ + "CVE-2023-24536" + ], + "summary": "Excessive resource consumption in net/http, net/textproto and mime/multipart", + "details": "Multipart form parsing can consume large amounts of CPU and memory when processing form inputs containing very large numbers of parts.\n\nThis stems from several causes:\n\n1. mime/multipart.Reader.ReadForm limits the total memory a parsed multipart form can consume. ReadForm can undercount the amount of memory consumed, leading it to accept larger inputs than intended.\n2. Limiting total memory does not account for increased pressure on the garbage collector from large numbers of small allocations in forms with many parts.\n3. ReadForm can allocate a large number of short-lived buffers, further increasing pressure on the garbage collector.\n\nThe combination of these factors can permit an attacker to cause an program that parses multipart forms to consume large amounts of CPU and memory, potentially resulting in a denial of service. This affects programs that use mime/multipart.Reader.ReadForm, as well as form parsing in the net/http package with the Request methods FormFile, FormValue, ParseMultipartForm, and PostFormValue.\n\nWith fix, ReadForm now does a better job of estimating the memory consumption of parsed forms, and performs many fewer short-lived allocations.\n\nIn addition, the fixed mime/multipart.Reader imposes the following limits on the size of parsed forms:\n\n1. Forms parsed with ReadForm may contain no more than 1000 parts. This limit may be adjusted with the environment variable GODEBUG=multipartmaxparts=.\n2. Form parts parsed with NextPart and NextRawPart may contain no more than 10,000 header fields. In addition, forms parsed with ReadForm may contain no more than 10,000 header fields across all parts. This limit may be adjusted with the environment variable GODEBUG=multipartmaxheaders=.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.8" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.3" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "mime/multipart", + "symbols": [ + "Part.populateHeaders", + "Reader.NextPart", + "Reader.NextRawPart", + "Reader.ReadForm", + "Reader.nextPart", + "Reader.readForm", + "mimeHeaderSize", + "newPart", + "readMIMEHeader" + ] + }, + { + "path": "net/textproto", + "symbols": [ + "Reader.ReadMIMEHeader", + "readMIMEHeader" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/59153" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/482076" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/482075" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/482077" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/Xdv6JL9ENs8" + } + ], + "credits": [ + { + "name": "Jakob Ackermann (@das7pad)" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1705", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1751", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-05-05T21:10:20Z", + "aliases": [ + "CVE-2023-24539" + ], + "summary": "Improper sanitization of CSS values in html/template", + "details": "Angle brackets (<>) are not considered dangerous characters when inserted into CSS contexts. Templates containing multiple actions separated by a '/' character can result in unexpectedly closing the CSS context and allowing for injection of unexpected HTML, if executed with untrusted input.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.9" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "html/template", + "symbols": [ + "Template.Execute", + "Template.ExecuteTemplate", + "cssValueFilter", + "escaper.commit" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/59720" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/491615" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU" + } + ], + "credits": [ + { + "name": "Juho Nurminen of Mattermost" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1751", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1752", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-05-05T21:10:22Z", + "aliases": [ + "CVE-2023-24540" + ], + "summary": "Improper handling of JavaScript whitespace in html/template", + "details": "Not all valid JavaScript whitespace characters are considered to be whitespace. Templates containing whitespace characters outside of the character set \"\\t\\n\\f\\r\\u0020\\u2028\\u2029\" in JavaScript contexts that also contain actions may not be properly sanitized during execution.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.9" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "html/template", + "symbols": [ + "Template.Execute", + "Template.ExecuteTemplate", + "nextJSCtx" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/59721" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/491616" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU" + } + ], + "credits": [ + { + "name": "Juho Nurminen of Mattermost" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1752", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1753", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-05-05T21:10:24Z", + "aliases": [ + "CVE-2023-29400" + ], + "summary": "Improper handling of empty HTML attributes in html/template", + "details": "Templates containing actions in unquoted HTML attributes (e.g. \"attr={{.}}\") executed with empty input can result in output with unexpected results when parsed due to HTML normalization rules. This may allow injection of arbitrary attributes into tags.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.9" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "html/template", + "symbols": [ + "Template.Execute", + "Template.ExecuteTemplate", + "appendCmd", + "htmlNospaceEscaper" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/59722" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/491617" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/MEb0UyuSMsU" + } + ], + "credits": [ + { + "name": "Juho Nurminen of Mattermost" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1753", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1840", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-06-08T20:16:06Z", + "aliases": [ + "CVE-2023-29403" + ], + "summary": "Unsafe behavior in setuid/setgid binaries in runtime", + "details": "On Unix platforms, the Go runtime does not behave differently when a binary is run with the setuid/setgid bits. This can be dangerous in certain cases, such as when dumping memory state, or assuming the status of standard i/o file descriptors.\n\nIf a setuid/setgid binary is executed with standard I/O file descriptors closed, opening any files can result in unexpected content being read or written with elevated privileges. Similarly, if a setuid/setgid program is terminated, either via panic or signal, it may leak the contents of its registers.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.10" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.5" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "runtime" + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/60272" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/501223" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/q5135a9d924/m/j0ZoAJOHAwAJ" + } + ], + "credits": [ + { + "name": "Vincent Dehors from Synacktiv" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1840", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1878", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-07-11T19:19:08Z", + "aliases": [ + "CVE-2023-29406" + ], + "summary": "Insufficient sanitization of Host header in net/http", + "details": "The HTTP/1 client does not fully validate the contents of the Host header. A maliciously crafted Host header can inject additional headers or entire requests.\n\nWith fix, the HTTP/1 client now refuses to send requests containing an invalid Request.Host or Request.URL.Host value.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.11" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.6" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "net/http", + "symbols": [ + "Client.CloseIdleConnections", + "Client.Do", + "Client.Get", + "Client.Head", + "Client.Post", + "Client.PostForm", + "Get", + "Head", + "Post", + "PostForm", + "Request.Write", + "Request.WriteProxy", + "Request.write", + "Transport.CancelRequest", + "Transport.CloseIdleConnections", + "Transport.RoundTrip" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/60374" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/506996" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/2q13H6LEEx0" + } + ], + "credits": [ + { + "name": "Bartek Nowotarski" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1878", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-1987", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-08-02T17:25:58Z", + "aliases": [ + "CVE-2023-29409" + ], + "summary": "Large RSA keys can cause high CPU usage in crypto/tls", + "details": "Extremely large RSA keys in certificate chains can cause a client/server to expend significant CPU time verifying signatures.\n\nWith fix, the size of RSA keys transmitted during handshakes is restricted to <= 8192 bits.\n\nBased on a survey of publicly trusted RSA keys, there are currently only three certificates in circulation with keys larger than this, and all three appear to be test certificates that are not actively deployed. It is possible there are larger keys in use in private PKIs, but we target the web PKI, so causing breakage here in the interests of increasing the default safety of users of crypto/tls seems reasonable.", + "affected": [ + { + "package": { + "name": "stdlib", + "ecosystem": "Go" + }, + "ranges": [ + { + "type": "SEMVER", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.19.12" + }, + { + "introduced": "1.20.0-0" + }, + { + "fixed": "1.20.7" + }, + { + "introduced": "1.21.0-0" + }, + { + "fixed": "1.21.0-rc.4" + } + ] + } + ], + "ecosystem_specific": { + "imports": [ + { + "path": "crypto/tls", + "symbols": [ + "Conn.Handshake", + "Conn.HandshakeContext", + "Conn.Read", + "Conn.Write", + "Conn.processCertsFromClient", + "Conn.verifyServerCertificate", + "Dial", + "DialWithDialer", + "Dialer.Dial", + "Dialer.DialContext" + ] + } + ] + } + } + ], + "references": [ + { + "type": "REPORT", + "url": "https://go.dev/issue/61460" + }, + { + "type": "FIX", + "url": "https://go.dev/cl/515257" + }, + { + "type": "WEB", + "url": "https://groups.google.com/g/golang-announce/c/X0b6CsSAaYI/m/Efv5DbZ9AwAJ" + } + ], + "credits": [ + { + "name": "Mateusz Poliwczak" + } + ], + "database_specific": { + "url": "https://pkg.go.dev/vuln/GO-2023-1987", + "review_status": "REVIEWED" + } + } + }, + { + "osv": { + "schema_version": "1.3.1", + "id": "GO-2023-2041", + "modified": "2024-05-20T16:03:47Z", + "published": "2023-09-07T16:11:17Z", + "aliases": [ + "CVE-2023-39318" + ], + "summary": "Improper handling of HTML-like comments in script contexts in html/template", + "details": "The html/template package does not properly handle HTML-like \"\" comment tokens, nor hashbang \"#!\" comment tokens, in