{"id":"CVE-2023-28846","published":"2023-03-30T19:57:38Z","modified":"2025-02-11T18:46:42Z","title":"Denial of Service in unpoly-rails","vendor":"unpoly","product":"unpoly-rails","tier":"tail","description":{"text":"Unpoly is a JavaScript framework for server-side web applications. There is a possible Denial of Service (DoS) vulnerability in the `unpoly-rails` gem that implements the Unpoly server protocol for Rails applications. This issues affects Rails applications that operate as an upstream of a load balancer's that uses passive health checks. The `unpoly-rails` gem echoes the request URL as an `X-Up-Location` response header. By making a request with exceedingly long URLs (paths or query string), an attacker can cause unpoly-rails to write a exceedingly large response header.  If the response header is too large to be parsed by a load balancer downstream of the Rails application, it may cause the load balancer to remove the upstream from a load balancing group. This causes that application instance to become unavailable until a configured timeout is reached or until an active healthcheck succeeds. This issue has been fixed and released as version 2.7.2.2 which is available via RubyGems and GitHub. Users unable to upgrade may: Configure your load balancer to use active health checks, e.g. by periodically requesting a route with a known response that indicates healthiness; Configure your load balancer so the maximum size of response headers is at least twice the maximum size of a URL; or instead of changing your server configuration you may also configure your Rails application to delete redundant `X-Up-Location` headers set by unpoly-rails.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.9,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01034,"percentile":0.64635,"provenance":"source"},"cwes":[{"id":"CWE-400","name":"Uncontrolled Resource Consumption"}],"references":[{"url":"https://github.com/unpoly/unpoly-rails/security/advisories/GHSA-m875-3xf6-mf78","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/unpoly/unpoly-rails/commit/cd9ad0007daceeb3b2354fdcab4f88350427bf16","tags":["x_refsource_MISC"]},{"url":"https://docs.nginx.com/nginx/admin-guide/load-balancer/http-health-check/#passive-health-checks","tags":["x_refsource_MISC"]},{"url":"https://github.com/unpoly/unpoly-rails/","tags":["x_refsource_MISC"]},{"url":"https://makandracards.com/operations/537537-nginx-proxy-buffer-tuning","tags":["x_refsource_MISC"]},{"url":"https://tryhexadecimal.com/guides/http/414-request-uri-too-long","tags":["x_refsource_MISC"]},{"url":"https://unpoly.com/up.protocol","tags":["x_refsource_MISC"]}],"priority":{"score":17.1,"factors":[{"name":"EPSS percentile","points":12.93},{"name":"CVSS severity","points":4.13}]},"vendorSlug":"unpoly","affectedVersions":[{"vendor":"unpoly","product":"unpoly-rails","versions":["< 2.7.2.2"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-02-11T18:46:12.608525Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"RubyGems","package":"unpoly-rails","vulnerableRanges":["<2.7.2.2"],"patched":["2.7.2.2"],"from":["GHSA-m875-3xf6-mf78"],"provenance":"source"}],"summary":{"text":"The unpoly-rails gem, which implements the Unpoly server protocol for Rails applications, echoes the request URL back in an X-Up-Location response header, and this becomes a denial-of-service flaw for Rails apps sitting behind a load balancer that uses passive health checks. An unauthenticated remote attacker who sends a request with an exceptionally long URL (path or query string) can cause an oversized response header that the downstream load balancer cannot parse, leading it to remove that application instance from its pool until a timeout expires or an active health check succeeds.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:06:44Z"},"euvd":{"id":"EUVD-2023-1057","exploited":false,"provenance":"source"}}