RATATOSK
← リリース一覧

Harborv2.13.6

セキュリティ 13依存関係の更新 1

Harborの通知を受け取る

週次メールは確認すべき変更がある週だけ、深刻度がcriticalのセキュリティアドバイザリは即時に届きます。

アップグレード前の確認事項

既知の問題1
一部のレジストリでのプッシュレプリケーション失敗v2.14.6で修正済み

これらのレジストリはアップロードの Location を返しますが、このリリースではクロスオリジンとして拒否されるため、プッシュレプリケーションが失敗します。今後のパッチで修正される予定です。

> [!WARNING]
> **Known Issue: Push Replication Fails for Specific Registries such as AWS ECR (GHSA-wjpm-hv5w-gxr6 Regression)**
>
> The security fix for GHSA-wjpm-hv5w-gxr6 strictly validated upload Location headers against the statically configured registry endpoint (c.url). Because the AWS ECR adapter configures the API control-plane endpoint (https://api.ecr.<region>.amazonaws.com) while requests are rewritten to the data-plane host (<account>.dkr.ecr.<region>.amazonaws.com), ECR's response Location header is rejected as a cross-origin target.
>
>Workaround / Resolution:
>
> A fix has been provided in PR [#24113](https://github.com/goharbor/harbor/pull/24113) and will be released in the upcoming patch release.
> If your environment depends on push replication, we recommend postponing the upgrade until the next patch release or applying the patch directly.
github.com/goharbor/harbor/releases/tag/v2.13.6

セキュリティ13high5medium7

ドットセグメントを含む /v2/ リクエストの拒否

high
影響対象Harbor の /v2/ レジストリ API

修正前は、. または .. のパスセグメントを含む細工されたリクエストが、あるリポジトリへの権限チェックを通過した後、別のリポジトリに到達する可能性がありました。少なくとも1つのプロジェクトが公開されていれば、誰でもログインせずに任意のプロジェクトのマニフェストを読み取ることができました。また、あるプロジェクトへのプッシュ権限を持つユーザーは、別のプロジェクトのタグやマニフェストを変更または削除できました。修正後、これらのリクエストには HTTP 400 が返されます。

原文を表示
* (high): Path traversal vulnerability in distribution endpoints [GHSA-qj39-pjf2-wmrc](https://github.com/goharbor/harbor/security/advisories/GHSA-qj39-pjf2-wmrc) in [`a82c5528f`](https://github.com/goharbor/harbor/commit/a82c5528f1e939a78f2ce9acab9ecd03ee90b98f)
github.com/goharbor/harbor/releases/tag/v2.13.6

システムロボットの Project 権限をプロジェクト単位に制限

high
影響対象Cover all projects スコープと Project リソース権限を持つシステムロボット

このリリースより前は、この権限によってプロジェクトをまたいでリソースが公開されるおそれがありました。Project: Read ではリソースを読み取れ、Project: Delete では削除できました。ロボットトークンを完全には信頼できない人やシステムが保持している場合にリスクとなっていました。アップグレード後は、リポジトリ、アーティファクト、メンバー、ロボットアカウントなど、プロジェクト内のリソースへのアクセスに個別の権限付与が必要です。

原文を表示
* (high): Robot "cover all projects" scope collapses into a global wildcard, conferring the deliberately-ungrantable robot:update — enabling cross-project robot takeover with owner lockout [GHSA-xq2m-cj8w-56v5](https://github.com/goharbor/harbor/security/advisories/GHSA-xq2m-cj8w-56v5) in [`7331b58d5`](https://github.com/goharbor/harbor/commit/7331b58d594f245aaf7f70515473aedffff85499)
github.com/goharbor/harbor/releases/tag/v2.13.6

レジストリ API の管理者アクセスが auth-proxy 設定に準拠

high
影響対象HTTP auth-proxy を使用し、auth_mode = http_auth を設定しているデプロイメント
追加の対応レジストリ API へのアクセスで Harbor UI の管理者ステータスに依存するユーザーまたはグループの、http_authproxy_admin_usernames または http_authproxy_admin_groups への登録

auth-proxy トークンのユーザー名がローカル Harbor システム管理者(admin を含む)と一致すると、プロキシから管理者権限を付与されていなくても、/v2/ リクエストに管理者アクセス権が引き継がれ、プロジェクトをまたいだプル、プッシュ、削除が可能になることがありました。アップグレード後は、ローカル Harbor の管理者フラグによってこれらのリクエストに管理者アクセス権が付与されることはなく、auth-proxy の管理者設定だけが適用されます。

原文を表示
* (high): External auth-proxy identity named admin inherits Registry system-administrator authorization [GHSA-xvh7-74g6-29xw](https://github.com/goharbor/harbor/security/advisories/GHSA-xvh7-74g6-29xw) in [`13e5a1b97`](https://github.com/goharbor/harbor/commit/13e5a1b979d90d346716c19eefc5f6cfa31dce0e)
github.com/goharbor/harbor/releases/tag/v2.13.6

内部向けWebhookおよびSlack配信のデフォルト拒否

high
影響対象完全には信頼できないユーザーがプロジェクト管理者になれるうえ、jobservice から Webhook または Slack 通知の送信先である内部サービスやクラウドメタデータに到達できる Harbor 環境

このリリースより前は、プロジェクト管理者が内部アドレスを送信先とする HTTP または Slack Webhook を設定できました。jobservice からその送信先に到達でき、エラーが返された場合、レスポンス本文は Webhook の実行ログに記録されていました。アップグレード後は、内部エンドポイントへの既存の配信は失敗し、新しい配信もデフォルトで拒否されます。保護を無効にするには、network.allow_private_network_access: true を設定するか、core.extraEnvVars と jobservice.extraEnvVars の両方で HARBOR_ALLOW_PRIVATE_NETWORK_ACCESS を "true" に設定します。この設定は、すべてのプロジェクト管理者を信頼でき、かつ 169.254.169.254 がネットワークレベルで遮断されている場合に限って使用してください。

原文を表示
> [!WARNING]
> **Breaking change: webhooks to internal addresses are blocked by default**
> The fix for [GHSA-2phj-cp9f-qq6w](https://github.com/goharbor/harbor/security/advisories/GHSA-2phj-cp9f-qq6w) blocks webhook and Slack delivery to private, loopback, link-local and other non-public addresses. That includes hostnames that resolve to them, such as `*.svc.cluster.local`. After you upgrade, existing webhooks to internal endpoints fail to deliver, and new ones are rejected.
> To allow them again, set the opt-out on **both core and jobservice**:
> - `harbor.yml`: `network.allow_private_network_access: true`, then `./prepare` and restart
> - Helm: add `{name: HARBOR_ALLOW_PRIVATE_NETWORK_ACCESS, value: "true"}` to both `core.extraEnvVars` and `jobservice.extraEnvVars`
> This disables the protection entirely. Only use it if you trust all project admins, and block `169.254.169.254` at the network level.
* (medium): SSRF in webhook delivery allows ProjectAdmin to reach internal services and cloud metadata endpoints [GHSA-2phj-cp9f-qq6w](https://github.com/goharbor/harbor/security/advisories/GHSA-2phj-cp9f-qq6w) in [`fb476e10c`](https://github.com/goharbor/harbor/commit/fb476e10c9f981bd994011563bef6c5292ec272c)
github.com/goharbor/harbor/releases/tag/v2.13.6

Harbor のシステム管理者フラグ変更をシステム管理者に制限

high
影響対象User: Update 権限を持つシステムロボットアカウント

そのようなロボットのトークンを完全には信頼できない人やシステムが保持していた場合、Harbor の任意のユーザーにシステム管理者権限を付与したり、取り消したりできました。アップグレード後、これらの操作は HTTP 403 を返します。ロボットによるその他のユーザー更新操作は変更されません。

原文を表示
* (high): A system robot with user:update makes itself a system administrator [GHSA-w5fq-xrhj-j7g2](https://github.com/goharbor/harbor/security/advisories/GHSA-w5fq-xrhj-j7g2) in [`8896be0ae`](https://github.com/goharbor/harbor/commit/8896be0aed0dbbd2b59d1524b748b4699e823c39)
github.com/goharbor/harbor/releases/tag/v2.13.6

Harbor、イメージプルポリシーの User-Agent 例外を削除

medium
影響対象Content trust または Prevent vulnerable images from running を適用しているプロジェクト

これまでは、プロジェクトへの push 権限を持つユーザーまたはロボットが、cosign または notation の User-Agent を使うと、いずれかのポリシーによってブロックされるイメージをプルできました。今後はこうしたプルもブロックされるため、Content trust プロジェクトで新しい未署名イメージに署名しようとすると 412 Precondition Failed で失敗します。一方、署名済みのイメージは引き続きプルできます。CONTENT_TRUST_LEGACY_SIGNER_PULL_ENABLED=true を設定すると、Content trust に限り、プロジェクトへの push 権限を持つユーザーまたはロボットに対してこの例外が復活します。

原文を表示
> [!WARNING]
> **Breaking change: signing unsigned images fails when content trust is enforced**
>
> The fix for [GHSA-wrw5-gmvj-gf23](https://github.com/goharbor/harbor/security/advisories/GHSA-wrw5-gmvj-gf23) removes the User-Agent based exemption that let `cosign` and `notation` pull unsigned images. In projects that only allow signed images, `cosign sign` and `notation sign` on a new, unsigned image now fail with `412 Precondition Failed`. Images that already have a signature are not affected.
>
> To allow signing clients again, set `CONTENT_TRUST_LEGACY_SIGNER_PULL_ENABLED=true` on **core**. The value must be exactly `true`.
> - Helm: add it to `core.extraEnvVars`
> - `harbor.yml` installs: there is no `harbor.yml` option. Add it to `common/config/core/env` and restart. Re-running `./prepare` overwrites that file.
>
> The exemption still trusts the client's User-Agent, but only for users or robots with push permission on the project. Projects that block vulnerable images have no opt-out: a signing client can no longer pull an image that the vulnerability policy blocks.
* (medium): Vulnerability & Content-Trust pull policies bypassable via attacker-controlled `User-Agent` header [GHSA-wrw5-gmvj-gf23](https://github.com/goharbor/harbor/security/advisories/GHSA-wrw5-gmvj-gf23) in [`9d255ebe1`](https://github.com/goharbor/harbor/commit/9d255ebe1ad3cae00929af2f8100cec566d9ee97)
github.com/goharbor/harbor/releases/tag/v2.13.6

複数セレクターを含む不変タグルールの正しい適用

medium
影響対象リポジトリセレクターまたはタグセレクターを複数含む不変タグルールが設定されたプロジェクト

これらのルールは以前、各種類のパターンの最初のものしかチェックしていなかったため、後続のセレクターに一致するタグは変更可能で、上書きや削除の対象となっていました。現在は後続のセレクターに一致するタグも保護され、それらを上書きするプッシュや削除の試みは拒否されます。

原文を表示
* (medium): Immutable tag rule matcher only evaluates first repository/tag selector, allowing multi-selector rules to be bypassed [GHSA-27f2-qg57-2gwg](https://github.com/goharbor/harbor/security/advisories/GHSA-27f2-qg57-2gwg) in [`08c58f3c7`](https://github.com/goharbor/harbor/commit/08c58f3c76bd8e9252996a3cc62dade10d4e3ab4)
github.com/goharbor/harbor/releases/tag/v2.13.6

スキャナー認証情報のフィルター経由の露出修正

medium
影響対象認証済みスキャナー登録がある Harbor インストール

信頼されていないユーザーがプロジェクト管理者になれる場合、q フィルターへのクエリを繰り返すことで、保存されたスキャナー認証情報が1文字ずつ明らかになる可能性がありました。また、認証情報を平文として復元できるかどうかにも左右されていました。access_cred はフィルターとして使用できなくなりましたが、スキャン動作に変更はありません。

原文を表示
* (medium): scanner_registration.access_cred is missing filter:"false", giving a project admin a blind oracle over the scanner credential [GHSA-vwvv-675v-p6rr](https://github.com/goharbor/harbor/security/advisories/GHSA-vwvv-675v-p6rr) in [`d2e2312f5`](https://github.com/goharbor/harbor/commit/d2e2312f5735777b37041674bb146bcbd02fc054)
github.com/goharbor/harbor/releases/tag/v2.13.6

スキャナーのベアラートークン要求における TLS 検証とレスポンス制限

medium
影響対象スキャナーのベアラー認証を使用し、core_url が HTTPS で、jobservice から core への通信が信頼できないネットワークを経由するスキャンジョブ

以前はトークン要求で証明書の検証が行われず、レスポンスサイズの上限もタイムアウトもありませんでした。そのため、一時的なスキャン認証情報が傍受されたり、任意に大きなレスポンスがメモリーに読み込まれたりする可能性がありました。現在は core の証明書を検証し、レスポンスを 1 MiB までに制限し、30 秒でタイムアウトします。信頼されていない証明書が原因で、スキャンが証明書エラーとなる場合があります。

原文を表示
* (medium): Scanner bearer authorization request disables TLS verification and reads the full response body [GHSA-884q-mjcg-86x4](https://github.com/goharbor/harbor/security/advisories/GHSA-884q-mjcg-86x4) in [`eb1a6fb64`](https://github.com/goharbor/harbor/commit/eb1a6fb6424d523213eeac1faffd938cc687f2af)
github.com/goharbor/harbor/releases/tag/v2.13.6

Jobservice の webhook エラー処理の修正

medium
影響対象webhookを使用するHarborインストール環境

webhookの受信側がエラーを返すと、jobserviceはレスポンス本文全体を読み取り、透過的に展開してサイズ制限なく実行ログに記録していました。その結果、メモリ使用量が増加し、ジョブの遅延や失敗につながる可能性がありました。現在は、失敗したレスポンス本文を最大64 KiBまで読み捨て、ステータスコードのみをログに記録します。リダイレクトには追従しないため、3xxレスポンスは配信失敗として記録されます。

原文を表示
* (medium): Webhook error responses can cause unbounded decompression in Jobservice [GHSA-jw3v-7jvc-pfmx](https://github.com/goharbor/harbor/security/advisories/GHSA-jw3v-7jvc-pfmx) in [`fb476e10c`](https://github.com/goharbor/harbor/commit/fb476e10c9f981bd994011563bef6c5292ec272c)
github.com/goharbor/harbor/releases/tag/v2.13.6

レジストリの安全でないアップロード Location の拒否

medium
影響対象リモートレジストリへのプッシュ方式のレプリケーション
追加の対応アップロードを別のホスト名に引き渡す宛先では、設定するエンドポイント URL にそのホスト名を使用する必要があります。

このリリースより前は、Harbor はリモートレジストリのアップロード Location が同じレジストリを指しているか確認せず、その宛先に Blob データとレジストリの Authorization ヘッダーを送信していました。現在は、スキーム、ホスト、ポートが異なる Location や、ユーザー名を含む Location は拒否され、レプリケーションタスクは失敗します。相対 Location は引き続き使用できます。

原文を表示
* (medium): Registry chunk upload reuses unvalidated Location headers [GHSA-wjpm-hv5w-gxr6](https://github.com/goharbor/harbor/security/advisories/GHSA-wjpm-hv5w-gxr6) in [`401e73429`](https://github.com/goharbor/harbor/commit/401e7342963c4c406fd103cf2931e8aac95d320d)
github.com/goharbor/harbor/releases/tag/v2.13.6

レプリケーションクライアントによる無効なページネーションリンクの拒否

medium
影響対象リポジトリ一覧またはタグ一覧をページ分割して返すリモートレジストリからのプル型レプリケーション
追加の対応ページネーションリンクで異なるホスト名を使うリモートレジストリでは、Harbor のエンドポイント URL にそのホスト名を指定する必要があります。

以前は、Harbor はリモートの Link ヘッダーのリンク先を検証せずにたどり、保存済みのレジストリ認証情報をリクエストに含めていました。現在は、スキーム、ホスト、ポートが異なる next リンク、またはユーザー名を含む next リンクがあると、一覧取得はエラーで停止し、レプリケーションに失敗します。

原文を表示
* (medium): SSRF and credential disclosure via attacker-controlled pagination Link header in the registry replication client [GHSA-xgp2-5vxg-rgh2](https://github.com/goharbor/harbor/security/advisories/GHSA-xgp2-5vxg-rgh2) in [`a01e0c6c5`](https://github.com/goharbor/harbor/commit/a01e0c6c561458fc719a16310d02b928a87e589a)
github.com/goharbor/harbor/releases/tag/v2.13.6

Harbor セキュリティミドルウェアの認証モード取得失敗時のリクエスト拒否

影響対象Harbor coreで設定された認証モード

coreが設定済みの認証モードを読み取れない場合、たとえばデータベースや設定キャッシュの停止時には、ミドルウェアは警告を記録して処理を続け、リクエストは認証されないままでした。現在は該当するリクエストに HTTP 500(failed to determine authentication mode)を返します。通常のリクエストに変更はありません。

原文を表示
* (low): Security middleware continues after AuthMode lookup failure [GHSA-3x7c-wf86-mjx6](https://github.com/goharbor/harbor/security/advisories/GHSA-3x7c-wf86-mjx6) in [`bfd319a92`](https://github.com/goharbor/harbor/commit/bfd319a928460e50ad8f0536b5e163cefb24ef5c)
github.com/goharbor/harbor/releases/tag/v2.13.6

依存関係の更新1

    ほか1件(いずれもセキュリティへの言及なし)
    • * fix: pin redis 7.2.11 instead of 7.2.6 in the redis base image by @bupd in https://github.com/goharbor/harbor/pull/24066

    整理した内容は AI が作成するため誤っている可能性があり、無保証で提供されます。