---
title: "CVE-2026-45352"
canonical_url: "https://pkgseek.com/security/CVE-2026-45352"
locale: "zh-CN"
source: "pkgseek"
entity_type: "cve"
severity: "high"
---

# CVE-2026-45352

cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. Prior to 0.43.4, negative chunk-size in chunked Transfer-Encoding causes unbounded memory allocation and process crash. The ChunkedDecoder::read_payload function in cpp-httplib (httplib.h) parses the chunk-size field of HTTP chunked transfer encoding using std::strtoul(). Per the C standard (§7.22.1.4), strtoul silently accepts a leading minus sign, performing unsigned wrap-around: strtoul("-2", …, 16) returns ULONG_MAX − 1 (0xFFFFFFFFFFFFFFFE). The library's only guard (line 12833) rejects ULONG_MAX (the re…

CVE-2026-45352 严重级别为 HIGH (7.5)，共索引 4 条受影响软件包构建记录，涉及 2 个发行版。

- **级别 / 评分**: HIGH (7.5)
- **受影响构建数**: 4
- **涉及发行版**: 2
- **已标明修复版本发行版**: Fedora

## Affected Packages

| Distribution | Release | Package | Version | Fixed In |
| --- | --- | --- | --- | --- |
| Debian | trixie | libcpp-httplib0.18 | 0.18.7-1+deb13u1 | — |
| Debian | trixie | libcpp-httplib-dev | 0.18.7-1+deb13u1 | — |
| Fedora | 43 | cpp-httplib-devel | 0.20.1-2.fc43 | 0.48.0-1.fc43 |
| Fedora | 44 | cpp-httplib-devel | 0.38.0-1.fc44 | 0.48.0-1.fc44 |
