Skip to content
OpenAdvisories
Medium · 5.5 Public exploit CVE-2017-12624 EUVD-2022-3066GHSA-7vgj-8mw4-hg8r

Improper Input Validation in Apache CXF

Published Nov 14, 2017 · Updated Sep 17, 2024 · Assigned by apache

Description

Apache CXF supports sending and receiving attachments via either the JAX-WS or JAX-RS specifications. It is possible to craft a message attachment header that could lead to a Denial of Service (DoS) attack on a CXF web service provider. Both JAX-WS and JAX-RS services are vulnerable to this attack. From Apache CXF 3.2.1 and 3.1.14, message attachment headers that are greater than 300 characters will be rejected by default. This value is configurable via the property "attachment-max-header-size".

Affected products

VendorProductAffectedFixed
Apache Software Foundation Apache CXF prior to 3.1.14, 3.2.x prior to 3.2.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Red Hat JBoss EAP 7 eap7-activemq-artemis +15 1.5.5.013-1.redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-bouncycastle +3 1.56.0-5.redhat_3.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-guava +1 25.0.0-1.redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-hibernate +5 5.1.15-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-ironjacamar +8 1.4.10-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-jberet +1 1.2.6-2.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-jboss-ejb-client 4.0.11-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-jboss-remoting 5.0.8-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-jboss-server-migration +18 1.0.6-4.Final_redhat_4.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-mod_cluster 1.3.10-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-narayana +10 5.5.32-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-picketlink-api +9 2.5.5-13.SP12_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-resteasy +16 3.0.26-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-undertow 1.4.18-7.SP8_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-wildfly +1 7.1.4-1.GA_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-wildfly-javadocs 7.1.4-2.GA_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-wildfly-naming-client 1.0.9-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-wildfly-openssl-linux 1.0.6-14.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-wildfly-transaction-client 1.0.4-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423
Red Hat JBoss EAP 7 eap7-wildfly-web-console-eap 2.9.18-1.Final_redhat_1.1.ep7.el6 RHSA-2018:2424, RHSA-2018:2423

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Affected packages

EcosystemPackageAffectedFixedRecord
Maven org.apache.cxf:cxf-core >= 3.2.0, < 3.2.1 3.2.1 GHSA-7vgj-8mw4-hg8r
Maven org.apache.cxf:cxf-core >= 3.1.0, < 3.1.14 3.1.14 GHSA-7vgj-8mw4-hg8r
Maven org.apache.cxf:cxf-core < 3.0.16 3.0.16 GHSA-7vgj-8mw4-hg8r

Advisories 3

References