-
Notifications
You must be signed in to change notification settings - Fork 14
Description
| Impacted Component | Priority | Risk Score |
|---|---|---|
| us.icr.io/bravoapps/allegroapp-solution | Deprioritized | 100 |
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Description
Apache Commons Text performs variable interpolation, allowing properties to be dynamically evaluated and expanded. The standard format for interpolation is "${prefix:name}", where "prefix" is used to locate an instance of org.apache.commons.text.lookup.StringLookup that performs the interpolation. Starting with version 1.5 and continuing through 1.9, the set of default Lookup instances included interpolators that could result in arbitrary code execution or contact with remote servers. These lookups are: - "script" - execute expressions using the JVM script execution engine (javax.script) - "dns" - resolve dns records - "url" - load values from urls, including from remote servers Applications using the interpolation defaults in the affected versions may be vulnerable to remote code execution or unintentional contact with remote servers if untrusted configuration values are used. Users are recommended to upgrade to Apache Commons Text 1.10.0, which disables the problematic interpolators by default.
Recommended mitigation
The mitigation for CVE-2022-42889 involves upgrading to Apache Commons Text version 1.10.0 or later. This version disables the problematic interpolators by default, which could result in arbitrary code execution or contact with remote servers. The affected versions of Apache Commons Text, starting with 1.5 and continuing through 1.9, included interpolators such as "script", "dns", and "url" that could be exploited for malicious purposes. To mitigate the risk, users should update their Apache Commons Text library to version 1.10.0 or higher. This update will disable the problematic interpolators by default, reducing the potential for remote code execution or unintentional contact with remote servers. It is essential to ensure that the updated library is properly integrated into the application and that any custom configurations or interpolators are thoroughly reviewed and secured to prevent potential vulnerabilities. Additionally, users should consider implementing input validation and sanitization practices to further minimize the risk of exploitation. This includes validating and sanitizing any user-supplied input that may be used in variable interpolation. In summary, the primary mitigation for CVE-2022-42889 is to upgrade to Apache Commons Text version 1.10.0 or later, disable the problematic interpolators, and implement robust input validation and sanitization practices.