A vulnerability was found in yhirose cpp-httplib 0.21.0. It has been rated as problematic.Using CWE to declarethe problem leads to CWE-400. The product doesnot properly control the allocation and maintenance of a limited resource, thereby enabling an actor to influence the amountof resources consumed, eventually leading to theexhaustion of available resources.Impacted is availability.Applyingthe patch 28dcf379e82a2cdb544d812696a7fd46067eb7f9 is able to eliminate this problem. The bugfix is ready for download at github.com.
cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. In version 0.21.0, when manyhttp headers fields are passed in, the librarydoes not limit the number of headers, and the memory associated with the headers will not be released when theconnection isdisconnected. This leads to potential exhaustionof system memory and results in a server crash or unresponsiveness.Version 0.22.0 contains a patch for the issue.
cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. In version 0.21.0, when many http headers fields are passed in, the library does not limit the number of headers, and the memory associated with the headers will not be released when the connection is disconnected. This leads to potential exhaustion of system memory and results in a server crash or unresponsiveness. Version 0.22.0 contains a patch for the issue.
cpp-httplib is a C++11 single-file header-only cross platform HTTP/HTTPS library. In version 0.21.0, when many http headers fields are passed in, the library does not limit the number of headers, and the memory associated with the headers will not be released when the connection is disconnected. This leads to potential exhaustion of system memory and results in a server crash or unresponsiveness. Version 0.22.0 contains a patch for the issue.