Loop with Unreachable Exit Condition ('Infinite Loop') Affecting swift package, versions <2.37.1-0ubuntu2.1


Severity

Recommended
0.0
medium
0
10

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.36% (27th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2604-SWIFT-16913755
  • published10 Jun 2026
  • disclosed27 May 2026

Introduced: 27 May 2026

CVE-2026-49017  (opens in a new tab)
CWE-835  (opens in a new tab)

How to fix?

Upgrade Ubuntu:26.04 swift to version 2.37.1-0ubuntu2.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream swift package and not the swift package as distributed by Ubuntu. See How to fix? for Ubuntu:26.04 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1