CVE-2024-42482: Fish shop/syntax check Fish-shop/syntax-check Improper Neutralization Of Delimiters Vulnerability

MODERATE
Advisory Identifier: GHSA-xj87-mqvh-88w2
CVSS 4.8
CWE-140
Published
Advisory Summary

CVE-2024-42482 is a MODERATE (CVSS 4.8) fish-shop/syntax-check improper neutralization of delimiters vulnerability (CWE-140: Improper Neutralization of Delimiters) affecting Fish shop/syntax check libraries in the GitHub Actions ecosystem. The issue involves fish-shop/syntax-check improper neutralization of delimiters. Remediation is available by upgrading affected packages to version 1.6.12.

CVE-2024-42482 at a Glance

CVE Identifier CVE-2024-42482
GHSA Identifier GHSA-xj87-mqvh-88w2
Severity MODERATE
CVSS v3.1 Base Score 4.8
CWE Classification CWE-140: Improper Neutralization of Delimiters
Affected Product Fish shop/syntax check
Package Ecosystem GitHub Actions
Published Date
Last Updated

Security Impact

CVSS: 4.8

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

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

How to Fix CVE-2024-42482

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

fish-shop/syntax-check fixed: 1.6.12
Upgrade fish-shop/syntax-check to 1.6.12
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 fish-shop/syntax-check

How to Check if You Are Affected

To determine whether your application is affected by CVE-2024-42482, inspect your project dependencies for Fish shop/syntax check:

inspect dependencies for fish-shop/syntax-check

Analyze the terminal output to locate any version of Fish shop/syntax check in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.6.12), 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-140: Improper Neutralization of Delimiters, where the product does not neutralize or incorrectly neutralizes delimiters. In Fish shop/syntax check, 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

### Impact Improper neutralisation of delimiters in the `pattern` input (specifically the command separator `;` and command substitution characters `(` and `)`) mean that arbitrary command injection is possible by modification of the input value used in a workflow. This has the potential for exposure or exfiltration of sensitive information from the workflow runner, such as might be achieved by sending environment variables to an external entity. ### Patches As of this writing, the issue has been patched for versions in the `v1.x.x` release series in release `v1.6.12` (also tagged as `v1.6` and `v1`). The latest available release `v2.0.0` also includes a corresponding patch (also tagged as `v2.0` and `v2`). Users should upgrade to at least the patched version `v1.6.12` or preferably the latest available version `v2.0.0`. Workflows that use the action ref `v1` will automatically receive the patched version `v1.6.12` in future workflow runs. Patch summary: | Release series | Patched tags | Patched commit hashes | |----------------|-------------------------|-------------| | `1.x.x` | `v1.6.12`, `v1.6`, `v1` | `91e6817c48ad475542fe4e78139029b036a53b03` | | `2.x.x` | `v2.0.0`, `v2.0`, `v2` | `c2cb11395e21119ff8d6e7ea050430ee7d6f49ca` | ### Workarounds Is it recommended that users update to the patched version `v1.6.12` or the latest release version `v2.0.0`, however remediation may be possible through careful control of workflows and the `pattern` input value used by this action. ### References - [CWE-140: Improper Neutralization of Delimiters](https://cwe.mitre.org/data/definitions/140.html) - [CAPEC-15: Command Delimiters](https://capec.mitre.org/data/definitions/15.html)

CVE-2024-42482 Affected Fish shop/syntax check Versions

1 component(s)
Fixed Versions:
1.6.12
Product / Package Ecosystem Affected Versions Fixed Version
fish-shop/syntax-check
GitHub Actions
< 1.6.12
1.6.12

References

Frequently Asked Questions

What is CVE-2024-42482?
CVE-2024-42482 is a security vulnerability in Fish shop/syntax check involving fish-shop/syntax-check Improper Neutralization of Delimiters under CWE-140: Improper Neutralization of Delimiters.
Which Fish shop/syntax check versions are affected?
Affected versions include releases prior to 1.6.12 across affected packages: fish-shop/syntax-check.
What version fixes CVE-2024-42482?
Upgrading to 1.6.12 (or the latest patched release for your respective branch) resolves the vulnerability.
Is fish-shop/syntax-check affected?
Yes, fish-shop/syntax-check is affected in releases prior to 1.6.12. Upgrade your dependency to 1.6.12 or later.
What is the CVSS score of CVE-2024-42482?
CVE-2024-42482 has a CVSS v3.1 base score of 4.8 (MODERATE) with vector string CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N.
What CWE is associated with CVE-2024-42482?
CVE-2024-42482 is classified under CWE-140: Improper Neutralization of Delimiters (The product does not neutralize or incorrectly neutralizes delimiters.).
How can I check GitHub Actions dependencies for CVE-2024-42482?
Run the dependency tree command: 'inspect dependencies for fish-shop/syntax-check'. 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-xj87-mqvh-88w2",
  "modified" : "2024-08-12T19:16:59Z",
  "published" : "2024-08-12T18:25:20Z",
  "aliases" : [ "CVE-2024-42482" ],
  "summary" : "fish-shop/syntax-check Improper Neutralization of Delimiters",
  "details" : "### Impact\n\nImproper neutralisation of delimiters in the `pattern` input (specifically the command separator `;` and command substitution characters `(` and `)`) mean that arbitrary command injection is possible by modification of the input value used in a workflow. This has the potential for exposure or exfiltration of sensitive information from the workflow runner, such as might be achieved by sending environment variables to an external entity.\n\n### Patches\n\nAs of this writing, the issue has been patched for versions in the `v1.x.x` release series in release `v1.6.12` (also tagged as `v1.6` and `v1`). The latest available release `v2.0.0` also includes a corresponding patch (also tagged as `v2.0` and `v2`).\n\nUsers should upgrade to at least the patched version `v1.6.12` or preferably the latest available version `v2.0.0`. Workflows that use the action ref `v1` will automatically receive the patched version `v1.6.12` in future workflow runs.\n\nPatch summary:\n\n| Release series | Patched tags    | Patched commit hashes |\n|----------------|-------------------------|-------------|\n| `1.x.x`        | `v1.6.12`, `v1.6`, `v1` | `91e6817c48ad475542fe4e78139029b036a53b03`    |\n| `2.x.x`        | `v2.0.0`, `v2.0`, `v2`  | `c2cb11395e21119ff8d6e7ea050430ee7d6f49ca`    |\n\n### Workarounds\n\nIs it recommended that users update to the patched version `v1.6.12` or the latest release version `v2.0.0`, however remediation may be possible through careful control of workflows and the `pattern` input value used by this action.\n\n### References\n\n- [CWE-140: Improper Neutralization of Delimiters](https://cwe.mitre.org/data/definitions/140.html)\n- [CAPEC-15: Command Delimiters](https://capec.mitre.org/data/definitions/15.html)\n",
  "severity" : [ {
    "type" : "CVSS_V3",
    "score" : "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:N"
  }, {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "GitHub Actions",
      "name" : "fish-shop/syntax-check"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.6.12"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/fish-shop/syntax-check/security/advisories/GHSA-xj87-mqvh-88w2"
  }, {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-42482"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fish-shop/syntax-check/commit/91e6817c48ad475542fe4e78139029b036a53b03"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/fish-shop/syntax-check/commit/c2cb11395e21119ff8d6e7ea050430ee7d6f49ca"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/fish-shop/syntax-check"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-140" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-08-12T18:25:20Z",
    "nvd_published_at" : "2024-08-12T16:15:16Z"
  }
}