Vulnerability advisory

CVE-2022-3215

Published Updated OSV record ↗

Also known as GHSA-7fj7-39wj-c64f

Severity
  • CVSS 3.xCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N

Affected versions

Repository

Affected commitsFixed by commit
GIT github.com/apple/swift-nio ↗
All commits before aa5be1d2deee1ddf89438c40c64b246b1c16fbd3aa5be1d2deee1ddf89438c40c64b246b1c16fbd3
d79e33308b0ac83326b0ead0ea6446e604b8162d to before d0f261ddd9eb8694290c09a16e18a00c76846182d0f261ddd9eb8694290c09a16e18a00c76846182
124119f0bb12384cef35aa041d7c3a686108722d to before a16e2f54a25b2af217044e5168997009a505930fa16e2f54a25b2af217044e5168997009a505930f
Also listed as affected (80)
  • 2.29.0
  • 2.39.0
  • 2.41.1
  • 2.41.0
  • 2.40.0
  • 2.38.0
  • 2.37.0
  • 2.36.0
  • 2.35.0
  • 2.34.0
  • 2.33.0
  • 2.32.3
  • 2.32.2
  • 2.32.1
  • 2.32.0
  • 2.31.0
  • 2.30.0
  • 2.28.0
  • 2.27.0
  • 2.26.0
  • 2.25.1
  • 2.25.0
  • 2.24.0
  • 2.23.0
  • 2.22.1
  • 2.22.0
  • 2.21.0
  • 2.20.2
  • 2.20.1
  • 2.20.0
  • 2.19.0
  • 2.18.0
  • 2.17.0
  • 2.16.0
  • 2.15.0
  • 2.14.0
  • 2.13.0
  • 2.12.0
  • 2.11.1
  • 2.11.0
  • 2.10.1
  • 2.10.0
  • 2.9.0
  • 2.8.0
  • 2.7.1
  • 2.7.0
  • 2.6.1
  • 2.6.0
  • 2.5.1
  • 2.5.0
  • 2.4.0
  • 2.3.0
  • 2.2.0
  • 2.1.0
  • 2.0.0
  • 2.0.0-convergence.4
  • 2.0.0-convergence.3
  • 2.0.0-convergence.2
  • 2.0.0-convergence.1
  • 1.12.0
  • 1.11.0
  • 1.10.0
  • 1.9.0
  • 1.6.1
  • 1.7.2
  • 1.4.2
  • 1.5.1
  • 1.2.1
  • 1.3.1
  • 1.0.0
  • 1.1.0
  • 1.8.0
  • 1.7.1
  • 1.7.0
  • 1.6.0
  • 1.5.0
  • 1.4.1
  • 1.4.0
  • 1.3.0
  • 1.2.0

Description

NIOHTTP1 and projects using it for generating HTTP responses can be subject to a HTTP Response Injection attack. This occurs when a HTTP/1.1 server accepts user generated input from an incoming request and reflects it into a HTTP/1.1 response header in some form. A malicious user can add newlines to their input (usually in encoded form) and "inject" those newlines into the returned HTTP response. This capability allows users to work around security headers and HTTP/1.1 framing headers by injecting entirely false responses or other new headers. The injected false responses may also be treated as the response to subsequent requests, which can lead to XSS, cache poisoning, and a number of other flaws. This issue was resolved by adding validation to the HTTPHeaders type, ensuring that there's no whitespace incorrectly present in the HTTP headers provided by users. As the existing API surface is non-failable, all invalid characters are replaced by linear whitespace.

References

  • Codex
  • Claude Code
  • VS Code
  • GitHub Copilot
  • Cursor
  • Cline
  • Windsurf
  • Google Anti-gravity
  • OpenCode
  • Pi
  • Gemini CLI
  • Hermes Agent
  • Zed
  • Junie
  • Qwen Code
  • Kiro
  • Kilo Code
  • Factory Droid

Set up GitHits for your agents

Run this command:

<> bash
npx githits@latest init

What happens next:

  1. Opens your browser to authorize GitHits
  2. Asks whether to set up GitHits at the user or project level
  3. Detects your supported AI coding tools
  4. Lets you choose which tools to configure
  5. Configures the selected tools