io.netty:netty-codec-http の脆弱性 (CVE-2022-24823)
概要
io.netty:netty-codec-http に 脆弱性 (CVE-2022-24823) が存在。機密情報が外部に流出する可能性があります。java.io.tmpdir 経由で攻撃可能。対策: 4.1.77.Final 以上に更新。
原文の説明
取得元が公開している説明をそのまま載せています (多くは英語)。
Description
GHSA-5mcr-gq6c-3hq2 (CVE-2021-21290) contains an insufficient fix for the vulnerability identified.
Impact
When netty's multipart decoders are used local information disclosure can occur via the local system temporary directory if temporary storing uploads on the disk is enabled.
This only impacts applications running on Java version 6 and lower. Additionally, this vulnerability impacts code running on Unix-like systems, and very old versions of Mac OSX and Windows as they all share the system temporary directory between all users.
Vulnerability Details
To fix the vulnerability the code was changed to the following:
@SuppressJava6Requirement(reason = "Guarded by version check")
public static File createTempFile(String prefix, String suffix, File directory) throws IOException {
if (javaVersion() >= 7) {
if (directory == null) {
return Files.createTempFile(prefix, suffix).toFile();
}
return Files.createTempFile(directory.toPath(), prefix, suffix).toFile();
}
if (directory == null) {
return File.createTempFile(prefix, suffix);
}
File file = File.createTempFile(prefix, suffix, directory);
// Try to adjust the perms, if this fails there is not much else we can do...
file.setReadable(false, false);
file.setReadable(true, true)…
出典: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV
自動生成の要約
取得元のデータ (CVSS・CWE・影響バージョンなど) から SecPulse が定型文で組み立てた要約です。AI は使っていません。正確な内容は下の原文と参照URLで確認してください。
io.netty:netty-codec-http という製品で、CVE-2022-24823 という番号がついた弱点 (脆弱性) が見つかりました。
悪い人がインターネット越しに java.io.tmpdir のような特定の入り口を狙うことで、製品の中を不正に操作できてしまいます。
機密情報が外部に流出する可能性があります。
対策: io.netty:netty-codec-http を 4.1.77.Final 以上に更新してください。
心配なら、システム担当者や製品の公式サイトで「io.netty:netty-codec-http CVE-2022-24823」を検索してください。
CVE-2022-24823 (io.netty:netty-codec-http) — CWE-378
攻撃ベクター: ローカル / 被害者操作不要
脆弱箇所: java.io.tmpdir
修正バージョン: 4.1.77.Final (即時適用推奨)
対応方針: 1) SBOMで影響バージョン横断確認, 2) ステージング検証→本番更新, 3) WAF/プロキシで該当エンドポイントを監視, 4) ログでIOC調査。
参考: 当ページの『参照URL』の GHSA / vendor advisory / patched release を参照。
io.netty:netty-codec-http に 脆弱性 (CWE-378) があります。攻撃者は java.io.tmpdir を経由して脆弱な処理に到達できます。
io.netty:netty-codec-http の影響バージョンはベンダーのアドバイザリで確認してください。攻撃箇所: java.io.tmpdir。
重要度: ?。機密情報が外部に流出する可能性があります。
4.1.77.Final に更新してください。
修正版が未提供時は、影響機能の無効化・WAFルール・ネットワークACLでの遮断を検討。
Webサーバ・プロキシ・WAFログで該当CVEのIOCに合致する不審リクエストを検索。SBOM/依存ファイルで影響バージョンを横断確認。
対応アクション
SOC/SREチームが順番に実行すべき具体的なステップとコマンド例
-
1影響範囲の特定 identify
Audit SBOM/dependencies for affected components.資産台帳・SBOM・依存マニフェストで io.netty:netty-codec-http を使っているサービスとバージョンを洗い出す。
-
2パッチ適用 patch
Upgrade io.netty:netty-codec-http to 4.1.77.Finalステージング環境で 4.1.77.Final に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3事後検証 verify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
影響パッケージ
ディストリビューション別の修正状況
各ディストリビューションが公開している、この CVE の修正パッケージ
- Debian DEBIAN-CVE-2022-24823 netty
- Ubuntu UBUNTU-CVE-2022-24823 netty
参照URL
- advisory nvd.nist.gov
- package github.com
- web github.com
- web github.com
- web github.com
- web security.netapp.com
- web oracle.com