GHSA-8v5x-6vv5-jv4g: Amphp/http Amphp/http Host Header Injection Vulnerability Vulnerability
MODERATEGHSA-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
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.
Upgrade amphp/http to 1.0.1
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
GHSA-8v5x-6vv5-jv4g Affected Amphp/http Versions
1 component(s)| 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?
Which Amphp/http versions are affected?
What version fixes GHSA-8v5x-6vv5-jv4g?
Is amphp/http affected?
What CWE is associated with GHSA-8v5x-6vv5-jv4g?
How can I check Packagist dependencies for GHSA-8v5x-6vv5-jv4g?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"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
}
}