# CVE-2025-24796: Remote Code Execution within Collabora Online jail with Macros Enabled

> Attackers can execute arbitrary binaries within the jail if macros are enabled, bypassing network restrictions. Requires admin to enable macros.

- **Severity:** Medium 6.3 (`CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** No
- **Published:** 6 Mar 2025
- **Updated:** 6 Mar 2025
- **Also known as:** GHSA-4jjq-vgqp-qw45

## What is CVE-2025-24796?

CVE-2025-24796 is a medium-severity code injection vulnerability in CollaboraOnline online, published on 6 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Collabora Online is a collaborative online office suite based on LibreOffice. Macro support is disabled by default in Collabora Online, but can be enabled by an administrator. Collabora Online typically hosts each document instance within a jail and is allowed to download content from locations controlled by the net.lok_allow configuration option, which by default include the private IP ranges to enable access to the local network. If enabled, macros were allowed run executable binaries. By combining an ability to host executables, typically in the local network, in an allowed accessible location, with a macro enabled Collabora Online, it was then possible to install arbitrary binaries within the jail and execute them. These executables are restricted to the same jail file system and user as the document instance but can be used to bypass the additional limits on what network hosts are accessible and provide more flexibility as a platform for further attempts. This is issue is fixed in 24.04.12.4, 23.05.19, 22.05.25 and later macros.

Weakness: CWE-829 (Inclusion of Functionality from Untrusted Control Sphere)

## Which versions are affected by CVE-2025-24796?


## How do I fix CVE-2025-24796?

No fix has been published for CVE-2025-24796 yet. Limit exposure of the affected software until one is available.

## Is CVE-2025-24796 being exploited?

There is no known exploitation of CVE-2025-24796 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-24796 and fix it if it is affected.

What it is: CVE-2025-24796 is a medium-severity code injection vulnerability in CollaboraOnline online, published on 6 Mar 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2025-24796 in the wild and no public exploit code.

Affected product: CollaboraOnline online. No package-level version data is available, so check the vendor advisory linked from the reference page.

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/CVE-2025-24796/ (Markdown: https://insights.sbomify.com/CVE-2025-24796/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2025-24796
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2025-24796
- OSV: https://osv.dev/vulnerability/CVE-2025-24796

---
From sbomify Insights: https://insights.sbomify.com/CVE-2025-24796/
Summaries are generated and may contain mistakes; the official description above is the record.
