Categories
CVE-2022-24823

Vulnerability in io.netty:netty-codec-http (CVE-2022-24823)

Summary

Vulnerability in io.netty:netty-codec-http (CVE-2022-24823). Confidential information can be exposed externally. Exploitable via java.io.tmpdir. Mitigation: upgrade to 4.1.77.Final or later.

Original description

The description as published by the source.

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)…

Source: OSV.dev (Open Source Vulnerabilities) NVD GitHub Advisory OSV

Auto-generated summary

Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.

A vulnerability tracked as CVE-2022-24823 has been found in io.netty:netty-codec-http.
Attackers can target a specific entry point like java.io.tmpdir over the network to misuse the product.
Confidential information can be exposed externally.
What to do: upgrade io.netty:netty-codec-http to 4.1.77.Final or later.
If unsure, ask your IT team or search "io.netty:netty-codec-http CVE-2022-24823" on the vendor's site.

CVE-2022-24823 (io.netty:netty-codec-http) — CWE-378
Attack vector: local / no user interaction
Attack surface: java.io.tmpdir
Patched: 4.1.77.Final — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.

❓ What is the problem

A vulnerability (CWE-378) exists in io.netty:netty-codec-http. Attackers reach the vulnerable code path via java.io.tmpdir.

📍 Affected scope

Check the vendor advisory for the affected versions of io.netty:netty-codec-http. Attack surface: java.io.tmpdir.

🔥 Severity

Severity: ?. Confidential information can be exposed externally.

🔧 How to fix

Update to 4.1.77.Final.

🛡️ Workaround

Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.

🔍 Detection

Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Audit SBOM/dependencies to find affected services.

Response actions

Concrete steps and command examples for SOC/SRE teams to execute in order

  1. 1
    Identify exposure identify
    Audit SBOM/dependencies for affected components.

    資産台帳・SBOM・依存マニフェストで io.netty:netty-codec-http を使っているサービスとバージョンを洗い出す。

  2. 2
    Apply patch patch
    Upgrade io.netty:netty-codec-http to 4.1.77.Final

    ステージング環境で 4.1.77.Final に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。

  3. 3
    Post-deployment verification verify
    Confirm patched version is live in production

    パッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。

Affected packages

Maven io.netty:netty-codec-http
[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"4.1.77.Final"}]}]

Fix status by distribution

Fixed packages published by each distribution for this CVE

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details