Improper Neutralization of Null Byte or NUL Character Affecting civetweb package, versions <1.16+dfsg-3ubuntu0.1


Severity

Recommended
medium

Based on Ubuntu security rating.

Threat Intelligence

EPSS
0.76% (53rd percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-UBUNTU2604-CIVETWEB-16234398
  • published14 Sept 2026
  • disclosed29 Sept 2025

Introduced: 29 Sep 2025

CVE-2025-9648  (opens in a new tab)
CWE-158  (opens in a new tab)

How to fix?

Upgrade Ubuntu:26.04 civetweb to version 1.16+dfsg-3ubuntu0.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream civetweb package and not the civetweb package as distributed by Ubuntu. See How to fix? for Ubuntu:26.04 relevant fixed versions and status.

A vulnerability in the CivetWeb library's function mg_handle_form_request allows remote attackers to trigger a denial of service (DoS) condition. By sending a specially crafted HTTP POST request containing a null byte in the payload, the server enters an infinite loop during form data parsing. Multiple malicious requests will result in complete CPU exhaustion and render the service unresponsive to further requests.

This issue was fixed in commit 782e189. This issue affects only the library, standalone executable pre-built by vendor is not affected.