cve.bz

CVE-2021-29509 Improper Locking

7.5 highEPSS 1.6%Fix available

High (7.5). EPSS 1.6% estimated probability of exploitation activity in the next 30 days. Fixed in puma 4.3.8, 5.3.1.

On this page
Puma is a concurrent HTTP 1.1 server for Ruby/Rack applications. The fix for CVE-2019-16770 was incomplete. The original fix only protected existing connections that had already been accepted from having their requests starved by greedy persistent-connections saturating all threads in the same process. However, new connections may still be starved by greedy persistent-connections saturating all threads in all processes in the cluster. A `puma` server which received more concurrent `keep-alive` connections than the server had threads in its threadpool would service only a subset of connections, denying service to the unserved connections. This problem has been fixed in `puma` 4.3.8 and 5.3.1. Setting `queue_requests false` also fixes the issue. This is not advised when using `puma` without a reverse proxy, such as `nginx` or `apache`, because you will open yourself to slow client attacks (e.g. slowloris). The fix is very small and a git patch is available for those using unsupported versions of Puma.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
1.6% (unchanged from 1.6% a week ago; 1.6% 30 days ago) estimated probability of exploitation activity in the next 30 days; 76th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWEs
CWE-667 Improper Locking
CWE-400 Uncontrolled Resource Consumption
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2021-29509 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2021-29509?via=ask-ai-copy and https://cve.bz/cve/CVE-2021-29509?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2021-29509 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
puma:pumabefore 4.3.8
puma:pumafrom 5.0.0 before 5.3.1
debian:debian_linux10.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-q28m-8xjw-8vr5RubyGemspuma<4.3.84.3.8
GHSA-q28m-8xjw-8vr5RubyGemspuma>=5.0.0 <5.3.15.3.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10puma3.12.0-2+deb10u3DLA-3083-1
Debian12, 13, 14puma4.3.8-1DEBIAN-CVE-2021-29509
Red Hatsatellite:6.10::el7candlepin0:4.0.9-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7satellite0:6.10.0-3.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-activerecord-session_store0:2.0.0-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-addressable0:2.8.0-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-puma0:5.3.2-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7tfm-rubygem-rails, tfm-rubygem-actionpack0:6.0.3.7-1.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7foreman0:2.5.2.17-2.el7satRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-aiohttp0:3.7.4-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-ecdsa, python3-ecdsa0:0.13.3-2.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-pyyaml, python3-pyyaml0:5.4.1-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python-urllib3, python3-urllib30:1.26.5-1.el7pcRHSA-2021:4702
Red Hatsatellite:6.10::el7, satellite_capsule:6.10::el7python3-django0:2.2.24-1.el7pcRHSA-2021:4702
2 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise High Availability Extension 15 SP1, Linux Enterprise High Availability Extension 15 SP2 and 1 morerubygem-puma4.3.11-150000.3.6.2SUSE-SU-2022:1515-1
SUSEOpenStack Cloud Crowbar 8rubygem-puma2.16.0-3.12.1SUSE-SU-2021:2761-1
SUSEOpenStack Cloud Crowbar 9rubygem-puma2.16.0-4.12.1SUSE-SU-2021:2914-1
openSUSELeap 15.3, Leap 15.4rubygem-puma4.3.11-150000.3.6.2SUSE-SU-2022:1515-1
openSUSETumbleweedruby3.2-rubygem-puma-55.6.5-1.7openSUSE-SU-2024:13166-1
openSUSETumbleweedrubygem-puma-55.6.5-1.1openSUSE-SU-2024:12592-1
openSUSETumbleweedrubygem-puma-55.6.8-1.1openSUSE-SU-2024:13721-1

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

Red Hat CloudForms 5.0 (CFME 5.11) is in the maintenance support phase and we are no longer fixing Medium/Low severity security bugs. Reference: https://access.redhat.com/support/policy/updates/cloudforms

ProductPackageStateAdvisory
Red Hat Satellite 6.10 for RHEL 7tfm-rubygem-puma-0:5.3.2-1.el7satFixed 2021-11-16RHSA-2021:4702
CloudForms Management Engine 5rubygem-pumaWill not fix
Red Hat 3scale API Management Platform 23scale-amp-backendNot affected
Red Hat 3scale API Management Platform 23scale-amp-zyncNot affected
Red Hat 3scale API Management Platform 2systemAffected
Red Hat Storage 3rubygem-pumaWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2021-29509.

Attack patterns (CAPEC)

  • CAPEC-25 Forced Deadlock Likelihood: Low · Severity: High
  • CAPEC-26 Leveraging Race Conditions Likelihood: High · Severity: High
  • CAPEC-27 Leveraging Race Conditions via Symbolic Links Likelihood: Medium · Severity: High
  • CAPEC-147 XML Ping of the Death Likelihood: Low · Severity: Medium
  • CAPEC-227 Sustained Client Engagement
  • CAPEC-492 Regular Expression Exponential Blowup

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON