GHSA-8v5x-6vv5-jv4g: Amphp/http Amphp/http Host Header Injection Vulnerability Vulnerability

MODERATE
Published
Advisory Summary

GHSA-8v5x-6vv5-jv4g is a MODERATE amphp/http host header injection vulnerability vulnerability (General Security Weakness) affecting Amphp/http libraries in the Packagist ecosystem. The issue involves amphp/http host header injection vulnerability. Remediation is available by upgrading affected packages to version 1.0.1.

GHSA-8v5x-6vv5-jv4g at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-8v5x-6vv5-jv4g
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification General Security Weakness
Affected Product Amphp/http
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-8v5x-6vv5-jv4g

To remediate this vulnerability, upgrade all affected Amphp/http dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

amphp/http fixed: 1.0.1
Upgrade amphp/http to 1.0.1
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for amphp/http

How to Check if You Are Affected

To determine whether your application is affected by GHSA-8v5x-6vv5-jv4g, inspect your project dependencies for Amphp/http:

inspect dependencies for amphp/http

Analyze the terminal output to locate any version of Amphp/http in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.1), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under General Security Weakness. In Amphp/http, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

amphp/http versions before 1.0.1 allows an attacker to supply invalid input in the Host header which may lead to various type of Host header injection attacks.

GHSA-8v5x-6vv5-jv4g Affected Amphp/http Versions

1 component(s)
Fixed Versions:
1.0.1
Product / Package Ecosystem Affected Versions Fixed Version
amphp/http
Packagist
< 1.0.1
1.0.1

References

Frequently Asked Questions

What is GHSA-8v5x-6vv5-jv4g?
GHSA-8v5x-6vv5-jv4g is a security vulnerability in Amphp/http involving amphp/http Host Header Injection vulnerability under General Security Weakness.
Which Amphp/http versions are affected?
Affected versions include releases prior to 1.0.1 across affected packages: amphp/http.
What version fixes GHSA-8v5x-6vv5-jv4g?
Upgrading to 1.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is amphp/http affected?
Yes, amphp/http is affected in releases prior to 1.0.1. Upgrade your dependency to 1.0.1 or later.
What CWE is associated with GHSA-8v5x-6vv5-jv4g?
GHSA-8v5x-6vv5-jv4g is classified under General Security Weakness.
How can I check Packagist dependencies for GHSA-8v5x-6vv5-jv4g?
Run the dependency tree command: 'inspect dependencies for amphp/http'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-8v5x-6vv5-jv4g",
  "modified" : "2024-05-15T17:52:41Z",
  "published" : "2024-05-15T17:52:41Z",
  "aliases" : [ ],
  "summary" : "amphp/http Host Header Injection vulnerability",
  "details" : "amphp/http versions before 1.0.1 allows an attacker to supply invalid input in the Host header which may lead to various type of Host header injection attacks.",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "amphp/http"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.0.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/amphp/http/pull/4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/amphp/http/commit/16e465fa82555104d1cff98cb8e412295a380214"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/amphp/http/2018-03-15.yaml"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/amphp/http"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/amphp/http/releases/tag/v1.0.1"
  } ],
  "database_specific" : {
    "cwe_ids" : [ ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-05-15T17:52:41Z",
    "nvd_published_at" : null
  }
}