Authentication Bypass by Spoofing in OctoPrint - CVE-2024-32977

 

Authentication Bypass by Spoofing in OctoPrint - CVE-2024-32977

Published: May 14, 2024 / Updated: November 9, 2026


Vulnerability identifier: #VU162900
CSH Severity: Medium
CVSS v4: 7.6 [CVSS:4.0/AV:A/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:L/SC:N/SI:N/SA:N]
CVE-ID: CVE-2024-32977
CWE-ID: CWE-290
Exploitation vector: Adjecent network
Exploit availability: No public exploit available

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.


Affected software

OctoPrint

How to mitigate CVE-2024-32977

Install security update from vendor's website.

OctoPrint - update to 1.10.1

External References

Related Security Bulletins