CVE-2022-38796: Feehi/cms Feehi CMS Host Header Injection Vulnerability

MODERATE
Advisory Identifier: GHSA-4r4f-jrvw-h727
CVSS 6.1
CWE-74
Published
Advisory Summary

CVE-2022-38796 is a MODERATE (CVSS 6.1) feehi cms host header injection vulnerability (CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')) affecting Feehi/cms libraries in the Packagist ecosystem. The issue involves feehi cms host header injection vulnerability. Remediation is available in the latest vendor maintenance releases.

CVE-2022-38796 at a Glance

CVE Identifier CVE-2022-38796
GHSA Identifier GHSA-4r4f-jrvw-h727
Severity MODERATE
CVSS v3.1 Base Score 6.1
CWE Classification CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
Affected Product Feehi/cms
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 6.1

The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N).

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Changed (S:C)
Confidentiality Low (C:L)
Integrity Low (I:L)
Availability None (A:N)

How to Fix CVE-2022-38796

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

feehi/cms fixed: Latest secure release
Upgrade feehi/cms to Latest secure release
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 feehi/cms

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-38796, inspect your project dependencies for Feehi/cms:

inspect dependencies for feehi/cms

Analyze the terminal output to locate any version of Feehi/cms in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than the patched release), 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 CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection'), where the product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component. In Feehi/cms, 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

A Host Header Injection vulnerability in Feehi CMS 2.1.1 may allow an attacker to spoof a particular header. This can be exploited by abusing password reset emails.

CVE-2022-38796 Affected Feehi/cms Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
feehi/cms
Packagist
≤ 2.1.1

References

Frequently Asked Questions

What is CVE-2022-38796?
CVE-2022-38796 is a security vulnerability in Feehi/cms involving Feehi CMS host header injection vulnerability under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection').
Which Feehi/cms versions are affected?
Affected versions include releases prior to current release patches across affected packages: feehi/cms.
What version fixes CVE-2022-38796?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is feehi/cms affected?
Yes, feehi/cms is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What is the CVSS score of CVE-2022-38796?
CVE-2022-38796 has a CVSS v3.1 base score of 6.1 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2022-38796?
CVE-2022-38796 is classified under CWE-74: Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection') (The product constructs all or part of a command, data structure, or record using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify how it is parsed or interpreted when it is sent to a downstream component.).
How can I check Packagist dependencies for CVE-2022-38796?
Run the dependency tree command: 'inspect dependencies for feehi/cms'. 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-4r4f-jrvw-h727",
  "modified" : "2023-07-07T19:01:25Z",
  "published" : "2022-09-15T00:00:19Z",
  "aliases" : [ "CVE-2022-38796" ],
  "summary" : "Feehi CMS host header injection vulnerability",
  "details" : "A Host Header Injection vulnerability in Feehi CMS 2.1.1 may allow an attacker to spoof a particular header. This can be exploited by abusing password reset emails.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "feehi/cms"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "2.1.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-38796"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/liufee/cms"
  }, {
    "type" : "WEB",
    "url" : "https://www.youtube.com/watch?v=k8dp0FJnSsI"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-74" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-16T17:07:41Z",
    "nvd_published_at" : "2022-09-14T15:15:00Z"
  }
}