NULL Pointer Dereference Affecting cpp-httplib package, versions [,0.44.0)


Severity

Recommended
0.0
high
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.05% (15th 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 Learn

Learn about NULL Pointer Dereference vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-CONAN-CPPHTTPLIB-17099492
  • published30 May 2026
  • disclosed29 May 2026
  • credit73Lab

Introduced: 29 May 2026

NewCVE-2026-46527  (opens in a new tab)
CWE-476  (opens in a new tab)

How to fix?

Upgrade cpp-httplib to version 0.44.0 or higher.

Overview

Affected versions of this package are vulnerable to NULL Pointer Dereference in the get_client_ip process when the server is configured with trusted proxies and receives a specially crafted X-Forwarded-For header that parses to no valid IP segments. An attacker can cause abnormal process termination or undefined behavior by sending such a request. This is only exploitable if the server is configured with a non-empty trusted-proxy list.

CVSS Base Scores

version 4.0
version 3.1