Improper Input Validation
CVE-2023-29530
Summary
Laminas Diactoros provides PSR HTTP Message implementations. In laminas/laminas-diactoros, versions prior to 2.18.1, 2.19.x prior to 2.19.1, 2.20.x prior to 2.20.1, 2.21.x prior to 2.21.1, 2.22.x prior to 2.22.1, 2.23.x prior to 2.23.1, 2.24.x prior to 2.24.2, and 2.25.x prior to 2.25.2, users who create HTTP requests or responses using laminas/laminas-diactoros, when providing a newline at the start or end of a header key or value, can cause an invalid message. This can lead to Denial of Service vectors or application errors. As a workaround, validate HTTP header keys and/or values, and if using user-supplied values, filter them to strip off leading or trailing newline characters before calling `withHeader()`.
- LOW
- NETWORK
- NONE
- UNCHANGED
- NONE
- LOW
- NONE
- HIGH
CWE-20 - Improper Input Validation
The product receives input or data, but it does not validate or incorrectly validates that the input has the properties that are required to process the data safely and correctly.
References
Advisory Timeline
- Published