WR 株式会社WR 松戸のホームページ制作・社内システム・IT相談

株式会社WR

千葉県松戸市
松戸・柏・市川・流山・船橋 対応

ホーム›脆弱性情報›PostgreSQL›CVE-2026-48031

緊急 CVSS 9.1 PostgreSQL CVE-2026-48031 公表 2026年8月3日

go-base に認証回避の脆弱性

PostgreSQL — CVE-2026-48031

自分のサイトが該当するか無料診断 → 原文を見る(NVD(米国 脆弱性データベース))↗

どんな問題か

go-baseのJWT秘密鍵が既知の値になっており、だれでも偽のログイン情報を作れる状態でした。管理者になりすまして保護された画面に入られるおそれがあります。

放置するとどうなるか

不正ログインされ、管理画面や顧客情報にアクセスされる可能性があります。サイトの信頼が大きく損なわれます。

今すぐやること

修正版へ更新してください。2026-05-18以降の版が必要です。公開リポジトリを使っている場合は、秘密鍵の設定も必ず見直してください。

自分のサイトが該当するかの確認手順

  1. お使いのサーバー・プログラムに PostgreSQL が使われているか、制作会社・保守会社・サーバー会社に確認します(管理画面やサーバーのバージョン表示でも分かります)。
  2. バージョンが「2026-05-18より前」に当てはまるか確認します。
  3. 当てはまる場合は、修正版へのアップデートを依頼します。レンタルサーバーの場合はサーバー会社側で対応済みのこともあるので、お知らせを確認してください。
原文(英語)を表示
go-base is a Go RESTful API Boilerplate template with JWT Authentication, backed by PostgreSQL. In versions prior to 2026-05-18, the JWT signing secret is hardcoded to the known string "random", letting any attacker who reads the public repository forge tokens for arbitrary users, including admin roles, and completely bypass authentication on all protected endpoints. This value is set in two places: the dev.env template (line 10) and a programmatic fallback in cmd/serve.go (line 35), so the application uses it even when no .env file is present. The original mitigation in auth/jwt/tokenauth.go (lines 22 to 25) only caught the exact string "random", letting other weak secrets through, and replaced it with an in-memory key that was not persisted, invalidating all tokens on every restart and effectively causing a denial-of-service. This issue has been fixed in version 2026-05-18.

※ 解説は NVD(米国 脆弱性データベース) の公表内容をもとにAIが生成しています。対象バージョン・修正版などの正確な情報は、必ず原文をご確認ください。

無料で相談する →