CyberRota Analysis
AI-GeneratedThe RealIP middleware in go-chi versions 5.2.1 to 5.2.9 is vulnerable to IP spoofing due to its reliance on the first value of the X-Forwarded-For HTTP header. This flaw allows remote attackers to circumvent IP-based access controls, manipulate rate-limiting, and forge log entries by injecting a spoofed IP address. Organizations using affected versions should prioritize upgrading to version 5.3.0 to mitigate these risks.
Public Exploit Signal
A public exploit, PoC, GitHub repository or Metasploit reference was detected for this CVE.
Note: these links are listed for security research and verification purposes only.
Original NVD Description
go-chi chi versions >= 5.2.1 and before 5.3.0 contain an IP spoofing vulnerability in the RealIP middleware, which blindly trusts the first (leftmost) value of the X-Forwarded-For HTTP header. A remote attacker can bypass IP-based access control lists and rate-limiting mechanisms, and forge log entries, by supplying a spoofed IP address in the X-Forwarded-For header. The issue is fixed in version 5.3.0.