CVE-2012-0818: XXE Injection in RESTEasy

Summary

17/05/2022
Yes i
Moderate
Not published

CVE-2012-0818: Exposure of Sensitive Information to an Unauthorized Actor in RESTEasy. Affects org.jboss.resteasy:resteasy-client versions < 2.3.1. Fixed in 2.3.1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

RESTEasy is a Java framework that provides a set of tools and libraries for building RESTful web services. It is commonly used in Maven projects. The 'org.jboss.resteasy:resteasy-client' package is specifically impacted by this vulnerability. The package allows remote attackers to read arbitrary files by exploiting an XML external entity (XXE) injection attack. This vulnerability exists in versions prior to 2.3.1.

Vulnerability Detail

The vulnerability in RESTEasy arises from a lack of proper input validation when processing XML documents. An attacker can exploit this by injecting an external entity reference in a DOM document, leading to the disclosure of sensitive information. This can have serious consequences, as an unauthorized actor could gain access to confidential data stored on the server. The vulnerability has been assigned a severity level of MODERATE and is categorized under CWE-200.

How To Fix

Minimum fixed version

2.3.1

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 the package is not immediately feasible, a temporary workaround is to disable the processing of external entities in the XML parser configuration. This can be achieved by modifying the application's XML parser settings to disallow the resolution of external entities. The specific steps to implement this workaround may vary depending on the XML parser being used in the application.

Conclusion

In conclusion, the 'org.jboss.resteasy:resteasy-client' package is vulnerable to an XXE injection attack, which can result in the unauthorized disclosure of sensitive information. It is crucial to upgrade to version 2.3.1 or later to mitigate this vulnerability. If immediate upgrading is not possible, implementing the suggested workaround can provide temporary protection. For further assistance in vulnerability remediation, please contact DevNack.com.

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

Share this vulnerability

FAQ

RESTEasy is a Java framework for building RESTful web services.

XXE injection is a type of attack where an attacker exploits a vulnerability in XML parsing to read arbitrary files or execute remote code.

The vulnerability allows remote attackers to read arbitrary files, potentially exposing sensitive information stored on the server.

To fix this vulnerability, upgrade the 'org.jboss.resteasy:resteasy-client' package to version 2.3.1 or later.

A temporary workaround is to disable the processing of external entities in the XML parser configuration.

Related vulnerabilities

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

How To Fix

Minimum fixed version

2.3.1

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