Security Exception in com.github.javaparser.GeneratedJavaParser.Expression
Summary
OSV-2023-920: Security exception in com.github.javaparser.GeneratedJavaParser.Expression. Affects javaparser versions >= 25139c9f1010f3063789b75c04471de90bd5cf8a, < 6fa0a76ac8727fd1ee8ba90d138a932c81a21ab5. Fixed in 6fa0a76ac8727fd1ee8ba90d138a932c81a21ab5. How to fix ↓
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.
No signup required · Results in about 60 seconds
Background
The package under scrutiny is javaparser, an open-source library for parsing Java source code. It provides functionality to parse, analyze, and manipulate Java code. The vulnerability affects the Expression class in the GeneratedJavaParser module of the library.
Vulnerability Detail
The vulnerability is a security exception that occurs in the Expression class of the GeneratedJavaParser module. It has been reported through the OSS-Fuzz project. The crash state indicates that the exception is triggered during the encoding process in the CESU_8$Encoder class of the Java base library. The severity of this vulnerability is assessed as LOW. The vulnerability can potentially lead to crashes or other security issues when processing certain input.
How To Fix
Minimum fixed version
6fa0a76ac8727fd1ee8ba90d138a932c81a21ab5
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
No workaround has been mentioned for this vulnerability.
Conclusion
In conclusion, the javaparser library is affected by a security exception vulnerability in the Expression class of the GeneratedJavaParser module. Users are advised to update their dependency to a fixed version to mitigate the vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.
See every vulnerability recorded for javaparser →
FAQ
The impact of this vulnerability can vary depending on the usage of the javaparser library. It can potentially lead to crashes or other security issues when processing certain input.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Vulert analyzes the manifest file (e.g., package-lock.json) of your application to identify and alert in real-time for open-source vulnerabilities.
Yes, a fix for this vulnerability is available in commit 6fa0a76ac8727fd1ee8ba90d138a932c81a21ab5 of the javaparser GitHub repository. Updating your project's dependency on javaparser to the fixed version will mitigate the vulnerability.
No specific workarounds have been mentioned for this vulnerability.
You can find more information about this vulnerability in the OSS-Fuzz report at https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=62731.
References
Related vulnerabilities
Recent vulnerabilities recorded for javaparser.