CVE-2023-29530 json
Laminas Diactoros vulnerable to HTTP Multiline Header Termination
published 2023-04-24 3 y ago modified 2026-06-17 4 mo ago also GHSA-xv3h-4844-9h36 , EUVD-2023-1431
- cvss
- 7.5
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
Summary
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()`.
Patch / fix
- packagist laminas/laminas-diactoros 2.18.1, 2.19.1, 2.20.1, 2.21.1, 2.22.1, 2.23.1, 2.24.2, 2.25.2
- getlaminas laminas-diactoros 2.18.1
- guzzlephp psr-7 1.9.1, 2.4.5
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2023-29530 updated cvss 6.5
php-laminas-diactoros: denial of service vectors or application errors
-
Red Hat All currently supported Red Hat productsnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 20 mo ago
Exploit prediction
0.97% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 3.1 | 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| packagist | laminas/laminas-diactoros | <2.18.1 >=2.19.0, <2.19.1 >=2.20.0, <2.20.1 >=2.21.0, <2.21.1 >=2.22.0, <2.22.1 >=2.23.0, <2.23.1 >=2.24.0, <2.24.2 >=2.25.0, <2.25.2 |
2.18.1 2.19.1 2.20.1 2.21.1 2.22.1 2.23.1 2.24.2 2.25.2 |
Affected products
- laminas laminas-diactoros
Classification
- Weakness
-
- CWE-20 Improper Input Validation
References
-
github.com
/laminas/laminas-diactoros/commit/7e721a60a09c5119c98694c2d23fc031094e1f1c
web
-
github.com
/laminas/laminas-diactoros/security/advisories/GHSA-xv3h-4844-9h36
web, vendor-advisory
-
github.com
/advisories/GHSA-wxmh-65f7-jcvw
advisory, not-applicable
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/BPW54QK7ISDALPLP2CKODU4ZIVRYS336/
mailing-list, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-29530
advisory
-
github.com
/laminas/laminas-diactoros
package
-
lists.fedoraproject.org
/archives/list/package-announce@lists.fedoraproject.org/message/BPW54QK7ISDALPLP2CKODU4ZIVRYS336
web
Sources
- CVE List CVE-2023-29530
- GitHub Advisory GHSA-xv3h-4844-9h36
- NVD CVE-2023-29530
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.