Action Pack: IP spoofing in ActionDispatch::RemoteIp (CVE-2026-126083)
An unauthenticated attacker can spoof their remote IP address in Rails 8.1.0-8.1.4 by providing a malicious Forwarded header, potentially bypassing IP-based access controls and rate limiting.
CVE search metadata
CVE search record: CVE-2026-126083. Severity: high. CVSS: 7.4. KEV: no. Product: actionpack (>= 8.1.0, < 8.1.4.1). Brief: Action Pack: IP spoofing in ActionDispatch::RemoteIp (CVE-2026-126083). Brief link: https://feed.craftedsignal.io/briefs/2026-11-actionpack-ip-spoofing/
Triage facts
Revision 1- Applicability
- actionpack (>= 8.1.0, < 8.1.4.1)
- Evidence
- Unknown
- Severity
- High
- Action
- Elevated
- Sources
- 3 public sources
- Freshness
- Revision 1Nov 11, 02:05 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- B2Roughly even chance
A vulnerability in ActionDispatch::RemoteIp (CVE-2026-126083) allows unauthenticated attackers to bypass IP-based security controls by spoofing the client IP address. The vulnerability arises because Rails 8.1.0 and later, when running on Rack 3, defaults to reading the RFC 7239 'Forwarded' header. If a reverse proxy passes a client-supplied 'Forwarded' header while simultaneously appending the actual client address to the 'X-Forwarded-For' header, the application incorrectly trusts the 'Forwarded' header, allowing an attacker to choose their perceived 'remote_ip'.
Impact
Successful exploitation may allow attackers to bypass IP-based access control lists (ACLs) and rate limits, and leads to incorrect client identification in application logs.
Recommendation
- Upgrade to Action Pack 8.1.4.1 or later immediately.
- If upgrading is not immediately possible, configure reverse proxies to explicitly remove or overwrite the 'Forwarded' header before the request reaches the Rails application.
- Alternatively, set 'Rack::Request.forwarded_priority = [:x_forwarded]' in an initializer to force Rack to ignore the 'Forwarded' header.
- Audit logs for instances of 'ActionDispatch::RemoteIp::IpSpoofAttackError' following the deployment of the patch, as these may indicate blocked spoofing attempts.
Immediate actions
Upgrade actionpack to version 8.1.4.1 or later on all Rails applications
Threat Hunt
Identify applications utilizing Rack 3 and Rails 8.1.x that are exposed to client-supplied Forwarded headers
Data: Proxy configuration logs, Application dependency inventory
Mitigations
Configure reverse proxy to scrub incoming Forwarded headers
CVE-2026-126083