Authentication Bypass by Spoofing in OctoPrint - CVE-2024-32977
Published: May 14, 2024 / Updated: November 9, 2026
Vulnerability details
The vulnerability allows an unauthenticated adjacent-network attacker to bypass OctoPrint authentication and gain access as the configured autologin user.
The vulnerability exists due to OctoPrint trusting a spoofed X-Forwarded-For header to identify local clients when autologinLocal is enabled in config.yaml. An unauthenticated adjacent-network attacker can send requests claiming a local IP address to trigger automatic login despite being outside the configured localNetworks.