Categories
CVE-2022-3252

Vulnerability in github.com/apple/swift-nio-extras (CVE-2022-3252)

Summary

Vulnerability in github.com/apple/swift-nio-extras (CVE-2022-3252). Risk of unauthorized operations or information disclosure. Exploitable via HTTPRequestDecompressor. Mitigation: upgrade to 1.9.2 or later.

Original description

The description as published by the source.

Improper detection of complete HTTP body decompression SwiftNIO Extras provides a pair of helpers for transparently decompressing received HTTP request or response bodies. These two objects (HTTPRequestDecompressor and HTTPResponseDecompressor) both failed to detect when the decompressed body was considered complete. If trailing junk data was appended to the HTTP message body, the code would repeatedly attempt to decompress this data and fail. This would lead to an infinite loop making no forward progress, leading to livelock of the system and denial-of-service. This issue can be triggered by any attacker capable of sending a compressed HTTP message. Most commonly this is HTTP servers, as compressed HTTP messages cannot be negotiated for HTTP requests, but it is possible that users have configured decompression for HTTP requests as well. The attack is low effort, and likely to be reached without requiring any privilege or system access. The impact on availability is high: the process immediately becomes unavailable but does not immediately crash, meaning that it is possible for the process to remain in this state until an administrator intervenes or an automated circuit breaker fires. If left unchecked this issue will very slowly exhaust memory resources due to repeated buffer allocation, but the buffers are not written to and so it is possible that the processes will not terminate for quite some time. This risk can be mitigated by removing transparent HTTP message decompress…

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-3252 has been found in github.com/apple/swift-nio-extras.
Attackers can target a specific entry point like HTTPRequestDecompressor over the network to misuse the product.
Risk of unauthorized operations or information disclosure.
What to do: upgrade github.com/apple/swift-nio-extras to 1.9.2 or later.
If unsure, ask your IT team or search "github.com/apple/swift-nio-extras CVE-2022-3252" on the vendor's site.

CVE-2022-3252 (github.com/apple/swift-nio-extras) — CWE-835
Attack vector: remote (network-reachable) / unauthenticated / no user interaction
Attack surface: HTTPRequestDecompressor / HTTPResponseDecompressor
Patched: 1.9.2 — 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-835) exists in github.com/apple/swift-nio-extras. Attackers reach the vulnerable code path via HTTPRequestDecompressor without authentication.

📍 Affected scope

Check the vendor advisory for the affected versions of github.com/apple/swift-nio-extras. Attack surface: HTTPRequestDecompressor / HTTPResponseDecompressor.

🔥 Severity

Severity: ?. Risk of unauthorized operations or information disclosure.

🔧 How to fix

Update to 1.9.2.

🛡️ 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. Run grep -r 'github.com/apple/swift-nio-extras' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.

Response actions

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

  1. 1
    Identify exposure identify
    grep -r 'github.com/apple/swift-nio-extras' . | grep -v node_modules

    リポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で github.com/apple/swift-nio-extras を grep し、稼働しているサービス・バージョンを把握する。

  2. 2
    Apply patch patch
    Upgrade github.com/apple/swift-nio-extras to 1.9.2

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

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

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

Affected packages

SwiftURL github.com/apple/swift-nio-extras
[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.9.2"}]}]

References

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