CVE-2022-24667
Swift vulnerability analysis and mitigation

Overview

A vulnerability in swift-nio-http2 (CVE-2022-24667) was discovered that affects versions 1.0.0 to 1.19.1. The vulnerability allows for a denial of service attack through specially crafted HPACK-encoded header blocks. The issue was discovered through automated fuzzing by oss-fuzz and was disclosed on February 9, 2022. The vulnerability impacts any program using the swift-nio-http2 library (GitHub Advisory).

Technical details

The vulnerability stems from implementation errors in parsing HPACK-encoded header blocks, which can trigger crashes instead of integer overflows. The vulnerability can be exploited through HPACK-carrying frames in HTTP/2 connections, specifically HEADERS and PUSH_PROMISE frames, at any position. The severity is rated as HIGH with a CVSS v3.1 base score of 7.5 (Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H) and is classified under CWE-190 (Integer Overflow or Wraparound) (NVD, GitHub Advisory).

Impact

The impact of this vulnerability is primarily on service availability. When exploited, it immediately crashes the server, causing all in-flight connections to drop and requiring service restart. While the vulnerability itself doesn't directly compromise confidentiality or integrity, the sudden process crashes could potentially lead to violations of service invariants that might have secondary confidentiality or integrity implications (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in version 1.19.2 through a rewrite of the parsing code to correctly handle all conditions in the function. For systems unable to update immediately, the risk can be partially mitigated by preventing untrusted peers from communicating with the service, though this mitigation strategy isn't feasible for many services (GitHub Advisory).

Additional resources


SourceThis report was generated using AI

Related Swift vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-54951CRITICAL9.8
  • JavaJava
  • org.pytorch:executorch-android
NoYesAug 07, 2025
CVE-2025-54950CRITICAL9.8
  • JavaJava
  • executorch
NoYesAug 07, 2025
CVE-2025-54949CRITICAL9.8
  • JavaJava
  • org.pytorch:executorch-android
NoYesAug 07, 2025
CVE-2025-30405CRITICAL9.8
  • JavaJava
  • org.pytorch:executorch-android
NoYesAug 07, 2025
GHSA-xvr7-p2c6-j83wMEDIUM6.3
  • SwiftSwift
  • SwiftNIOHPACK
NoYesAug 13, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management