CVE-2026-126083 Action Pack: Possible IP spoofing in Action Dispatch RemoteIp
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- UbuntuDebianRed Hat
Description
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.
Upgrade path
6 packages: 1 fixed, 4 with no fix yet.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| ubuntu/rails(Ubuntu 22.04) | All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 24.04) | All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 26.04) | All versions | No fix listed | No fix yet |
| ubuntu/rails(Ubuntu 26.10) | All versions | No fix listed | No fix yet |
| rubygems actionpack(RubyGems) | = 8.1.0; = 8.1.0.beta1; = 8.1.0.rc1; = 8.1.1 +6 more | 8.1.4.1 | Fixed |
| rails | = >= 8.1, < 8.1.4.1 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| rubygems actionpack(RubyGems) | >= 8.1.0.beta1, < 8.1.4.1 | 8.1.4.1 |
| rubygems actionpack(RubyGems) | = 8.1.0 | No fix listed |
| rubygems actionpack(RubyGems) | = 8.1.0.beta1 | No fix listed |
| rubygems actionpack(RubyGems) | = 8.1.0.rc1 | No fix listed |
| rubygems actionpack(RubyGems) | = 8.1.1 | No fix listed |
| rubygems actionpack(RubyGems) | = 8.1.2 | No fix listed |
| rubygems actionpack(RubyGems) | = 8.1.2.1 | No fix listed |
| rubygems actionpack(RubyGems) | = 8.1.3 | No fix listed |
| rubygems actionpack(RubyGems) | = 8.1.3.1 | No fix listed |
| rubygems actionpack(RubyGems) | = 8.1.4 | No fix listed |
| rails | = >= 8.1, < 8.1.4.1 | No fix listed |
| ubuntu/rails(Ubuntu:22.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:24.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:26.04) | All versions | No fix listed |
| ubuntu/rails(Ubuntu:26.10) | All versions | No fix listed |
References
- Red Hat CVE page mitigation vendor-advisory
- Red Hat Bugzilla 2571280 issue-tracking
- www.cve.org
- nvd.nist.gov
- https://github.com/rails/rails/commit/2a01a5ac521184419d9a92fa2c25e102e68cd227 patch
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails/security/advisories/GHSA-2gff-2mmg-m73p vendor-advisory
- Debian Security Tracker CVE-2026-126083 vendor-advisory
- github.com product
- github.com
- github.com
- Ubuntu CVE tracker vendor-advisory
- ENISA EUVD EUVD-2026-122936 third-party-advisory