CVE-2018-1307: Apache juddi-client vulnerable to XML External Entity (XXE)

Summary

19/10/2018
Yes i
High
8.1

CVE-2018-1307: Apache juddi-client vulnerable to XML External Entity (XXE). Affects org.apache.juddi:juddi-client versions >= 3.2, < 3.3.5. Fixed in 3.3.5. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

The Apache juddi-client is a Java library that provides a client interface for interacting with UDDI (Universal Description, Discovery, and Integration) registries. It allows users to parse and mediate XML documents into UDDI data structures. This vulnerability affects versions 3.2 through 3.3.4 of the juddi-client library.

Vulnerability Detail

The juddi-client library lacks proper protections against XML External Entity (XXE) attacks and entity expansion. This vulnerability can be exploited by an attacker to read arbitrary files on the server or launch denial-of-service attacks. The issue arises when using the WADL2Java or WSDL2Java classes, which parse XML documents without sufficient validation and sanitization. The impact of this vulnerability is high, as it can lead to unauthorized access to sensitive information and disruption of services.

How To Fix

Minimum fixed version

3.3.5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

If upgrading to version 3.3.5 is not feasible, a temporary workaround is to implement custom input validation and sanitization when parsing XML documents using the WADL2Java or WSDL2Java classes. This can involve restricting external entity references, disabling DTD processing, and using secure XML parsers. Here is an example of how to disable DTD processing in Java:

DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance();

factory.setFeature("http://apache.org/xml/features/disallow-doctype-decl", true);

Please note that this workaround may not provide complete protection and upgrading to the latest version is still recommended.

Conclusion

The Apache juddi-client library versions 3.2 through 3.3.4 are vulnerable to XML External Entity (XXE) attacks. This can lead to unauthorized access to sensitive information and disruption of services. It is recommended to upgrade to version 3.3.5 of the library to mitigate this vulnerability. If upgrading is not possible, implementing custom input validation and sanitization can provide temporary protection. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for org.apache.juddi:juddi-client →

Share this vulnerability

FAQ

Apache juddi-client is a Java library that provides a client interface for interacting with UDDI registries. It allows users to parse and mediate XML documents into UDDI data structures.

An XML External Entity (XXE) attack is a type of security vulnerability that allows an attacker to read arbitrary files on the server or launch denial-of-service attacks by exploiting the processing of external entities in XML documents.

This vulnerability can lead to unauthorized access to sensitive information and disruption of services. An attacker can exploit it to read arbitrary files on the server or launch denial-of-service attacks.

To fix this vulnerability, upgrade to version 3.3.5 of the juddi-client library. Update the library in your project's dependencies and recompile the code.

If upgrading to version 3.3.5 is not feasible, you can implement custom input validation and sanitization when parsing XML documents using the WADL2Java or WSDL2Java classes. This involves restricting external entity references, disabling DTD processing, and using secure XML parsers.

Related vulnerabilities

Recent vulnerabilities recorded for org.apache.juddi:juddi-client.

How To Fix

Minimum fixed version

3.3.5

This is the first release that contains the fix.

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback

Follow Vulert in Google

Get more Vulert vulnerability and dependency-security updates in Google Search and AI results.