# CVE-2026-80344: Apache Camel: Camel-AS2 Server-Side Request Forgery and Credential Disclosure via Asynchronous MDN Delivery Address

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

## At a glance

CVE-2026-80344 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 Apache Camel (Apache Software Foundation) and was published on 19 Oct 2026. It is not in CISA's Known Exploited Vulnerabilities catalog. Its EPSS score is 0.9%: the estimated chance it is exploited in the next 30 days, as of 24 Nov 2026. The upatch `cve-2026-80344-as2-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-80344 is a server-side request forgery (SSRF) and credential disclosure vulnerability in the Apache Camel AS2 component (`camel-as2`), published on 19 October 2026 and tracked as CAMEL-24417. In the AS2 protocol, the sender of an inbound message can request an asynchronous receipt by supplying a delivery URL in the `Receipt-Delivery-Option` HTTP header. When `ResponseMDN` sees both `Disposition-Notification-To` and `Receipt-Delivery-Option`, it records that URL in the HTTP context, and `AS2ServerConnection.RequestHandlerThread` passes it to `AS2AsynchronousMDNManager.send()`, which opens a `java.net.Socket` to the host and port in the sender-supplied URI without checking them against an allow-list. A remote sender can therefore direct the Camel AS2 receiver to connect to internal services, loopback endpoints, or link-local metadata addresses, and receive any configured MDN credentials along with the HTTP POST request.

### Official description

Server-Side Request Forgery (SSRF) vulnerability in Apache Camel AS2 component.

This issue affects Apache Camel: from 4.0.0 before 4.18.5, from 4.19.0 before 4.22.1.

In the AS2 protocol the sender of a message may request that the Message Disposition Notification be returned asynchronously to an address the sender supplies. camel-as2 took that address from the inbound message and used it as the destination for the outgoing receipt without constraining it to anything the deployment had configured. A remote partner therefore chose the host the Camel instance would connect to when delivering the MDN. That gives server-side request forgery from the position of the AS2 receiver, including reaching hosts that are only routable from inside the deployment's network, and where the outbound connection carries credentials configured for MDN delivery those credentials are presented to the attacker-chosen destination.

Upgrade to Apache Camel 4.23.0, which fixes the issue. Users on the 4.18.x LTS releases stream should upgrade to 4.18.5. Users on the 4.22.x LTS releases stream should upgrade to 4.22.1. The asynchronous MDN destination is now constrained rather than taken verbatim from the inbound message. For deployments that cannot upgrade immediately, restrict outbound connectivity from the AS2 receiver to the partner endpoints it legitimately delivers receipts to, and do not attach credentials to MDN delivery that are valid for any host other than those partners.

## What the upatch does

One BPF LSM program on `lsm/socket_connect` returns `-EPERM` when all three conditions hold:

1. The calling thread's command name (`comm`) starts with `AS2Hdlr-`, which `AS2ServerConnection.RequestHandlerThread` sets with `setName("AS2Hdlr-" + getId())` before handling an inbound AS2 connection and delivering its asynchronous MDN.
2. The destination socket address is an internal IPv4 or IPv6 address (or an IPv4-mapped IPv6 address for one): `0.0.0.0/8`, `127.0.0.0/8`, `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`, `169.254.0.0/16` (including `169.254.169.254`), `::`, `::1`, `fc00::/7`, or `fe80::/10`.
3. The current task's executable (`mm->exe_file`) is named `java`.

A refusal from an earlier BPF LSM program on `lsm/socket_connect` is preserved. The `refused` per-CPU array map counts refused connection attempts at key 0.

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

## Side effects

