CVE-2014-7839: XML External Entity Reference in RESTEasy

Summary

17/05/2022
Yes i
Moderate
Not published

CVE-2014-7839: XML External Entity Reference in RESTEasy. Affects org.jboss.resteasy:resteasy-jaxrs versions < 3.0.11.Final. Fixed in 3.0.11.Final. 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 Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

The RESTEasy package is a JAX-RS implementation that provides a framework for building RESTful web services in Java. It is commonly used in enterprise applications to develop and deploy RESTful APIs. The vulnerability identified as CVE-2014-7839 affects versions 2.3.7 and 3.0.9 of RESTEasy. This vulnerability allows remote attackers to exploit XML external entity (XXE) attacks due to the lack of proper configuration of external entities features in the DocumentProvider class.

Vulnerability Detail

The vulnerability arises from the failure to configure the external-general-entities and external-parameter-entities features in the DocumentProvider class of RESTEasy. This oversight enables attackers to launch XML external entity (XXE) attacks through unspecified vectors. By exploiting this vulnerability, remote attackers can potentially gain unauthorized access to sensitive information, perform denial-of-service attacks, or execute arbitrary code on the affected system.

How To Fix

Minimum fixed version

3.0.11.Final

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

There is no specific workaround mentioned for this vulnerability. However, as a general best practice, it is recommended to implement input validation and sanitization techniques when processing XML data. This can help mitigate the risk of XML external entity (XXE) attacks. Developers should also consider using secure XML parsing libraries that provide built-in protection against XXE vulnerabilities.

Conclusion

The XML External Entity Reference vulnerability in RESTEasy can lead to serious security risks, including unauthorized access, denial-of-service attacks, and arbitrary code execution. It is crucial for developers using affected versions of RESTEasy to upgrade to the fixed version and ensure proper configuration of external entities. Regularly monitoring for vulnerabilities, such as using Vulert, can help maintain the security of your software.

See every vulnerability recorded for org.jboss.resteasy:resteasy-jaxrs →

Share this vulnerability

FAQ

RESTEasy is a JAX-RS implementation that allows developers to build RESTful web services in Java. It provides a framework for handling HTTP requests and responses, mapping them to Java objects, and facilitating the development of RESTful APIs.

An XML external entity (XXE) attack is a type of vulnerability that occurs when an XML parser processes external entities defined in the XML document. Attackers can exploit this vulnerability to read sensitive files, perform denial-of-service attacks, or execute arbitrary code.

You can use the Vulert Playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Vulert analyzes your project's pom.xml file and provides real-time alerts for open-source vulnerabilities, including CVE-2014-7839.

No, only versions 2.3.7 and 3.0.9 of RESTEasy are affected by this vulnerability. It is recommended to upgrade to version 3.0.11.Final or later to mitigate the vulnerability.

There are no known public exploits for this vulnerability at the time of writing. However, it is crucial to apply the recommended fix to prevent potential exploitation.

Related vulnerabilities

Recent vulnerabilities recorded for org.jboss.resteasy:resteasy-jaxrs.

How To Fix

Minimum fixed version

3.0.11.Final

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