GHSA-9j39-4686-m3c4: Ibexa/core Ibexa Kernel's Files With Blacklisted Vulnerability

MODERATE
CWE-434
Published
Advisory Summary

GHSA-9j39-4686-m3c4 is a MODERATE ibexa kernel's files with blacklisted vulnerability (CWE-434: Unrestricted Upload of File with Dangerous Type) affecting Ibexa/core libraries in the Packagist ecosystem. The issue involves ibexa kernel's files with blacklisted extensions can be still saved to drafts. Remediation is available by upgrading affected packages to version 4.5.6, 4.6.2.

GHSA-9j39-4686-m3c4 at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-9j39-4686-m3c4
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-434: Unrestricted Upload of File with Dangerous Type
Affected Product Ibexa/core
Package Ecosystem Packagist
Published Date
Last Updated

How to Fix GHSA-9j39-4686-m3c4

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

ibexa/core fixed: 4.5.6
Upgrade ibexa/core to 4.5.6
ibexa/core fixed: 4.6.2
Upgrade ibexa/core to 4.6.2
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 ibexa/core

How to Check if You Are Affected

To determine whether your application is affected by GHSA-9j39-4686-m3c4, inspect your project dependencies for Ibexa/core:

inspect dependencies for ibexa/core

Analyze the terminal output to locate any version of Ibexa/core in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 4.5.6), 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 Ibexa/core, 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 File validation can be configured to reject certain files by file type. When this happens, validation fails, and the content can't be published. However, the file can be saved when saving the content draft. This means unwanted files can be present in storage, even if they are not easily accessible due to the content not being published. The fix ensures these unwanted file types are never stored. An attacker would need to have existing access to create content with a file field type to exploit this. ### Patches See "Patched versions". Commit: https://github.com/ibexa/core/commit/7e472317f7c75f45f72f74c38406952d8bea0de1 ### References https://developers.ibexa.co/security-advisories/ibexa-sa-2024-002-file-validation-and-workflow-stages

GHSA-9j39-4686-m3c4 Affected Ibexa/core Versions

2 component(s)
Fixed Versions:
4.5.64.6.2
Product / Package Ecosystem Affected Versions Fixed Version
ibexa/core
Packagist
≥ 4.5.0
< 4.5.6
4.5.6
ibexa/core
Packagist
≥ 4.6.0
< 4.6.2
4.6.2

References

Frequently Asked Questions

What is GHSA-9j39-4686-m3c4?
GHSA-9j39-4686-m3c4 is a security vulnerability in Ibexa/core involving Ibexa Kernel's files with blacklisted extensions can be still saved to drafts under CWE-434: Unrestricted Upload of File with Dangerous Type.
Which Ibexa/core versions are affected?
Affected versions include releases prior to 4.5.6, 4.6.2 across affected packages: ibexa/core.
What version fixes GHSA-9j39-4686-m3c4?
Upgrading to 4.5.6, 4.6.2 (or the latest patched release for your respective branch) resolves the vulnerability.
Is ibexa/core affected?
Yes, ibexa/core is affected in releases prior to 4.5.6, 4.6.2. Upgrade your dependency to 4.5.6, 4.6.2 or later.
What CWE is associated with GHSA-9j39-4686-m3c4?
GHSA-9j39-4686-m3c4 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 GHSA-9j39-4686-m3c4?
Run the dependency tree command: 'inspect dependencies for ibexa/core'. 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-9j39-4686-m3c4",
  "modified" : "2024-03-20T18:14:41Z",
  "published" : "2024-03-20T18:14:41Z",
  "aliases" : [ ],
  "summary" : "Ibexa Kernel's files with blacklisted extensions can be still saved to drafts",
  "details" : "### Impact\nFile validation can be configured to reject certain files by file type. When this happens, validation fails, and the content can't be published. However, the file can be saved when saving the content draft. This means unwanted files can be present in storage, even if they are not easily accessible due to the content not being published. The fix ensures these unwanted file types are never stored. An attacker would need to have existing access to create content with a file field type to exploit this.\n\n### Patches\nSee \"Patched versions\".\nCommit: https://github.com/ibexa/core/commit/7e472317f7c75f45f72f74c38406952d8bea0de1\n\n### References\nhttps://developers.ibexa.co/security-advisories/ibexa-sa-2024-002-file-validation-and-workflow-stages",
  "severity" : [ ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ibexa/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.5.0"
      }, {
        "fixed" : "4.5.6"
      } ]
    } ]
  }, {
    "package" : {
      "ecosystem" : "Packagist",
      "name" : "ibexa/core"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "4.6.0"
      }, {
        "fixed" : "4.6.2"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/ibexa/core/security/advisories/GHSA-9j39-4686-m3c4"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/ibexa/core/commit/7e472317f7c75f45f72f74c38406952d8bea0de1"
  }, {
    "type" : "WEB",
    "url" : "https://developers.ibexa.co/security-advisories/ibexa-sa-2024-002-file-validation-and-workflow-stages"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/ibexa/core"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-434" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2024-03-20T18:14:41Z",
    "nvd_published_at" : null
  }
}