CVE-2023-29530

Laminas Diactoros vulnerable to HTTP Multiline Header Termination

Description

Laminas Diactoros provides PSR HTTP Message implementations. In versions 2.18.0 and prior, 2.19.0, 2.20.0, 2.21.0, 2.22.0, 2.23.0, 2.24.0, and 2.25.0, 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. The problem has been patched in following versions 2.18.1, 2.19.1, 2.20.1, 2.21.1, 2.22.1, 2.23.1, 2.24.1, and 2.25.1. 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()`.

Category

7.5
CVSS
Severity: High
CVSS 3.1 •
EPSS 0.18%
Vendor Advisory github.com
Affected: laminas laminas-diactoros
Published at:
Updated at:

References

Frequently Asked Questions

What is the severity of CVE-2023-29530?
CVE-2023-29530 has been scored as a high severity vulnerability.
How to fix CVE-2023-29530?
To fix CVE-2023-29530, make sure you are using an up-to-date version of the affected component(s) by checking the vendor release notes. As for now, there are no other specific guidelines available.
Is CVE-2023-29530 being actively exploited in the wild?
As for now, there are no information to confirm that CVE-2023-29530 is being actively exploited. According to its EPSS score, there is a ~0% probability that this vulnerability will be exploited by malicious actors in the next 30 days.
What software or system is affected by CVE-2023-29530?
CVE-2023-29530 affects laminas laminas-diactoros.
This platform uses data from the NIST NVD, MITRE CVE, MITRE CWE, First.org and CISA KEV but is not endorsed or certified by these entities. CVE is a registred trademark of the MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. CWE is a registred trademark of the MITRE Corporation and the authoritative source of CWE content is MITRE's CWE web site.
© 2025 Under My Watch. All Rights Reserved.