CVE-2019-10782: XML External Entity (XXE) Processing in com.puppycrawl.tools:checkstyle

Summary

31/01/2020
Yes i
Moderate
5.3

CVE-2019-10782: XML external entity (XXE) processing ('external-parameter-entities' feature was not fully disabled)). Affects com.puppycrawl.tools:checkstyle versions < 8.29. Fixed in 8.29. How to fix ↓

Also tracked for

The same CVE-2019-10782 is tracked separately for each ecosystem and vendor. Its fix information is the same; the package and affected versions differ.

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

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

com.puppycrawl.tools:checkstyle is an open-source static code analysis tool used for checking Java code against a set of coding standards. It helps identify potential issues and enforce coding best practices. However, it is vulnerable to XML External Entity (XXE) Processing due to an incomplete fix for CVE-2019-9658.

Vulnerability Detail

The vulnerability in com.puppycrawl.tools:checkstyle allows for XML External Entity (XXE) Processing. This means that an attacker can exploit the application by providing a specially crafted XML file that includes external entities. By manipulating these entities, an attacker can potentially read arbitrary files on the server or perform other malicious actions. This vulnerability can be particularly dangerous for sites or services that parse untrusted Checkstyle XML configuration files.

How To Fix

Minimum fixed version

8.29

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 are no known workarounds for this vulnerability. It is recommended to upgrade to the patched version as soon as possible.

Conclusion

The vulnerability in com.puppycrawl.tools:checkstyle allows for XML External Entity (XXE) Processing, which can be exploited by providing a specially crafted XML file. To fix this vulnerability, users should upgrade to version 8.29 or later. There are no known workarounds, so upgrading is the recommended solution. For further support on vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for com.puppycrawl.tools:checkstyle →

Share this vulnerability

FAQ

Build maintainers using Maven or Gradle are likely not affected as they typically process trusted files. However, sites or services that parse untrusted Checkstyle XML configuration files are vulnerable and should patch.

You can use Vulert's playground (https://vulert.com/scanner) to check if your application is affected by this vulnerability. Simply provide your pom.xml file and Vulert will analyze it in real-time.

There are no known public exploits for this vulnerability at the time of this report. However, it is important to patch the vulnerability to prevent potential attacks.

No, there are no known workarounds or mitigation techniques for this vulnerability. Upgrading to the patched version is the recommended solution.

You can find more information about this vulnerability in the GitHub issue (https://github.com/checkstyle/checkstyle/issues/7468) and the Common Weakness Enumeration (CWE-611) entry (https://cwe.mitre.org/data/definitions/611.html).

Related vulnerabilities

Recent vulnerabilities recorded for com.puppycrawl.tools:checkstyle.

How To Fix

Minimum fixed version

8.29

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