CVE-2026-50645

Apache CXF: No restriction on attachment headers per message

Published Jun 12, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

Apache CXF has no limit on the number of attachment headers that can be present in a message during deserialization, which can lead to uncontrolled resource consumption or a denial of service attack. Each attachment consumes memory and CPU resources, potentially depleting system capacity and causing the service to become unresponsive or crash. The flaw is classified as a resource‑consumption weakness (CWE-400).

Affected Systems

The vulnerability affects the Apache CXF framework distributed by the Apache Software Foundation. Versions older than 4.2.2 or 4.1.7 do not enforce an attachment threshold and are therefore vulnerable. Updating to Apache CXF 4.2.2 or 4.1.7 installs a default cap of 500 attachments per message, mitigating the issue.

Risk and Exploitability

The description indicates that an attacker could send an XML message with an excessive number of attachment headers to an exposed CXF endpoint. Based on this information, it is inferred that the flaw can be exploited remotely without authentication, and would trigger memory exhaustion or processing delays. The CVSS score of 7.5 reflects a high severity denial of service vulnerability. The EPSS score is less than 1% and the vulnerability is not listed in CISA’s KEV catalog, but the lack of a resource cap makes it a high‑risk denial of service vector in environments with unrestricted inbound traffic.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Apache CXF to version 4.2.2, 4.1.7, or 3.6.12, which enforce a default maximum of 500 attachments per message.
  • If upgrading is not immediately possible, configure the application to set an explicit maximum number of attachments per message or reject messages that exceed a safe threshold.
  • Implement network‑level rate limiting or firewall rules to control the rate of incoming connections and to detect large payloads before they reach the application.
  • Monitor runtime memory usage and application logs for abnormal attachment header volumes to detect and mitigate potential denial‑of‑service attempts.

Generated by OpenCVE AI on August 7, 2026 at 13:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-ghvc-7hp8-2g2v Apache cxf-core: No restriction on attachment headers per message
History
Type Values Removed Values Added
Description 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, which fix this issue by imposing a maximum default of 500 attachments per message. 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.
Type Values Removed Values Added
CPEs cpe:2.3:a:apache:cxf:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Apache
Apache cxf
Vendors & Products Apache
Apache cxf
Type Values Removed Values Added
Description 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, which fix this issue by imposing a maximum default of 500 attachments per message.
Title Apache CXF: No restriction on attachment headers per message
Weaknesses CWE-400
References
Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

Sources

Status
PUBLISHED
Assigner
apache
Published
Updated
Aug 7, 2026, 12:43 PM
Reserved
Jun 5, 2026, 2:05 PM
Status
Analyzed
Published
Jun 12, 2026, 10:16 AM
Modified
Nov 5, 2026, 3:57 PM