medium CVSS 5.3 EPSS <0.1%

CVE-2026-48998·PHP vulnerability

guzzlehttp/psr7 is a PSR-7 HTTP message library implementation in PHP. Versions prior to 2.10.2 contain improper Host header validation when parsing raw HTTP request messages and when deriving a server request URI from server variables. An attacker can provide a malformed Host header containing URI authority delimiters, such as `trusted.example@evil.example`. When the Host value is used to construct a URI, the malformed value can be reinterpreted as URI userinfo and host. This can cause the PSR-7 request URI host to differ from the original Host header value. Applications are affected if they parse attacker-controlled raw HTTP requests with `GuzzleHttp\Psr7\Message::parseRequest()` or the legacy 1.x `GuzzleHttp\Psr7\parse_request()` function, or if they build server requests from attacker-controlled server variables, then rely on the resulting URI host for routing, allow-list checks, or forwarding decisions. In affected forwarding or gateway scenarios, this may cause requests or credentials to be sent to an unintended host. The issue is patched in `2.10.2`. `1.x` is end-of-life and will not receive a patch. Some workarounds are available. Validate the `Host` header as `uri-host [ ":" port ]` before calling `Message::parseRequest()` or legacy `parse_request()` on untrusted HTTP request data, or before deriving routing and forwarding decisions from a parsed request URI. Reject Host values containing userinfo, path, query, or fragment delimiters.

Severity
medium
Software
PHP
Fixed in
2.10.2
Published

How likely is exploitation

FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at <0.1% — higher than 13% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.

Affected versions

Until: 2.10.2

Fixed in: 2.10.2

How to fix this CVE

Update PHP and the guzzlehttp/psr7 library to version 2.10.2 or later to remediate Host header validation bypass vulnerability. If you use PHP applications that parse raw HTTP requests or derive URIs from server variables, prioritize this update to prevent requests from being routed to unintended hosts. Until patching is complete, implement strict Host header validation that rejects values containing userinfo delimiters (@), path (/) or query (?) characters.

sudo dnf upgrade php php-guzzlehttp-psr7

Defensia detects this vulnerability

What an exploitation attempt looks like

Sample log line indicative of exploitation attempts:

POST|GET|HEAD|PUT|DELETE|PATCH HTTP/1\.1.*Host:.*[@].*|Host:.*:[^0-9]+.*|Host:.*%40.*

WAF mitigation (if patching is not yet possible)

Add this rule to your WAF to block exploitation attempts while you schedule the patch.

Implement a WAF rule to block or log Host headers containing '@' characters, colons followed by non-numeric values, or URL-encoded userinfo delimiters (%40). Example: ModSecurity rule to reject requests where Host header matches [a-zA-Z0-9.-]*@[a-zA-Z0-9.-]* pattern.

How to check if you are affected

  1. Check PHP version: php -v
  2. Check guzzlehttp/psr7 version: composer show guzzlehttp/psr7 (or inspect vendor/guzzlehttp/psr7/composer.json if Composer is used)
  3. Search application logs for suspicious Host headers containing '@' or userinfo patterns: grep -r '@' /var/log/apache2/access.log | grep -E 'Host:|Host:.*@'
  4. Verify the patch by confirming guzzlehttp/psr7 is at version 2.10.2 or later: composer show guzzlehttp/psr7 | grep -i version

Indicators of compromise

  • Host header containing @ symbol in request (e.g., trusted.example@evil.example)
  • Host header with userinfo prefix followed by colon and authority (e.g., user:pass@host.com)
  • Inconsistency between Host header value and parsed URI host in application logs

FAQ

What is CVE-2026-48998?

This vulnerability allows attackers to inject malformed Host headers containing userinfo delimiters (like @) into HTTP requests, causing the PSR-7 library to parse the URI differently than the original header. This mismatch can lead to requests being forwarded to unintended hosts or bypassing security controls.

Is CVE-2026-48998 being actively exploited?

No, this CVE is not listed on the CISA Known Exploited Vulnerabilities (KEV) catalog and no public exploit is currently available, though the vulnerability is exploitable in certain application configurations.

What versions of PHP are affected by CVE-2026-48998?

Versions of guzzlehttp/psr7 prior to 2.10.2 are vulnerable; version 1.x is end-of-life and will not receive a patch. The vulnerability affects applications running any version of PHP that uses the vulnerable psr7 library.

How do I check if my server is vulnerable to CVE-2026-48998?

Run 'composer show guzzlehttp/psr7' to check the installed version. If it is below 2.10.2, your application is vulnerable. Additionally, check if your application parses raw HTTP requests using Message::parseRequest() or legacy parse_request() functions.

Does Defensia detect CVE-2026-48998?

Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If PHP and guzzlehttp/psr7 are installed on a monitored server, CVE-2026-48998 will appear in your dashboard with remediation steps.

Related PHP CVEs

CVE-2025-47916CVSS 10Invision Community 5.0.0 before 5.0.7 allows remote code execution via crafted template strings to themeeditor.php. The issue lies within the themeeditor controller (file: /applications/core/modules/front/system/themeeditor.php), where a protected method named customCss can be invoked by unauthenticated users. This method passes the value of the content parameter to the Theme::makeProcessFunction() method; hence it is evaluated by the template engine. Accordingly, this can be exploited by unauthenticated attackers to inject and execute arbitrary PHP code by providing crafted template strings.
CVE-2025-46348CVSS 10YesWiki is a wiki system written in PHP. Prior to version 4.5.4, the request to commence a site backup can be performed and downloaded without authentication. The archives are created with a predictable filename, so a malicious user could create and download an archive without being authenticated. This could result in a malicious attacker making numerous requests to create archives and fill up the file system, or by downloading the archive which contains sensitive site information. This issue has been patched in version 4.5.4.
CVE-2026-39337CVSS 10ChurchCRM is an open-source church management system. Prior to 7.1.0, critical pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The "$dbPassword" variable is not sanitized. This vulnerability exists due to an incomplete fix for CVE-2025-62521. This vulnerability is fixed in 7.1.0.
CVE-2024-5932CVSS 10The GiveWP – Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 3.14.1 via deserialization of untrusted input from the 'give_title' parameter. This makes it possible for unauthenticated attackers to inject a PHP Object. The additional presence of a POP chain allows attackers to execute code remotely, and to delete arbitrary files.
CVE-2025-62521CVSS 10ChurchCRM is an open-source church management system. Prior to version 5.21.0, a pre-authentication remote code execution vulnerability in ChurchCRM's setup wizard allows unauthenticated attackers to inject arbitrary PHP code during the initial installation process, leading to complete server compromise. The vulnerability exists in `setup/routes/setup.php` where user input from the setup form is directly concatenated into a PHP configuration template without any validation or sanitization. Any parameter in the setup form can be used to inject PHP code that gets written to `Include/Config.php`, which is then executed on every page load. This is more severe than typical authenticated RCE vulnerabilities because it requires no credentials and affects the installation process that administrators must complete. Version 5.21.0 patches the issue.

References

Track CVEs across your fleet automatically

Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-48998. Free for 1 server.

Get started free