4.2

CVE-2025-32441: rack Race Condition

CVSS: 4.2v3.1MediumAnalyzed
AliasesUBUNTU-CVE-2025-32441DEBIAN-CVE-2025-32441CGA-27j8-vv4j-47f5
Published 07-05-2025Last modified 08-05-2025

Vulnerability summary

CVE-2025-32441 is a medium (CVSS 4.2) Race Condition vulnerability in rack. EPSS estimates a 0.24% chance of exploitation in the next 30 days, higher than 14% of scored vulnerabilities.

Overall risk
17/100
0100
Low · default modelHow is this calculated?
CVSS score
4.2/10
010
Medium · v3.1 (CVE.org)
EPSS score
0.24%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits0No public exploits recorded

Advisory lineage

Upstream 0 · Downstream 8 · Related 9

Timeline

  1. 07-05-2025
    PublishedVulnerability first disclosed.
  2. 08-05-2025
    Last modifiedVulnerability information updated.

Description

Rack is a modular Ruby web server interface. Prior to version 2.2.14, when using the `Rack::Session::Pool` middleware, simultaneous rack requests can restore a deleted rack session, which allows the unauthenticated user to occupy that session. Rack session middleware prepares the session at the beginning of request, then saves is back to the store with possible changes applied by host rack application. This way the session becomes to be a subject of race conditions in general sense over concurrent rack requests. When using the `Rack::Session::Pool` middleware, and provided the attacker can acquire a session cookie (already a major issue), the session may be restored if the attacker can trigger a long running request (within that same session) adjacent to the user logging out, in order to retain illicit access even after a user has attempted to logout. Version 2.2.14 contains a patch for the issue. Some other mitigations are available. Either ensure the application invalidates sessions atomically by marking them as logged out e.g., using a `logged_out` flag, instead of deleting them, and check this flag on every request to prevent reuse; or implement a custom session store that tracks session invalidation timestamps and refuses to accept session data if the session was invalidated after the request began.

CVSS metrics

7 scores · 7 sources · 1 version

EPSS trend

Probability

0.24%

Chance of exploitation in the next 30 days

Percentile

14%

Versus all other CVEs

30-day change

+0.01 pp

From 0.23% on 19-09-2026

19-09-202619-10-2026
EPSS score
0.24%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

0 found

No public exploits indexed.

Weaknesses

CWE · root cause

Affected systems

Chainguard6 products
  • gitlab-rails-ce-18.1< 18.1.6-r13
  • gitlab-rails-ce-fips-18.1All versions (No fix recorded)
  • ruby3.2-rack-2.2< 2.2.22-r0
  • ruby3.3-rack-2.2< 2.2.22-r0
  • ruby3.4-rack-2.2< 2.2.22-r0
Wolfi4 products
  • ruby3.2-rack-2.2< 2.2.22-r0
  • ruby3.3-rack-2.2< 2.2.22-r0
  • ruby3.4-rack-2.2< 2.2.22-r0
  • ruby4.0-rack-2.2< 2.2.22-r0
Debian1 product
  • ruby-rack< 2.2.20-0+deb12u1 | < 3.0.8-2
Rack1 product
RubyGems1 product
  • rack< 2.2.14
Ubuntu1 product
  • ruby-rack< 1.5.2-3+deb8u3ubuntu1~esm10 | < 1.6.4-3ubuntu0.2+esm8 | < 1.6.4-4ubuntu0.2+esm8 | < 2.0.7-2ubuntu0.1+esm7 | < 2.1.4-5ubuntu1.1+esm2 | < 2.2.7-1ubuntu0.3 | < 3.1.16-0.1

6 vendors · 14 products

References

12 links
Show all 12 references