PT-2023-3153 · Yhirose · Cpp-Httplib

Alessio Della Libera

·

Published

2023-05-30

·

Updated

2024-10-28

·

CVE-2023-26130

CVSS v3.1

8.8

High

VectorAV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions yhirose/cpp-httplib versions prior to 0.12.4
Description The issue is related to the incomplete fix for a previous problem, which allows an attacker to inject arbitrary HTTP headers when untrusted user input is used to set the content-type header in HTTP requests, such as .Patch, .Post, .Put, and .Delete. This can lead to logical errors and other misbehaviors. The vulnerability is due to the lack of measures to neutralize CRLF sequences.
Recommendations For versions prior to 0.12.4, update to version 0.12.4 or later to resolve the issue. As a temporary workaround, consider validating and sanitizing user input for the content-type header to prevent CRLF injection. Restrict access to the HTTP .Patch, .Post, .Put, and .Delete requests until the issue is resolved.

Fix

Special Elements Injection

Command Injection

Weakness Enumeration

Related Identifiers

BDU:2023-03252
CVE-2023-26130
OESA-2023-1364
OESA-2023-1365

Affected Products

Cpp-Httplib