# CVE-2023-29530: Laminas Diactoros vulnerable to HTTP Multiline Header Termination

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.97%, higher than 62% of CVEs (2026-12-01)
- Published: 2023-04-24T19:34:40.294Z
- Modified: 2026-06-17T05:50:28.567Z
- Also known as: GHSA-xv3h-4844-9h36
- Weaknesses: CWE-20
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: GitHub_M

## 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()`.

(As written by CVE List.)

## Affected

- laminas laminas-diactoros: < 2.18.1; = 2.19.0; = 2.20.0; = 2.21.0; = 2.22.0; = 2.23.0; = 2.24.0; = 2.25.0
- laminas/laminas-diactoros (Packagist): before 2.18.1; from 2.19.0 before 2.19.1; from 2.20.0 before 2.20.1; from 2.21.0 before 2.21.1; from 2.22.0 before 2.22.1; from 2.23.0 before 2.23.1; from 2.24.0 before 2.24.2; from 2.25.0 before 2.25.2
- getlaminas laminas-diactoros: before 2.18.1; 2.19.0; 2.20.0; 2.21.0; 2.22.0; 2.23.0; 2.24.0; 2.25.0
- guzzlephp psr-7: before 1.9.1; from 2.0.0 before 2.4.5
- fedoraproject fedora: 38

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 6.5 Medium `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://github.com/laminas/laminas-diactoros/security/advisories/GHSA-xv3h-4844-9h36> (vendor-advisory, web)
- <https://github.com/advisories/GHSA-wxmh-65f7-jcvw> (advisory, not-applicable)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BPW54QK7ISDALPLP2CKODU4ZIVRYS336/> (mailing-list, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-29530> (advisory)
- <https://github.com/laminas/laminas-diactoros/commit/7e721a60a09c5119c98694c2d23fc031094e1f1c> (web)
- <https://github.com/laminas/laminas-diactoros> (package)
- <https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/BPW54QK7ISDALPLP2CKODU4ZIVRYS336> (web)

## Sources

- CVE List: [CVE-2023-29530](https://www.cve.org/CVERecord?id=CVE-2023-29530), CVE Terms of Use, modified 2025-02-13
- GitHub Advisory Database: [GHSA-xv3h-4844-9h36](https://github.com/advisories/GHSA-xv3h-4844-9h36), CC-BY-4.0, modified 2026-02-04
- NVD: [CVE-2023-29530](https://nvd.nist.gov/vuln/detail/CVE-2023-29530), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-29530 · Whole record: https://cve.day/CVE-2023-29530.json · Rebuilt by cve.day 2026-11-25T22:58:23.729Z
