# CVE-2026-77348: Wallos incomplete fix for CVE-2026-33407: unauthenticated httpoxy SSRF still reachable via `endpoints/payments/search.php`

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

## At a glance

CVE-2026-77348 is rated High 8.2 (CVSS 3.1, CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N). It affects Wallos (ellite) and was published on 31 Aug 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.4%: the estimated chance it is exploited in the next 30 days, as of 25 Nov 2026. The upatch `cve-2026-77348-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-77348 (GHSA-f8j2-qm83-r2w4), published on 31 August 2026, is an incomplete fix for CVE-2026-33407 (GHSA-hhjq-82f8-m6rc) in Wallos prior to version 5.0.0. While the earlier fix hardened `endpoints/logos/search.php` by disabling cURL proxying (`CURLOPT_PROXY` set to `''` and `CURLOPT_NOPROXY` set to `'*'`), the unauthenticated endpoint `endpoints/payments/search.php` still reads `HTTPS_PROXY` and `HTTP_PROXY` in `applyProxy()` and passes the value directly to `curl_setopt($ch, CURLOPT_PROXY, $proxy)`. Although `curlGet()` checks that the target URL host is `duckduckgo.com` or `search.brave.com`, resolves its IP with `gethostbyname()`, rejects private, reserved and CGNAT (`100.64.0.0/10`) addresses via `FILTER_FLAG_NO_PRIV_RANGE | FILTER_FLAG_NO_RES_RANGE` and `is_cgnat_ip()`, and pins the resolved IP with `CURLOPT_RESOLVE`, cURL connects to `CURLOPT_PROXY` instead of the pinned IP when a proxy is set. Under CGI or FastCGI setups where an inbound `Proxy:` HTTP header populates `HTTP_PROXY` (httpoxy), or whenever `HTTP_PROXY`/`HTTPS_PROXY` is attacker-influenced, an unauthenticated request to `endpoints/payments/search.php?search=...` redirects Wallos's outbound cURL request to an arbitrary internal or loopback address and port.

### Official description

Wallos is an open-source, self-hostable personal subscription tracker. Prior to version 5.0.0, the fix for CVE-2026-33407 (GHSA-hhjq-82f8-m6rc, "SSRF via HTTP Proxy Environment Variable") hardened endpoints/logos/search.php by disabling cURL proxying (CURLOPT_PROXY = '' + CURLOPT_NOPROXY = '\*'). However, Wallos ships a second, near-identical, unauthenticated logo-image search endpoint — endpoints/payments/search.php — that was not given the same hardening. It still passes the HTTP_PROXY/HTTPS_PROXY environment variable straight into CURLOPT_PROXY. This issue has been patched in version 5.0.0.

## What the upatch does

The BPF LSM program `cve_2026_77348_connect` attaches to `lsm/socket_connect` and returns `-EPERM` when all three conditions hold:

1. The socket is a stream socket (`SOCK_STREAM`).
2. The destination `sockaddr` is an IPv4 (`AF_INET`) or IPv6 (`AF_INET6`, including IPv4-mapped IPv6 `::ffff:0:0/96`) address in the loopback (`127.0.0.0/8`, `::1`), RFC 1918 private (`10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`), RFC 6598 Carrier-Grade NAT (`100.64.0.0/10`), link-local and cloud metadata (`169.254.0.0/16`, `fe80::/10`), unique local (`fc00::/7`), unspecified (`0.0.0.0/8`, `::`), or multicast/reserved (`224.0.0.0/4`, `ff00::/8`) ranges.
3. The calling task's command name or executable name starts with `php` (matching `php`, `php-fpm`, `php-fpm8.3`, `php-fpm8.4`, `php-cgi`, `php8.3`, and `php8.4`).

This enforces in the kernel the private, reserved, loopback and CGNAT address filter that `curlGet()` in `endpoints/payments/search.php` applies only to the URL host and not to `CURLOPT_PROXY`. Each refused connection increments key 0 of the `refused` per-CPU array map. Any refusal from an earlier BPF LSM program on the same hook is preserved.

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

## Side effects

- Outbound TCP connections from `php` / `php-fpm` processes to loopback, RFC 1918 private, CGNAT (`100.64.0.0/10`), link-local (`169.254.0.0/16`) and reserved IP addresses fail with `EPERM`.
- Outbound TCP connections from PHP to public IP addresses (such as `duckduckgo.com` and `search.brave.com`), Unix domain sockets (`AF_UNIX`, used by nginx to talk to PHP-FPM and for SQLite local database files), and UDP DNS lookups (`SOCK_DGRAM`) continue to work normally.
- If a Wallos deployment uses an admin-allowlisted internal webhook, internal OIDC provider, or internal SMTP server over TCP, those connections from PHP are also refused while the upatch is loaded.
- Non-PHP processes on the machine, including nginx, sshd and root's shell, are unaffected.

## Preemption model and cost

The program keeps no shared state beyond the per-CPU `refused` counter, which is updated with `__sync_fetch_and_add` only when a connection is refused, so it is safe under every kernel preemption model, including preemptible RCU, `PREEMPT_LAZY` and `PREEMPT_RT`. On every `socket_connect` call, the program checks `sock->type` and the destination IP address first, returning immediately for non-stream sockets (such as UDP DNS queries and Unix datagrams), Unix domain stream sockets (`AF_UNIX`), and connections to public IP addresses without inspecting the calling task.

## Affected versions

Wallos versions prior to 5.0.0 (such as 4.9.6 and 4.8.2) are affected; version 5.0.0 (commit `11eaf402e841a628c68a805694227ce66c45f6f3`) fixes the vulnerability by ignoring uppercase `HTTP_PROXY` and `HTTPS_PROXY` variables and setting `CURLOPT_PROXY = ''` and `CURLOPT_NOPROXY = '*'` when no lowercase proxy variable is set.

The upatch uses the standard `lsm/socket_connect` hook (`struct socket *`, `struct sockaddr *`, `int`) and works on any Linux kernel supported by shirudo.

## How it was tested

On Wallos 4.9.6 with HTTP_PROXY pointing to a loopback listener, endpoints/payments/search.php connected to the loopback proxy before loading and after unloading the upatch, and was refused while the upatch was loaded while still answering HTTP 200.

- **Tested:** 25 Nov 2026
- **Target:** Wallos 4.9.6 on nginx and PHP-FPM with HTTP_PROXY=http\://127.0.0.1:18081, loopback only
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64
- **Machine:** shirudo test VM
- **Distribution:** Ubuntu 26.04

### Results

| State           | Loopback proxy connection from endpoints/payments/search.php | Endpoint HTTP response |
| --------------- | ------------------------------------------------------------ | ---------------------- |
| Before loading  | reached (CONNECT duckduckgo.com:443)                         | HTTP 200               |
| Upatch loaded   | blocked (EPERM)                                              | HTTP 200               |
| After unloading | reached (CONNECT duckduckgo.com:443)                         | HTTP 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-77348
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-77348-1.0.0.bee oci://<registry>/<namespace>/cve-2026-77348 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-77348-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-77348 record (CVE API)](https://cveawg.mitre.org/api/cve/CVE-2026-77348)
- [GitHub Security Advisory GHSA-f8j2-qm83-r2w4](https://github.com/ellite/Wallos/security/advisories/GHSA-f8j2-qm83-r2w4)
- [GitHub Security Advisory GHSA-hhjq-82f8-m6rc (CVE-2026-33407)](https://github.com/ellite/Wallos/security/advisories/GHSA-hhjq-82f8-m6rc)
- [Fix commit 11eaf402e841](https://github.com/ellite/Wallos/commit/11eaf402e841a628c68a805694227ce66c45f6f3)
- [Wallos v5.0.0 release](https://github.com/ellite/Wallos/releases/tag/v5.0.0)

### Links

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

### More references from NVD (4)

- [github.com](https://github.com/ellite/Wallos/commit/11eaf402e841a628c68a805694227ce66c45f6f3)
- [github.com](https://github.com/ellite/Wallos/releases/tag/v5.0.0)
- [github.com](https://github.com/ellite/Wallos/security/advisories/GHSA-f8j2-qm83-r2w4)
- [github.com](https://github.com/ellite/Wallos/security/advisories/GHSA-hhjq-82f8-m6rc)
