CVE-2022-0472: Jsdecena/laracom Unrestricted Upload Of File With Vulnerability

MODERATE
Advisory Identifier: GHSA-5q5w-mqp6-g2gh
CVSS 5.4
CWE-434 CWE-79
Published
Advisory Summary

CVE-2022-0472 is a MODERATE (CVSS 5.4) unrestricted upload of file with vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Jsdecena/laracom libraries in the Packagist ecosystem. The issue involves unrestricted upload of file with dangerous type in jsdecena/laracom. Remediation is available by upgrading affected packages to version 2.0.9.

CVE-2022-0472 at a Glance

CVE Identifier CVE-2022-0472
GHSA Identifier GHSA-5q5w-mqp6-g2gh
Severity MODERATE
CVSS v3.1 Base Score 5.4
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Jsdecena/laracom
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-0472

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

jsdecena/laracom fixed: 2.0.9
Upgrade jsdecena/laracom to 2.0.9
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 jsdecena/laracom

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-0472, inspect your project dependencies for Jsdecena/laracom:

inspect dependencies for jsdecena/laracom

Analyze the terminal output to locate any version of Jsdecena/laracom in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.9), 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-434: Unrestricted Upload of File with Dangerous Type, where the product allows the upload or transfer of dangerous file types that are automatically processed within its environment. In Jsdecena/laracom, 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

jsdecena/laracom prior to version 2.0.9 is vulnerable to Unrestricted Upload of File with Dangerous Type.

CVE-2022-0472 Affected Jsdecena/laracom Versions

1 component(s)
Fixed Versions:
2.0.9
Product / Package Ecosystem Affected Versions Fixed Version
jsdecena/laracom
Packagist
< 2.0.9
2.0.9

References

Frequently Asked Questions

What is CVE-2022-0472?
CVE-2022-0472 is a security vulnerability in Jsdecena/laracom involving Unrestricted Upload of File with Dangerous Type in jsdecena/laracom under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Jsdecena/laracom versions are affected?
Affected versions include releases prior to 2.0.9 across affected packages: jsdecena/laracom.
What version fixes CVE-2022-0472?
Upgrading to 2.0.9 (or the latest patched release for your respective branch) resolves the vulnerability.
Is jsdecena/laracom affected?
Yes, jsdecena/laracom is affected in releases prior to 2.0.9. Upgrade your dependency to 2.0.9 or later.
What is the CVSS score of CVE-2022-0472?
CVE-2022-0472 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-0472?
CVE-2022-0472 is classified under CWE-434: Unrestricted Upload of File with Dangerous Type (The product allows the upload or transfer of dangerous file types that are automatically processed within its environment.).
How can I check Packagist dependencies for CVE-2022-0472?
Run the dependency tree command: 'inspect dependencies for jsdecena/laracom'. 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-5q5w-mqp6-g2gh",
  "modified" : "2022-02-11T20:51:14Z",
  "published" : "2022-02-06T00:01:07Z",
  "aliases" : [ "CVE-2022-0472" ],
  "summary" : "Unrestricted Upload of File with Dangerous Type in jsdecena/laracom",
  "details" : "jsdecena/laracom prior to version 2.0.9 is vulnerable to Unrestricted Upload of File with Dangerous Type.",
  "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" : "jsdecena/laracom"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "2.0.9"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-0472"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/jsdecena/laracom/commit/256026193ce994dc4c1365e02f414d8a0cd77ae8"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/jsdecena/laracom"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/cb5b8563-15cf-408c-9f79-4871ea0a8713"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434", "CWE-79" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-02-07T22:21:11Z",
    "nvd_published_at" : "2022-02-04T23:15:00Z"
  }
}