CVE-2026-49017 — swift
CVE-2026-49017 is a CWE-835 vulnerability in swift. No vendor fix is recorded yet; mitigation options are listed below.
OpenStack Swift: s3api middleware enters an infinite loop when processing a truncated aws-chunked PUT request body
Exploitation Status
No confirmed exploitation observed yet
- CISA’s own triage has not observed active exploitation or public proof-of-concept code for this CVE as of its last assessment.
Exploitation and automatability from CISA’s SSVC triage for CVE-2026-49017.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
Real-World Exposure
swift🐍swiftReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects PyPI packages — download data is not available via public APIs for these ecosystems.
Description
In OpenStack Swift before 2.36.2 and 2.37.2, s3api middleware enters an infinite loop when processing a truncated aws-chunked PUT request body. The StreamingInput class repeatedly appends an empty buffer and re-reads, causing the proxy-server worker handling the request to become permanently unresponsive with increasing CPU and memory consumption. An authenticated attacker can systematically exhaust all proxy-server workers, resulting in denial of service. The defect was introduced in Swift 2.36.0.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐍PyPI | swift | ≥ 2.36.0 | No fix |
| 🐍PyPI | swift | ≥ 2.37.0 | No fix |
Affected Products
swiftopenstackDetection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for swift, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Remediation status
No patched version of swift has shipped for CVE-2026-49017 yet. Where your build allows, override or pin the dependency away from the vulnerable range, and apply any maintainer-recommended mitigation.
Mitigate without a patch
Cap what an attacker can consume: apply request size, rate and timeout limits in front of the affected component, and run it with memory and CPU limits so exhaustion degrades one worker rather than the whole service.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
If S3 API compatibility is not required, the `s3api` middleware can be disabled in the Swift proxy server configuration. This action will prevent the exploitation of this vulnerability by removing the affected functionality. Disabling `s3api` will remove S3 API support for OpenStack Swift, which may impact services relying on this functionality.Source: Red Hat security advisory for CVE-2026-49017 (CC BY 4.0)
Frequently Asked Questions
Is CVE-2026-49017 in your dependencies?
Find it across PyPI, including transitive dependencies.