- Asynchronous MDN delivery from an `AS2ServerConnection` handler thread to loopback, RFC 1918 private networks, link-local addresses, or unique local IPv6 addresses fails with a socket permission error (`EPERM`), while synchronous MDNs and inbound AS2 requests on the same connection complete normally.
- Outbound connections from other threads in the same JVM (such as Camel routes forwarding received payloads or `AS2ClientConnection` senders) and from all other processes on the machine are unaffected because their thread names do not start with `AS2Hdlr-`.
- Outbound asynchronous MDNs to public external IP addresses are not blocked by this upatch; operators who need to restrict external hosts or protect MDN credentials on external connections should upgrade and set `asyncMdnAllowedHosts`.
- Not covered: a custom JVM launcher whose binary is not named `java`.

## Preemption model and cost

The program keeps no shared state beyond the per-CPU `refused` counter, which it updates with `__sync_fetch_and_add`, making it safe under all kernel preemption models including `PREEMPT_LAZY`, `PREEMPT_DYNAMIC`, and `PREEMPT_RT`. On every `socket_connect` call outside an AS2 handler thread, the program runs a single `bpf_get_current_comm()` check on the first 8 bytes and returns 0 without reading the socket address or task structures.

## Affected versions

Apache Camel `camel-as2` / `camel-as2-api`:

| Branch | Affected         | Fixed in |
| ------ | ---------------- | -------- |
| 4.18.x | 4.0.0 to 4.18.4  | 4.18.5   |
| 4.22.x | 4.19.0 to 4.22.0 | 4.22.1   |
| 4.23.x | —                | 4.23.0   |

Kernels: any Linux kernel supported by shirudo with BPF LSM and BTF enabled (`lsm/socket_connect`).

## How it was tested

On a vulnerable Apache Camel camel-as2-api 4.22.0 AS2ServerConnection, the loaded upatch refused the asynchronous MDN callback to 127.0.0.1 while leaving inbound AS2 message receipt intact.

- **Tested:** 25 Nov 2026
- **Target:** Apache Camel camel-as2-api 4.22.0 on OpenJDK 21, AS2ServerConnection listening on 127.0.0.1:18888
- **Kernel:** 7.4-shirudo-ci-20261123
- **Architecture:** x86_64

### Results

| State           | Async MDN SSRF callback to 127.0.0.1 | Inbound AS2 POST status |
| --------------- | ------------------------------------ | ----------------------- |
| Before loading  | reached                              | 200                     |
| Upatch loaded   | blocked                              | 200                     |
| After unloading | 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-80344
```

Publish and roll out:

```sh
shirudo bpm push build/packages/cve-2026-80344-1.0.0.bee oci://<registry>/<namespace>/cve-2026-80344 --keys-dir <keys-dir>
shirudo bpm tree append build/packages/cve-2026-80344-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

- [Apache Camel Security Advisory CVE-2026-80344](https://camel.apache.org/security/CVE-2026-80344.html)
- [CAMEL-24417 Jira issue](https://issues.apache.org/jira/browse/CAMEL-24417)
- [Pull request #25637 (main)](https://github.com/apache/camel/pull/25637) — commit [`ff2b608d77ba`](https://github.com/apache/camel/commit/ff2b608d77ba773b030fe80467e77cf28ae209d4)
- [Pull request #25763 (4.22.x)](https://github.com/apache/camel/pull/25763) — commit [`af7421ff5f74`](https://github.com/apache/camel/commit/af7421ff5f7456e252dad14e3279c7809cdef208)
- [Pull request #25764 (4.18.x)](https://github.com/apache/camel/pull/25764) — commit [`64459b6299c0`](https://github.com/apache/camel/commit/64459b6299c07364eb9a225ee02fa2153da526e2)

### Links

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

### More references from NVD (5)

- [camel.apache.org](https://camel.apache.org/security/CVE-2026-80344.html) (Mitigation, Patch, Vendor Advisory)
- [github.com](https://github.com/apache/camel/pull/25637) (Issue Tracking, Patch)
- [github.com](https://github.com/apache/camel/pull/25763) (Issue Tracking, Patch)
- [github.com](https://github.com/apache/camel/pull/25764) (Issue Tracking, Patch)
- [issues.apache.org](https://issues.apache.org/jira/browse/CAMEL-24417) (Issue Tracking, Patch)
