Skip to content
Heist/ feed
Back to feed
MediumFix available

php-slim-psr7 — security advisory

Type: advisorySources: OSVAdvisory ID: DEBIAN-CVE-2023-30536

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.

Products
php-slim-psr7
Affected versions
Not specified
Fixed versions
1.6.1-1
CVEs
CVE-2023-30536
Confirmed fixed CVEs
Not specified
Updated in this feed
1 Nov 2026, 15:48 UTC · Revision 1

Source evidence

DEBIAN-CVE-2023-30536

core-osv · Original source

Published 17 Apr 2023, 22:15 UTC

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.

osv:DEBIAN-CVE-2023-30536

php-slim-psr7

Fixed versions: 1.6.1-1

php-slim-psr7

Fixed versions: 1.6.1-1

php-slim-psr7

Fixed versions: 1.6.1-1

Complete source record
{
  "id": "dbb82de4a075489bbf9d45a26852d4ba6eb631438d40eac54fc0a07e12478322",
  "url": "https://osv.dev/vulnerability/DEBIAN-CVE-2023-30536",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "DEBIAN-CVE-2023-30536",
    "summary": "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.",
    "evidence": "osv:DEBIAN-CVE-2023-30536",
    "products": [
      {
        "name": {
          "value": "php-slim-psr7",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.1-1",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "php-slim-psr7",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.1-1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "php-slim-psr7",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "1.6.1-1",
            "evidence": "/affected/2/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "DEBIAN-CVE-2023-30536",
      "aliases": [
        "DEBIAN-CVE-2023-30536"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "php-slim-psr7",
            "purl": "pkg:deb/debian/php-slim-psr7?arch=source&distro=bookworm",
            "ecosystem": "Debian:12"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30536.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "php-slim-psr7",
            "purl": "pkg:deb/debian/php-slim-psr7?arch=source&distro=trixie",
            "ecosystem": "Debian:13"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30536.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "1.6.1-1"
                }
              ]
            }
          ],
          "package": {
            "name": "php-slim-psr7",
            "purl": "pkg:deb/debian/php-slim-psr7?arch=source&distro=forky",
            "ecosystem": "Debian:14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2023-30536.json"
          },
          "ecosystem_specific": {
            "urgency": "not yet assigned"
          }
        }
      ],
      "modified": "2026-10-26T18:01:49.827236886Z",
      "provider": "osv",
      "upstream": [
        "CVE-2023-30536"
      ],
      "references": [
        "https://security-tracker.debian.org/tracker/CVE-2023-30536"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2023-30536",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 455716,
  "published_at": "2023-04-17T22:15:10.137+00:00"
}