---
id: CVE-2026-50645
title: "There is no restriction on the amount of attachment headers that a message can contain when being deserialized by Apache CXF, which can lead to uncontrolled resource consumption or a denial of service attack.\_Users are recommended to upg…"
summary: "There is no restriction on the amount of attachment headers that a message can contain when being deserialized by Apache CXF, which can lead to uncontrolled resource consumption or a denial of service attack.\_Users are recommended to upg…"
severity: high
cvss: 7.5
cvssVector: 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'
cwe:
  - CWE-400
vendor: apache
product: cxf
affected:
  - cxf < 4.1.7
  - 'cxf >= 4.2.0, < 4.2.2'
patched:
  - cxf 4.2.2
published: '2026-06-12'
updated: '2026-08-07'
source: NVD
sourceUrl: 'https://nvd.nist.gov/vuln/detail/CVE-2026-50645'
references:
  - url: 'https://lists.apache.org/thread/24zb7cqcvykhwm0j797dmdq25s61mj93'
    label: security@apache.org
  - url: 'http://www.openwall.com/lists/oss-security/2026/06/11/12'
    label: af854a3a-2127-422b-91ae-364da2661108
tags:
  - nvd
epss: 0.0074
epssPercentile: 0.526
ingestedAt: '2026-08-07T14:14:17.602Z'
---

## Overview

There is no restriction on the amount of attachment headers that a message can contain when being deserialized by Apache CXF, which can lead to uncontrolled resource consumption or a denial of service attack. Users are recommended to upgrade to versions 4.2.2 or 4.1.7 or 3.6.12, which fix this issue by imposing a maximum default of 500 attachments per message.

## Affected

- `cxf < 4.1.7`
- `cxf >= 4.2.0, < 4.2.2`

## Remediation

Upgrade past the affected range:

- `cxf 4.2.2`
