CVE-2022-1544: Luyadev/yii helpers Improper Neutralization Of Formula Elements Vulnerability

HIGH
Advisory Identifier: GHSA-f9p3-h6cg-2cjr
CVSS 7.8
CWE-1236
Published
Advisory Summary

CVE-2022-1544 is a HIGH (CVSS 7.8) improper neutralization of formula elements vulnerability (CWE-1236: Improper Neutralization of Formula Elements in a CSV File) affecting Luyadev/yii helpers libraries in the Packagist ecosystem. The issue involves improper neutralization of formula elements in yii-helpers. Remediation is available by upgrading affected packages to version 1.2.1.

CVE-2022-1544 at a Glance

CVE Identifier CVE-2022-1544
GHSA Identifier GHSA-f9p3-h6cg-2cjr
Severity HIGH
CVSS v3.1 Base Score 7.8
CWE Classification CWE-1236: Improper Neutralization of Formula Elements in a CSV File
Affected Product Luyadev/yii helpers
Package Ecosystem Packagist
Published Date
Last Updated

Security Impact

CVSS: 7.8

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

Attack Vector Local (AV:L)
Attack Complexity Low (AC:L)
Privileges Required None (PR:N)
User Interaction Required (UI:R)
Scope Unchanged (S:U)
Confidentiality High (C:H)
Integrity High (I:H)
Availability High (A:H)

How to Fix CVE-2022-1544

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

luyadev/yii-helpers fixed: 1.2.1
Upgrade luyadev/yii-helpers to 1.2.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 luyadev/yii-helpers

How to Check if You Are Affected

To determine whether your application is affected by CVE-2022-1544, inspect your project dependencies for Luyadev/yii helpers:

inspect dependencies for luyadev/yii-helpers

Analyze the terminal output to locate any version of Luyadev/yii helpers in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.2.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 CWE-1236: Improper Neutralization of Formula Elements in a CSV File, where the product saves user-provided information into a comma-separated value (csv) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product. In Luyadev/yii helpers, 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

Formula Injection/CSV Injection due to Improper Neutralization of Formula Elements in CSV File in GitHub repository luyadev/yii-helpers prior to 1.2.1. Successful exploitation can lead to impacts such as client-sided command injection, code execution, or remote ex-filtration of contained confidential data.

CVE-2022-1544 Affected Luyadev/yii helpers Versions

1 component(s)
Fixed Versions:
1.2.1
Product / Package Ecosystem Affected Versions Fixed Version
luyadev/yii-helpers
Packagist
< 1.2.1
1.2.1

References

Frequently Asked Questions

What is CVE-2022-1544?
CVE-2022-1544 is a security vulnerability in Luyadev/yii helpers involving Improper neutralization of formula elements in yii-helpers under CWE-1236: Improper Neutralization of Formula Elements in a CSV File.
Which Luyadev/yii helpers versions are affected?
Affected versions include releases prior to 1.2.1 across affected packages: luyadev/yii-helpers.
What version fixes CVE-2022-1544?
Upgrading to 1.2.1 (or the latest patched release for your respective branch) resolves the vulnerability.
Is luyadev/yii-helpers affected?
Yes, luyadev/yii-helpers is affected in releases prior to 1.2.1. Upgrade your dependency to 1.2.1 or later.
What is the CVSS score of CVE-2022-1544?
CVE-2022-1544 has a CVSS v3.1 base score of 7.8 (HIGH) with vector string CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H.
What CWE is associated with CVE-2022-1544?
CVE-2022-1544 is classified under CWE-1236: Improper Neutralization of Formula Elements in a CSV File (The product saves user-provided information into a Comma-Separated Value (CSV) file, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as a command when the file is opened by a spreadsheet product.).
How can I check Packagist dependencies for CVE-2022-1544?
Run the dependency tree command: 'inspect dependencies for luyadev/yii-helpers'. 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-f9p3-h6cg-2cjr",
  "modified" : "2022-05-26T19:49:49Z",
  "published" : "2022-05-03T00:00:46Z",
  "aliases" : [ "CVE-2022-1544" ],
  "summary" : "Improper neutralization of formula elements in yii-helpers",
  "details" : "Formula Injection/CSV Injection due to Improper Neutralization of Formula Elements in CSV File in GitHub repository luyadev/yii-helpers prior to 1.2.1. Successful exploitation can lead to impacts such as client-sided command injection, code execution, or remote ex-filtration of contained confidential data.",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "luyadev/yii-helpers"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.2.1"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-1544"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/luyadev/yii-helpers/commit/9956ed63f516110c2b588471507b870e748c4cfb"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/luyadev/yii-helpers"
  }, {
    "type" : "WEB",
    "url" : "https://huntr.dev/bounties/fa6d6e75-bc7a-40f6-9bdd-2541318912d4"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-1236" ],
    "severity" : "HIGH",
    "github_reviewed" : true,
    "github_reviewed_at" : "2022-05-04T03:01:04Z",
    "nvd_published_at" : "2022-05-01T12:15:00Z"
  }
}