# CVE-2026-85380: light0011 cms UEditor controller.php catchimage server-side request forgery

The Markdown version of <https://upatch.dev/cve/CVE-2026-85380>. Last updated 25 Nov 2026.

## At a glance

CVE-2026-85380 is rated Medium 5.5 (CVSS 4.0, CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X). It affects light0011 CMS and was published on 4 Sept 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.5%: the estimated chance it is exploited in the next 30 days, as of 25 Nov 2026. The upatch `cve-2026-85380-ssrf-block` mitigates it, and is vetted (merged into the registry).

A upatch is a signed BPF program that shirudo loads into a running Linux kernel to block the code path this CVE's exploit takes. It holds the line until the fix ships; it does not replace patching.

## The vulnerability

CVE-2026-85380, published on 4 September 2026, is an unauthenticated server-side request forgery (CWE-918) in the UEditor component bundled with `light0011/cms` at commits `c774dce31c6df0055568a8d5c53d964d99be199d` and `f72cf46f601efb2a0618c3814cc2f61380b38930`. `Public/ueditor/php/controller.php` dispatches the `catchimage` action without authentication to `Public/ueditor/php/action_crawler.php`, which passes each URL in the `source[]` request parameter to `Uploader` in `Public/ueditor/php/Uploader.class.php` with type `"remote"`. `Uploader::saveRemote()` checks only that the URL starts with `http` before calling `get_headers()` and `readfile()` on it and writing the response under the public upload path `/ueditor/upload/image/...`. Adding a fragment with an allowed extension such as `#allowed.png` satisfies the `strrchr($imgUrl, '.')` suffix check while fetching arbitrary internal HTTP endpoints.

### Official description

A weakness has been identified in light0011 cms c774dce31c6df0055568a8d5c53d964d99be199d/f72cf46f601efb2a0618c3814cc2f61380b38930. This vulnerability affects the function catchimage of the file Public/ueditor/php/controller.php of the component UEditor. This manipulation of the argument source\[] causes server-side request forgery. The attack may be initiated remotely. The exploit has been made available to the public and could be used for attacks. This product uses a rolling release model to deliver continuous updates. As a result, specific version information for affected or updated releases is not available. The project was informed of the problem early through an issue report but has not responded yet.

## What the upatch does

The BPF LSM program `cve_2026_85380_ssrf_block` attaches to `lsm/socket_connect` and returns `-EPERM` when a PHP web process (`php`, `php*`, `php-fpm*`, `apache2` or `httpd`, matched by executable name or task `comm`) attempts to connect an `AF_INET` or `AF_INET6` socket to an internal address:

