# GHSA-9j39-4686-m3c4: Ibexa Kernel's files with blacklisted extensions can be still saved to drafts

> Attackers with content creation access can bypass file type restrictions by saving blacklisted files as drafts, storing unwanted files in the system.

- **Severity:** Not scored
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 20 Mar 2024

## What is GHSA-9j39-4686-m3c4?

GHSA-9j39-4686-m3c4 is a vulnerability in ibexa/core, published on 20 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

### 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

## Which versions are affected by GHSA-9j39-4686-m3c4?

4 open source packages ship an affected version, including ibexa/core.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `ibexa/core` | Packagist | From 4.5.0 | 4.5.6 |
| `ibexa/core` | Packagist | From 4.5.0 | 4.5.6 |
| `ibexa/core` | Packagist | From 4.6.0 | 4.6.2 |
| `ibexa/core` | Packagist | From 4.6.0 | 4.6.2 |

## How do I fix GHSA-9j39-4686-m3c4?

Upgrade ibexa/core to a fixed version for your release line: 4.5.6 or 4.6.2.

## Is GHSA-9j39-4686-m3c4 being exploited?

There is no known exploitation of GHSA-9j39-4686-m3c4 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for GHSA-9j39-4686-m3c4 and fix it if it is affected.

What it is: GHSA-9j39-4686-m3c4 is a vulnerability in ibexa/core, published on 20 Mar 2024. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of GHSA-9j39-4686-m3c4 in the wild and no public exploit code.

Affected packages and fixed versions:
- ibexa/core (Packagist): affected from 4.5.0; fixed in 4.5.6
- ibexa/core (Packagist): affected from 4.5.0; fixed in 4.5.6
- ibexa/core (Packagist): affected from 4.6.0; fixed in 4.6.2
- ibexa/core (Packagist): affected from 4.6.0; fixed in 4.6.2

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/GHSA-9j39-4686-m3c4/ (Markdown: https://insights.sbomify.com/GHSA-9j39-4686-m3c4/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/GHSA-9j39-4686-m3c4

---
From sbomify Insights: https://insights.sbomify.com/GHSA-9j39-4686-m3c4/
Summaries are generated and may contain mistakes; the official description above is the record.
