# 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…

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.60%, higher than 76% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-01-05T00:00:00.000Z
- Modified: 2026-06-17T07:10:41.493Z
- Weaknesses: CWE-787
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- alekseykurepin pico_http_server_in_c: up to 2021-04-02

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/foxweb/pico/issues/31> (exploit, issue-tracking, mitigation, third-party-advisory)
- <https://github.com/foxweb/pico/commit/7a5e4e242121c839cb77f5b9003e735a852f4e58>
- <https://github.com/foxweb/pico/commit/e2d172f>

## Sources

- CVE List: [CVE-2024-22087](https://www.cve.org/CVERecord?id=CVE-2024-22087), CVE Terms of Use, modified 2026-01-23
- NVD: [CVE-2024-22087](https://nvd.nist.gov/vuln/detail/CVE-2024-22087), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-22087 · Whole record: https://cve.day/CVE-2024-22087.json · Rebuilt by cve.day 2026-11-25T22:58:35.926Z
