{"id":"CVE-2023-30536","aliases":["DEBIAN-CVE-2023-30536","EUVD-2023-1372","GHSA-q2qj-628g-vhfw","MGASA-2025-0023","UBUNTU-CVE-2023-30536","openSUSE-SU-2025:0081-1","openSUSE-SU-2025:14688-1"],"status":"published","title":"Insecure header validation in slim/psr7","description":"slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 an attacker could sneak in a newline (\\n) into both the header names and values. While the specification states that \\r\\n\\r\\n is used to terminate the header list, many servers in the wild will also accept \\n\\n. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.","severity":{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00743,"percentile":0.55063,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-436"],"published":"2023-04-17T21:17:33Z","modified":"2026-10-28T02:30:48Z","fixes":[{"ecosystem":"Packagist","package":"slim/psr7","fixed_in":["1.6.1","1.5.1","1.4.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"php-slim-psr7","fixed_in":["1.6.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"php-slim-psr7","fixed_in":["1.6.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"php-slim-psr7","fixed_in":["1.6.1-1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"Packagist","package":"slim/psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.6"},{"fixed":"1.6.1"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"slim/psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.5"},{"fixed":"1.5.1"}]}]},{"source":"ghsa","ecosystem":"Packagist","package":"slim/psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"php-slim-psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"php-slim-psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"php-slim-psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.6.1-1"}]}]},{"source":"osv","ecosystem":"Packagist","package":"slim/psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.6"},{"fixed":"1.6.1"}]}],"versions":["1.6"]},{"source":"osv","ecosystem":"Packagist","package":"slim/psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"1.5"},{"fixed":"1.5.1"}]}],"versions":["1.5"]},{"source":"osv","ecosystem":"Packagist","package":"slim/psr7","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.4.1"}]}],"versions":["0.1.0","0.2.0","0.3.0","0.4.0","0.5.0","0.6","1.0.0","1.1.0","1.2.0","1.3.0","1.4"]},{"source":"osv","ecosystem":"Mageia:9","package":"phpmyadmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.2-1.mga9"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Package Hub 15 SP6","package":"phpMyAdmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.2-bp156.4.3.1"}]}],"bundled":4},{"source":"osv","ecosystem":"openSUSE:Leap 15.6","package":"phpMyAdmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.2-bp156.4.3.1"}]}],"bundled":4},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"phpMyAdmin","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"5.2.2-1.1"}]}],"bundled":2}],"products":[{"vendor":"slimframework","product":"slim_psr-7"},{"vendor":"slimphp","product":"slim-psr7"}],"references":[{"url":"https://github.com/slimphp/Slim-Psr7/security/advisories/GHSA-q2qj-628g-vhfw","tags":["x_refsource_CONFIRM","x_transferred","Vendor Advisory","advisory","web","report"]},{"url":"https://github.com/slimphp/Slim-Psr7/commit/ed1d553225dd190875d8814c47460daed4b550bb","tags":["x_refsource_MISC","x_transferred","Patch","fix","web","report"]},{"url":"https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4","tags":["x_refsource_MISC","x_transferred","Technical Description","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-30536","tags":["advisory"]},{"url":"https://github.com/slimphp/Slim-Psr7/issues/284#issuecomment-1541328898","tags":["web"]},{"url":"https://github.com/slimphp/Slim-Psr7/releases/tag/1.4.1","tags":["web"]},{"url":"https://github.com/slimphp/Slim-Psr7/releases/tag/1.5.1","tags":["web"]},{"url":"https://github.com/slimphp/Slim-Psr7/releases/tag/1.6.1","tags":["web"]},{"url":"https://github.com/advisories/GHSA-q2qj-628g-vhfw"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/30xxx/CVE-2023-30536.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2023-30536","tags":["advisory"]},{"url":"https://github.com/slimphp/Slim-Psr7","tags":["package"]},{"url":"https://advisories.mageia.org/MGASA-2025-0023.html","tags":["advisory"]},{"url":"https://bugs.mageia.org/show_bug.cgi?id=33948","tags":["report"]},{"url":"https://www.phpmyadmin.net/news/2025/1/21/phpMyAdmin-522-is-released/","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2023-30536","tags":["report"]},{"url":"https://github.com/slimphp/Slim-Psr7/commit/4fea29e910391b1883de5bf6e84b50f6900355fb","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-30536","tags":["report"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/472PX6IZ26ALBE66YKBJD3XTN7M34U4L/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1222992","tags":["report"]},{"url":"https://bugzilla.suse.com/1236311","tags":["report"]},{"url":"https://bugzilla.suse.com/1236312","tags":["report"]},{"url":"https://bugzilla.suse.com/1238159","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2023-30536","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2024-2961","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-24529","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2025-24530","tags":["web"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2023-30536","title":"Insecure header validation in slim/psr7","description":"slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 an attacker could sneak in a newline (\\n) into both the header names and values. While the specification states that \\r\\n\\r\\n is used to terminate the header list, many servers in the wild will also accept \\n\\n. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.","status":"published","published":"2023-04-17T21:17:33.775Z","modified":"2025-02-05T20:43:03.553Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"cna"}],"cwes":["CWE-436"],"updated_at":"2026-11-02T14:35:22.309324Z"}],"euvd":[{"id":"EUVD-2023-1372","description":"slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 an attacker could sneak in a newline (\\n) into both the header names and values. While the specification states that \\r\\n\\r\\n is used to terminate the header list, many servers in the wild will also accept \\n\\n. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.","status":"published","published":"2023-04-17T21:17:33Z","modified":"2025-02-05T20:43:03Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-03T00:04:03.798167Z"}],"ghsa":[{"id":"GHSA-q2qj-628g-vhfw","title":"Insecure header validation in slim/psr7","description":"### Impact\n\nAn attacker could sneak in a newline (`\\n`) into both the header names and values. While the specification states that `\\r\\n\\r\\n` is used to terminate the header list, many servers in the wild will also accept `\\n\\n`. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests.\n\n### Patches\n\nThe issue is patched in 1.6.1, 1.5.1, and 1.4.1.\n\n### Workarounds\n\nIn Slim-Psr7 prior to 1.6.1, 1.5.1, and 1.4.1, 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().\n\n### Acknowledgments\n\nWe are very grateful to and thank \u003ca href=\"https://gjcampbell.co.uk/\"\u003eGraham Campbell\u003c/a\u003e for reporting and working with us on this issue.\n\n### References\n\n* Guzzle: CVE-2023-29197, with advisory GHSA-wxmh-65f7-jcvw\n* Laminas Diactoros: CVE-2023-29530, with advisory GHSA-xv3h-4844-9h36\n* https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4","status":"published","published":"2023-04-18T22:20:42Z","modified":"2023-11-04T05:04:34Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-436"],"updated_at":"2026-11-02T14:37:12.407027Z"}],"nvd":[{"id":"CVE-2023-30536","description":"slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 an attacker could sneak in a newline (\\n) into both the header names and values. While the specification states that \\r\\n\\r\\n is used to terminate the header list, many servers in the wild will also accept \\n\\n. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.","status":"published","published":"2023-04-17T22:15:10.137Z","modified":"2026-06-17T05:54:58.16Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium","assessor":"primary"}],"cwes":["CWE-436"],"updated_at":"2026-11-02T14:07:55.652109Z"}],"osv":[{"id":"CVE-2023-30536","title":"Insecure header validation in slim/psr7","description":"slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 an attacker could sneak in a newline (\\n) into both the header names and values. While the specification states that \\r\\n\\r\\n is used to terminate the header list, many servers in the wild will also accept \\n\\n. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.","status":"published","published":"2023-04-17T21:17:33.775Z","modified":"2026-10-28T02:30:48.521085938Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-436"],"updated_at":"2026-11-02T15:44:31.790231Z"},{"id":"DEBIAN-CVE-2023-30536","description":"slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 an attacker could sneak in a newline (\\n) into both the header names and values. While the specification states that \\r\\n\\r\\n is used to terminate the header list, many servers in the wild will also accept \\n\\n. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.","status":"published","published":"2023-04-17T22:15:10.137Z","modified":"2026-10-26T18:01:49.827236886Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:45:39.679062Z"},{"id":"GHSA-q2qj-628g-vhfw","title":"Insecure header validation in slim/psr7","description":"### Impact\n\nAn attacker could sneak in a newline (`\\n`) into both the header names and values. While the specification states that `\\r\\n\\r\\n` is used to terminate the header list, many servers in the wild will also accept `\\n\\n`. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests.\n\n### Patches\n\nThe issue is patched in 1.6.1, 1.5.1, and 1.4.1.\n\n### Workarounds\n\nIn Slim-Psr7 prior to 1.6.1, 1.5.1, and 1.4.1, 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().\n\n### Acknowledgments\n\nWe are very grateful to and thank \u003ca href=\"https://gjcampbell.co.uk/\"\u003eGraham Campbell\u003c/a\u003e for reporting and working with us on this issue.\n\n### References\n\n* Guzzle: CVE-2023-29197, with advisory GHSA-wxmh-65f7-jcvw\n* Laminas Diactoros: CVE-2023-29530, with advisory GHSA-xv3h-4844-9h36\n* https://www.rfc-editor.org/rfc/rfc7230#section-3.2.4","status":"published","published":"2023-04-18T22:20:42Z","modified":"2026-09-10T03:50:01.161824075Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"cwes":["CWE-436"],"updated_at":"2026-11-02T15:46:54.055966Z"},{"id":"UBUNTU-CVE-2023-30536","description":"slim/psr7 is a PSR-7 implementation for use with Slim 4. In versions prior to 1.6.1 an attacker could sneak in a newline (\\n) into both the header names and values. While the specification states that \\r\\n\\r\\n is used to terminate the header list, many servers in the wild will also accept \\n\\n. An attacker that is able to control the header names that are passed to Slilm-Psr7 would be able to intentionally craft invalid messages, possibly causing application errors or invalid HTTP requests being sent out with an PSR-18 HTTP client. The latter might present a denial of service vector if a remote service’s web application firewall bans the application due to the receipt of malformed requests. The issue has been patched in version 1.6.1. There are no known workarounds to this issue. Users are advised to upgrade.","status":"withdrawn","published":"2023-04-17T22:15:00Z","modified":"2026-02-19T19:18:26.602019Z","cvss":[{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"},{"version":"3.1","score":6.5,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T16:54:20.997471Z"},{"id":"MGASA-2025-0023","title":"Updated phpmyadmin packages fix security vulnerabilities","description":"fix possible security issue with library code slim/psr7 (CVE-2023-30536)\nfix possible security issue relating to iconv (CVE-2024-2961,\nPMASA-2025-3)\nfix an XSS vulnerability in the check tables feature (PMASA-2025-1)\nfix an XSS vulnerability in the Insert tab (PMASA-2025-2)\n","status":"published","published":"2025-01-24T19:46:05Z","modified":"2026-04-16T04:42:46.504559091Z","updated_at":"2026-11-02T15:49:42.684501Z"},{"id":"openSUSE-SU-2025:0081-1","title":"Security update for phpMyAdmin","description":"This update for phpMyAdmin fixes the following issues:\n\nUpdate to version 5.2.2:\n\n- CVE-2025-24530: XSS in the 'Check Tables' feature (bsc#1236312).\n- CVE-2025-24529: XSS in the 'Insert' tab (bsc#1236311).\n- CVE-2024-2961: glibc/iconv: out-of-bounds writes when writing escape sequences (bsc#1222992).\n- CVE-2023-30536: slim/psr7: improper header validation (bsc#1238159).\n","status":"published","published":"2025-03-03T09:28:26Z","modified":"2026-02-04T02:19:45.397434Z","updated_at":"2026-11-02T16:58:36.976155Z"},{"id":"openSUSE-SU-2025:14688-1","title":"phpMyAdmin-5.2.2-1.1 on GA media","description":"These are all security issues fixed in the phpMyAdmin-5.2.2-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2025-01-23T00:00:00Z","modified":"2026-02-04T04:00:41.980658Z","updated_at":"2026-11-02T16:58:36.976155Z"}]}}
