GHSA-c2p2-hgjg-9r3f: Islandora/crayfish Remote Code Execution Vulnerability

CRITICAL
CWE-150 CWE-74
Published
Advisory Summary

GHSA-c2p2-hgjg-9r3f is a CRITICAL remote code execution vulnerability (CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences) affecting Islandora/crayfish libraries in the Packagist ecosystem. The issue involves crayfish allows remote code execution via hypercube x-islandora-args header. Remediation is available in the latest vendor maintenance releases.

GHSA-c2p2-hgjg-9r3f at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c2p2-hgjg-9r3f
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences
Affected Product Islandora/crayfish
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-c2p2-hgjg-9r3f

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

islandora/crayfish fixed: Latest secure release
Upgrade islandora/crayfish 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 islandora/crayfish

How to Check if You Are Affected

To determine whether your application is affected by GHSA-c2p2-hgjg-9r3f, inspect your project dependencies for Islandora/crayfish:

inspect dependencies for islandora/crayfish

Analyze the terminal output to locate any version of Islandora/crayfish 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-150: Improper Neutralization of Escape, Meta, or Control Sequences, where the product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component. In Islandora/crayfish, 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 _What kind of vulnerability is it? Who is impacted?_ Remote code execution is possible in web-accessible installations of hypercube. ### Patches _Has the problem been patched? What versions should users upgrade to?_ Not yet, though no patch is neccessary if your installation of the microservices is behind a firewall. See below. ### Workarounds _Is there a way for users to fix or remediate the vulnerability without upgrading?_ The exploit requires making a request against Hypercube's endpoints; therefore, the ability to make use of the exploit is much reduced if the microservice is not directly accessible from the Internet, so: Prevent general access from the Internet from hitting Hypercube. Furthermore, if you've used any of the official installation methods, your Crayfish will be behind a firewall and there is no work neccessary. The webserver might be made to validate the structure of headers passed, but that would only be neccessary if you publicly exposed the endpoint. Standard security practices should be applied. ### References _Are there any links users can visit to find out more?_ - XBOW-024-074

GHSA-c2p2-hgjg-9r3f Affected Islandora/crayfish Versions

1 component(s)
Product / Package Ecosystem Affected Versions Fixed Version
islandora/crayfish
Packagist
≤ 4.0.0

References

Frequently Asked Questions

What is GHSA-c2p2-hgjg-9r3f?
GHSA-c2p2-hgjg-9r3f is a security vulnerability in Islandora/crayfish involving Crayfish Allows Remote Code Execution via hypercube X-Islandora-Args Header under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences.
Which Islandora/crayfish versions are affected?
Affected versions include releases prior to current release patches across affected packages: islandora/crayfish.
What version fixes GHSA-c2p2-hgjg-9r3f?
Upgrading to current release patches (or the latest patched release for your respective branch) resolves the vulnerability.
Is islandora/crayfish affected?
Yes, islandora/crayfish is affected in releases prior to Latest secure release. Upgrade your dependency to Latest secure release or later.
What CWE is associated with GHSA-c2p2-hgjg-9r3f?
GHSA-c2p2-hgjg-9r3f is classified under CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences (The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could be interpreted as escape, meta, or control character sequences when they are sent to a downstream component.).
How can I check Packagist dependencies for GHSA-c2p2-hgjg-9r3f?
Run the dependency tree command: 'inspect dependencies for islandora/crayfish'. 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-c2p2-hgjg-9r3f",
  "modified" : "2025-02-12T21:05:47Z",
  "published" : "2025-02-12T21:05:47Z",
  "aliases" : [ ],
  "summary" : "Crayfish Allows Remote Code Execution via hypercube X-Islandora-Args Header",
  "details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\n\nRemote code execution is possible in web-accessible installations of hypercube. \n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n\nNot yet, though no patch is neccessary if your installation of the microservices is behind a firewall.  See below.\n\n### Workarounds\n_Is there a way for users to fix or remediate the vulnerability without upgrading?_\n\nThe exploit requires making a request against Hypercube's endpoints; therefore, the ability to make use of the exploit is much reduced if the microservice is not directly accessible from the Internet, so: Prevent general access from the Internet from hitting Hypercube.  Furthermore, if you've used any of the official installation methods, your Crayfish will be behind a firewall and there is no work neccessary.\n\nThe webserver might be made to validate the structure of headers passed, but that would only be neccessary if you publicly exposed the endpoint. Standard security practices should be applied.\n\n### References\n_Are there any links users can visit to find out more?_\n\n- XBOW-024-074",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "islandora/crayfish"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "last_affected" : "4.0.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/Islandora/Crayfish/security/advisories/GHSA-c2p2-hgjg-9r3f"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/Islandora/Crayfish"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-150", "CWE-74" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-02-12T21:05:47Z",
    "nvd_published_at" : null
  }
}