CVE-2022-38080: Exceedone/exment Cross-Site Scripting Vulnerability

MODERATE
Advisory Identifier: GHSA-8629-83m5-rj75
CVSS 5.4
CWE-79
Published
Advisory Summary

CVE-2022-38080 is a MODERATE (CVSS 5.4) cross-site scripting vulnerability (CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')) affecting Exceedone/exment libraries in the Packagist ecosystem. The issue involves exceedone/exment and exceedone/laravel-admin cross-site scripting vulnerability. Remediation is available by upgrading affected packages to version 5.0.3, 4.4.3, 2.2.3, 3.0.1.

CVE-2022-38080 at a Glance

CVE Identifier CVE-2022-38080
GHSA Identifier GHSA-8629-83m5-rj75
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
Affected Product Exceedone/exment
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 5.4

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

Attack Vector Network (AV:N)
Attack Complexity Low (AC:L)
Privileges Required Low (PR:L)
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-38080

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

exceedone/exment fixed: 5.0.3
Upgrade exceedone/exment to 5.0.3
exceedone/exment fixed: 4.4.3
Upgrade exceedone/exment to 4.4.3
exceedone/laravel-admin fixed: 2.2.3
Upgrade exceedone/laravel-admin to 2.2.3
exceedone/laravel-admin fixed: 3.0.1
Upgrade exceedone/laravel-admin to 3.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 exceedone/exment

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-38080, inspect your project dependencies for Exceedone/exment:

inspect dependencies for exceedone/exment

Analyze the terminal output to locate any version of Exceedone/exment in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 5.0.3), 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-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting'), where the product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users. In Exceedone/exment, 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

Reflected cross-site scripting vulnerability in Exment ((PHP8) exceedone/exment v5.0.2 and earlier and exceedone/laravel-admin v3.0.0 and earlier, (PHP7) exceedone/exment v4.4.2 and earlier and exceedone/laravel-admin v2.2.2 and earlier) allows a remote authenticated attacker to inject an arbitrary script.

CVE-2022-38080 Affected Exceedone/exment Versions

4 component(s)
Fixed Versions:
5.0.34.4.32.2.33.0.1
Product / Package Ecosystem Affected Versions Fixed Version
exceedone/exment
Packagist
≥ 5.0.0
< 5.0.3
5.0.3
exceedone/exment
Packagist
< 4.4.3
4.4.3
exceedone/laravel-admin
Packagist
< 2.2.3
2.2.3
exceedone/laravel-admin
Packagist
≥ 3.0.0
< 3.0.1
All 1 versions
3.0.0
3.0.1

References

Frequently Asked Questions

What is CVE-2022-38080?
CVE-2022-38080 is a security vulnerability in Exceedone/exment involving exceedone/exment and exceedone/laravel-admin Cross-site Scripting vulnerability under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting').
Which Exceedone/exment versions are affected?
Affected versions include releases prior to 5.0.3, 4.4.3, 2.2.3, 3.0.1 across affected packages: exceedone/exment, exceedone/laravel-admin.
What version fixes CVE-2022-38080?
Upgrading to 5.0.3, 4.4.3, 2.2.3, 3.0.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is exceedone/exment affected?
Yes, exceedone/exment is affected in releases prior to 5.0.3, 4.4.3. Upgrade your dependency to 5.0.3, 4.4.3 or later.
Is exceedone/laravel-admin affected?
Yes, exceedone/laravel-admin is affected in releases prior to 2.2.3, 3.0.1. Upgrade your dependency to 2.2.3, 3.0.1 or later.
What is the CVSS score of CVE-2022-38080?
CVE-2022-38080 has a CVSS v3.1 base score of 5.4 (MODERATE) with vector string CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N.
What CWE is associated with CVE-2022-38080?
CVE-2022-38080 is classified under CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting') (The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.).
How can I check Packagist dependencies for CVE-2022-38080?
Run the dependency tree command: 'inspect dependencies for exceedone/exment'. 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-8629-83m5-rj75",
  "modified" : "2022-09-16T21:06:16Z",
  "published" : "2022-08-25T00:00:29Z",
  "aliases" : [ "CVE-2022-38080" ],
  "summary" : "exceedone/exment and exceedone/laravel-admin Cross-site Scripting vulnerability",
  "details" : "Reflected cross-site scripting vulnerability in Exment ((PHP8) exceedone/exment v5.0.2 and earlier and exceedone/laravel-admin v3.0.0 and earlier, (PHP7) exceedone/exment v4.4.2 and earlier and exceedone/laravel-admin v2.2.2 and earlier) allows a remote authenticated attacker to inject an arbitrary script.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "exceedone/exment"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "5.0.0"
      }, {
        "fixed" : "5.0.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "exceedone/exment"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "4.4.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "exceedone/laravel-admin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.2.3"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "exceedone/laravel-admin"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "3.0.0"
      }, {
        "fixed" : "3.0.1"
      } ]
    } ],
    "versions" : [ "3.0.0" ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-38080"
  }, {
    "type" : "WEB",
    "url" : "https://exment.net/docs/#/release_note?id=v503-20220817"
  }, {
    "type" : "WEB",
    "url" : "https://exment.net/docs/#/weakness/20220817"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/exceedone/exment"
  }, {
    "type" : "WEB",
    "url" : "https://jvn.jp/en/jp/JVN46239102/index.html"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-09-16T21:06:16Z",
    "nvd_published_at" : "2022-08-24T09:15:00Z"
  }
}