Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessSend request with spoofed Forwarded header
-
DeliveryProxy relays header unchanged to app
-
ExploitRack 3 prefers Forwarded over X-Forwarded-For
-
ExecutionRails derives attacker-chosen request.remote_ip
-
ImpactBypass IP allowlist and rate limits, falsify logs
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V6 - Authentication IP-independent access control
|
| Exploitation Conditions | Exploitation requires ALL of: (1) Rails 8.1.0 through 8.1.4 running on Rack 3 - under Rack 2.2, forwarded_for reads only X-Forwarded-For and the issue does not arise; (2) deployment behind a reverse proxy that does NOT remove or overwrite a client-supplied Forwarded (RFC 7239) header; and (3) the application relying on request.remote_ip for IP-based access control, rate limiting (including the default by: of rate_limit), or audit logging. The AC:H rating reflects these stacked, non-default proxy/version prerequisites. Note a residual limitation of the fix itself: upgrading to 8.1.4.1 only detects the spoof when the proxy ALSO sets X-Forwarded-For; an app whose proxy forwards Forwarded but sets no X-Forwarded-For stays exposed after patching and must configure the proxy to strip/overwrite Forwarded, or set Rack::Request.forwarded_priority = [:x_forwarded] (Rack 3.0.0+). No user interaction or authentication is required (PR:N/UI:N). |
| Impact | This is a genuine but conditional security-control bypass, not a remote code execution or data-breach-by-default flaw. The input CVSS 3.0 vector (AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N, 7.4 High) correctly captures that an unauthenticated network attacker can reach the issue (AV:N/PR:N) but that exploitation is NOT universal (AC:H), because success depends on a specific stack: Rails 8.1.0-8.1.4 running on Rack 3, served behind a reverse proxy that passes a client-supplied RFC 7239 Forwarded header through unchanged, and an application that actually consumes request.remote_ip for access control, rate limiting, or auditing. The vuln.today Decision label is 'this_week' rather than act_now/emergency, which is consistent with the signal set: there is NO CISA KEV listing, NO EPSS score supplied, and NO public exploit or PoC reference in the input - only a responsible HackerOne report. So the KEV/EPSS/SSVC signals do not elevate this to active-exploitation priority; it reads as a credible, researcher-confirmed weakness awaiting opportunistic abuse, not confirmed widespread exploitation. One caveat worth flagging: the supplied C:H/I:H rating is generous for what is fundamentally a trust-boundary/IP-spoofing issue (CWE-348) whose concrete impact (allowlist bypass, rate-limit evasion, log falsification) is partial and application-dependent - hence my independent assessment lowers the impact metrics. EPSS is missing, so probabilistic exploitation likelihood cannot be stated. |
| Exploit ScenarioDerived | An application runs Rails 8.1.x on Rack 3 behind a reverse proxy that appends the real client IP to X-Forwarded-For but forwards a client-supplied Forwarded header untouched. An unauthenticated attacker sends an HTTP request containing a Forwarded: for=<chosen-ip> header; because Rack 3 prefers Forwarded over X-Forwarded-For and the legacy spoofing check only compared Client-Ip against forwarded addresses, request.remote_ip returns the attacker-chosen address, letting them bypass IP allowlists, evade rate limits keyed on the client IP (including rate_limit's default by:), and forge their source address in logs. No public exploit code is identified at time of analysis, and the AC:H rating reflects the required proxy/deployment preconditions rather than any inherent timing or race. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 10, 2026
IP address spoofing in Action Pack (Rails 8.1.0 through 8.1.4 on Rack 3) can let unauthenticated remote attackers influence request.remote_ip when a reverse proxy passes a client-supplied RFC 7239 Forwarded header through unchanged, potentially bypassing IP-keyed access controls, rate limits, and audit attribution. Exploitation requires the stacked non-default conditions of Rack 3, a proxy that does not strip or overwrite Forwarded, and an application that relies on request.remote_ip; the assessed CVSS 3.1 vector is AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N. No public exploit was identified at time of analysis.
RemediationAI
Vendor-released patch: 8.1.4.1; upgrade actionpack to that version (Rails 8.1.4.1), with the fix commit at https://github.com/rails/rails/commit/2a01a5ac521184419d9a92fa2c25e102e68cd227 and release at https://github.com/rails/rails/releases/tag/v8.1.4.1. Configure reverse proxies to remove or overwrite any client-supplied Forwarded header. If the proxy sets X-Forwarded-For, setting Rack::Request.forwarded_priority = [:x_forwarded] in an initializer (available in Rack 3.0.0+) makes Rack ignore Forwarded and restores Rails 8.0 client-address resolution, but it also makes Rack ignore Forwarded when determining the request scheme, host, and port. Upgrading alone does not protect an application whose proxy forwards a client-supplied Forwarded header and sets no X-Forwarded-For; such deployments must strip or overwrite Forwarded at the proxy or apply the forwarded_priority workaround. After upgrading, proxies that report the client address inconsistently between Forwarded and X-Forwarded-For will cause ActionDispatch::RemoteIp::IpSpoofAttackError when ip_spoofing_check is enabled (the default), so align proxy header behavior or account for that error path.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in rubygems, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Action Pack's ActionDispatch::RemoteIp middleware calculates request.remote_ip from forwarding headers so applications behind proxies can see the client address. Rails 8.1.0 changed it to use Rack::Request#forwarded_for; under Rack 3 that method reads the RFC 7239 Forwarded header in preference to X-Forwarded-For, whereas under Rack 2.2 it reads only X-Forwarded-For. The flaw is CWE-348 (Use of Less Trusted Source): a client-controlled Forwarded value can take precedence over the proxy-appended X-Forwarded-For value, and the existing spoofing check compared only Client-Ip against forwarded addresses, so it did not raise. The 8.1.4.1 fix compares the first untrusted client address in Forwarded with the first untrusted client address in X-Forwarded-For as exact strings and raises ActionDispatch::RemoteIp::IpSpoofAttackError when both headers are present and differ. The fix only detects this conflict when the proxy also sets X-Forwarded-For; if a proxy forwards a client-supplied Forwarded header and sets no X-Forwarded-For, the application remains exposed after upgrading and the proxy must strip or overwrite Forwarded, or Rack::Request.forwarded_priority must be set to [:x_forwarded] (Rack 3.0.0+).
Know when Ruby On Rails gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
Network-reachable and unauthenticated (AV:N/PR:N), but AC:H for the required Rack 3 plus Forwarded-passing-proxy preconditions; impact lowered to C:L/I:L as a partial, app-dependent IP-control bypass.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
Action Pack is a framework for handling and responding to web requests. From 8.1 until 8.1.4.1, Since Rails 8.1.0, ActionDispatch::RemoteIp derives request.remote_ip from Rack::Request#forwarded_for, which under Rack 3 reads the RFC 7239 Forwarded header in preference to X-Forwarded-For. When a reverse proxy appends the client address to X-Forwarded-For but passes a client-supplied Forwarded header through unchanged, request.remote_ip returns an address chosen by the client, and the IP spoofing check does not raise, because it compares only Client-Ip with the forwarded addresses. An unauthenticated attacker could therefore spoof request.remote_ip, possibly bypassing IP-based access controls and rate limits keyed on the client address (including the default by: of rate_limit), and falsifying the client address in logs. An application is affected if it meets all of these requirements: Runs Rails 8.1.0 through 8.1.4 with Rack 3. Under Rack 2.2, forwarded_for reads only X-Forwarded-For. Is served behind a proxy that does not remove or overwrite a client-supplied Forwarded header. Relies on request.remote_ip for access control, rate limiting, or auditing. The fix detects a spoofed Forwarded header only when the proxy also sets X-Forwarded-For. An application whose proxy passes a client-supplied Forwarded header through and sets no X-Forwarded-For remains exposed after upgrading, and should configure the proxy to remove or overwrite Forwarded, or apply the workaround below. This issue is fixed in version 8.1.4.1.
Technical POC Analysis
CWE-348, Use of Less Trusted Source.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-126083 is a high-severity vulnerability in Ruby on Rails Action Pack versions 8.1.0 through 8.1.4 running on Rack 3, allowing unauthenticated attackers to spoof IP addresses and potentially bypass IP-based access controls, rate limits, and audit logging. While exploitation requires specific non-default configurations-a reverse proxy that does not sanitize Forwarded headers-the potential for unauthorized access and obscured audit trails warrants immediate attention from security and engineering leadership.
Configure reverse proxies to strip or overwrite client-supplied RFC 7239 Forwarded headers, audit and strengthen IP-based access controls with additional authentication or network segmentation, and monitor for anomalous IP addresses in audit logs.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
More in Ruby On Rails
View alllib/active_support/json/backends/yaml.rb in Ruby on Rails 2.3.x before 2.3.16 and 3.0.x before 3.0.20 does not properly
active_support/core_ext/hash/conversions.rb in Ruby on Rails before 2.3.15, 3.0.x before 3.0.19, 3.1.x before 3.1.10, an
Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to e
actionpack/lib/action_view/lookup_context.rb in Action View in Ruby on Rails 3.x before 3.2.16 and 4.x before 4.0.2 allo
Unauthenticated attackers can write arbitrary files on a Ruby on Rails host and, when Active Storage uses the Disk servi
Unauthenticated remote code execution is achievable in Square Squash (all versions through commit e73f280) through a two
SQL injection vulnerability in the 'order' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execute
SQL injection vulnerability in the 'reorder' method in Ruby on Rails 5.1.4 and earlier allows remote attackers to execut
SQL injection vulnerability in the Active Record component in Ruby on Rails before 3.0.18, 3.1.x before 3.1.9, and 3.2.x
The Active Record component in Ruby on Rails before 3.0.14, 3.1.x before 3.1.6, and 3.2.x before 3.2.6 does not properly
ActiveRecord in Ruby on Rails before 2.3.17 and 3.x before 3.1.0 allows remote attackers to cause a denial of service or
Authenticated store customers can seize other shoppers' guest carts in Spree Commerce by calling PATCH /api/v3/store/car
EUVD-2026-122936
GHSA-2gff-2mmg-m73p
NVD
CVE.org
EPSS
Exploit-DB