- IPv4 loopback (`127.0.0.0/8`) and `0.0.0.0/8`
- IPv4 RFC 1918 private networks (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`)
- IPv4 link-local and cloud metadata addresses (`169.254.0.0/16`)
- IPv4 carrier-grade NAT (`100.64.0.0/10`)
- IPv6 loopback (`::1`), unspecified (`::`), unique local (`fc00::/7`), link-local (`fe80::/10`), and IPv4-mapped (`::ffff:0:0/96`) addresses in the IPv4 ranges above

The program checks the socket address family and destination IP range first, and inspects the current task's executable and command name only when the destination is an internal IPv4 or IPv6 address. A refusal from an earlier BPF LSM program on the same hook is passed on unchanged.

The policy: [`cve-2026-85380-ssrf-block.bpf.c`](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-85380), 135 lines of BPF C attached at `lsm/socket_connect`, licensed GPL-2.0 OR BSD-2-Clause.

## Side effects

- Outbound TCP or UDP connections from PHP web processes to loopback, private, link-local or carrier-grade NAT IPv4 and IPv6 addresses fail with `EPERM`, so `catchimage` returns `ERROR_DEAD_LINK` (`链接不可用`) for internal targets.
- If the PHP application connects to a database or cache (such as MySQL or Redis) over a TCP socket on `127.0.0.1` or a private IP rather than a Unix domain socket (`AF_UNIX`), those TCP connections are also refused while the upatch is loaded. Unix domain socket connections are unaffected.
- Outbound connections from PHP to public IP addresses and all connections from non-PHP processes work as before.

## Preemption model and cost

The program keeps no maps or shared state, so it is safe under every preemption model, including preemptible RCU (`PREEMPT_LAZY`, `PREEMPT_DYNAMIC`) and `PREEMPT_RT`. On every `socket_connect` call to a public IP address or a non-IP socket (such as `AF_UNIX`), the program reads the address family and destination IP and returns immediately without inspecting the task struct.

## Affected versions

`light0011/cms` uses a rolling repository without tagged releases:

| Product         | Affected commits                                                                       | Fixed in                |
| --------------- | -------------------------------------------------------------------------------------- | ----------------------- |
| `light0011/cms` | `c774dce31c6df0055568a8d5c53d964d99be199d`, `f72cf46f601efb2a0618c3814cc2f61380b38930` | none (unfixed upstream) |

## How it was tested

On light0011/cms commit f72cf46f601efb2a0618c3814cc2f61380b38930 served by PHP on loopback, the loaded upatch blocked the UEditor catchimage SSRF connection to a loopback HTTP listener while normal config requests kept working.

- **Tested:** 25 Nov 2026
- **Target:** light0011/cms commit f72cf46f601efb2a0618c3814cc2f61380b38930 on PHP CLI built-in web server, loopback only
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Machine:** shirudo test VM
- **Distribution:** Ubuntu 26.04

### Results

| State           | UEditor catchimage SSRF reaches 127.0.0.1 listener | UEditor controller.php?action=config |
| --------------- | -------------------------------------------------- | ------------------------------------ |
| Before loading  | yes (reached)                                      | 200                                  |
| Upatch loaded   | no (blocked)                                       | 200                                  |
| After unloading | yes (reached)                                      | 200                                  |

## How to apply

Build the upatch from source, sign it with your own shirudo key, and publish it to your own OCI registry. Machines that follow your upatch tree load it within about a minute.

Build and sign:

```sh
git clone https://github.com/copper-helm/upatch-registry
cd upatch-registry
tools/build <shirudo-checkout> <keys-dir> 1.0.0 upatches/cve-2026-85380
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-85380-1.0.0.bee oci://<registry>/<namespace>/cve-2026-85380 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-85380-1.0.0.bee oci://<registry>/<namespace>/<tree> --tree-id <tree-id> --keys-dir <keys-dir>
```

## Review

- Contributors: romanlab.
- Reviewers: none recorded yet.

## Sources and links

- [CVE-2026-85380 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-85380)
- [Upstream issue report: light0011/cms#6](https://github.com/light0011/cms/issues/6)
- [light0011/cms repository at commit f72cf46f601e](https://github.com/light0011/cms/tree/f72cf46f601efb2a0618c3814cc2f61380b38930)
- [Vulnerable controller.php](https://github.com/light0011/cms/blob/f72cf46f601efb2a0618c3814cc2f61380b38930/Public/ueditor/php/controller.php) and [Uploader.class.php](https://github.com/light0011/cms/blob/f72cf46f601efb2a0618c3814cc2f61380b38930/Public/ueditor/php/Uploader.class.php)

### Links

- [CVE-2026-85380 on upatch.dev](https://upatch.dev/cve/CVE-2026-85380) (this page, as HTML)
- [NVD](https://nvd.nist.gov/vuln/detail/CVE-2026-85380)
- [CVE.org](https://www.cve.org/CVERecord?id=CVE-2026-85380)
- [CWE-918](https://cwe.mitre.org/data/definitions/918.html)
- Upatch source: [upatches/cve-2026-85380](https://github.com/copper-helm/upatch-registry/tree/main/upatches/cve-2026-85380)

### More references from NVD (6)

- [github.com](https://github.com/light0011/cms/)
- [github.com](https://github.com/light0011/cms/issues/6)
- [vuldb.com](https://vuldb.com/cve/CVE-2026-85380)
- [vuldb.com](https://vuldb.com/submit/894800)
- [vuldb.com](https://vuldb.com/vuln/398534)
- [vuldb.com](https://vuldb.com/vuln/398534/cti)
