CVE-2024-22087

route in main.c in Pico HTTP Server in C through f3b69a6 has an sprintf stack-based buffer overflow via a long URI, leading to remote code execution

Critical · published January 5, 2024

CVSS v3.1
9.8
EPSS
2%
Percentile
75.6
In the wild
Unconfirmed
What it is

🔥 A long URI is the secret ingredient for disaster! The Pico HTTP Server's stack-based buffer overflow allows a simple, overly lengthy request to execute arbitrary code on the server. 🚨 Think of it like a waiter who takes an order without checking how much food can fit on a single plate; when you stack on too many items, the plate crashes down and spills everywhere — that’s what happens here with memory! An attacker could exploit this vulnerability to execute any code they want, effectively taking control of the server—like a burglar gaining access to the safe that holds everything valuable! This could lead to data breaches, service disruptions, and total chaos for impacted systems.

Put simply

Think of it like a waiter who takes an order without checking how much food can fit on a single plate; when you stack on too many items, the plate crashes down and spills everywhere — that’s what happens here with memory! The vulnerability arises from an unchecked sprintf operation in the Pico HTTP Server's main.c, allowing a malicious actor to trigger a stack-based buffer overflow through a crafted long URI, leading to remote code execution.

What to do

An attacker could exploit this vulnerability to execute any code they want, effectively taking control of the server—like a burglar gaining access to the safe that holds everything valuable! This could lead to data breaches, service disruptions, and total chaos for impacted systems. Update the Pico HTTP Server to the latest version to patch this vulnerability promptly. Additionally, implement input length validation to prevent excessively long URIs and conduct regular security audits to catch similar issues early. 🛡️ You’ve got this! Take action, and you’ll have your server protected in no time. 💪✨

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01598 · 75.6th percentile
Published
2024-01-05T00:00Z
EPSS history
Timeline
  • 05 JAN 00:00Z
    route in main.c in Pico HTTP Server in C through f3b69a6 has an sprintf stack-based buffer overflow via a long URI, leading to remote code execution
    cvelistv5