ID CVE-2022-42889
Summary 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.
References
Vulnerable Configurations
  • cpe:2.3:a:apache:commons_text:1.5:-:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.5:-:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.5:rc1:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.5:rc1:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.5:rc2:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.5:rc2:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.5:rc3:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.5:rc3:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.6:-:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.6:-:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.6:rc1:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.6:rc1:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.7:-:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.7:-:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.7:rc1:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.7:rc1:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.8:-:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.8:-:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.8:rc1:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.8:rc1:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.9:-:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.9:-:*:*:*:*:*:*
  • cpe:2.3:a:apache:commons_text:1.9:rc1:*:*:*:*:*:*
    cpe:2.3:a:apache:commons_text:1.9:rc1:*:*:*:*:*:*
  • cpe:2.3:a:netapp:bluexp:-:*:*:*:*:*:*:*
    cpe:2.3:a:netapp:bluexp:-:*:*:*:*:*:*:*
  • cpe:2.3:a:juniper:security_threat_response_manager:*:*:*:*:*:*:*:*
    cpe:2.3:a:juniper:security_threat_response_manager:*:*:*:*:*:*:*:*
  • cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up1:*:*:*:*:*:*
    cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up1:*:*:*:*:*:*
  • cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up2:*:*:*:*:*:*
    cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up2:*:*:*:*:*:*
  • cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up3:*:*:*:*:*:*
    cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:up3:*:*:*:*:*:*
  • cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:-:*:*:*:*:*:*
    cpe:2.3:a:juniper:security_threat_response_manager:7.5.0:-:*:*:*:*:*:*
  • cpe:2.3:h:juniper:jsa1500:-:*:*:*:*:*:*:*
    cpe:2.3:h:juniper:jsa1500:-:*:*:*:*:*:*:*
  • cpe:2.3:h:juniper:jsa3500:-:*:*:*:*:*:*:*
    cpe:2.3:h:juniper:jsa3500:-:*:*:*:*:*:*:*
  • cpe:2.3:h:juniper:jsa3800:-:*:*:*:*:*:*:*
    cpe:2.3:h:juniper:jsa3800:-:*:*:*:*:*:*:*
  • cpe:2.3:h:juniper:jsa5500:-:*:*:*:*:*:*:*
    cpe:2.3:h:juniper:jsa5500:-:*:*:*:*:*:*:*
  • cpe:2.3:h:juniper:jsa5800:-:*:*:*:*:*:*:*
    cpe:2.3:h:juniper:jsa5800:-:*:*:*:*:*:*:*
  • cpe:2.3:h:juniper:jsa7500:-:*:*:*:*:*:*:*
    cpe:2.3:h:juniper:jsa7500:-:*:*:*:*:*:*:*
  • cpe:2.3:h:juniper:jsa7800:-:*:*:*:*:*:*:*
    cpe:2.3:h:juniper:jsa7800:-:*:*:*:*:*:*:*
CVSS
Base: None
Impact:
Exploitability:
CWE CWE-94
CAPEC
  • Code Injection
    An adversary exploits a weakness in input validation on the target to inject new code into that which is currently executing. This differs from code inclusion in that code inclusion involves the addition or replacement of a reference to a code file, which is subsequently loaded by the target and used as part of the code of some application.
  • Leverage Executable Code in Non-Executable Files
    An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
  • Manipulating User-Controlled Variables
    This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An attacker can override environment variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the attacker can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
Access
VectorComplexityAuthentication
Impact
ConfidentialityIntegrityAvailability
Last major update 19-01-2024 - 16:15
Published 13-10-2022 - 13:15
Last modified 19-01-2024 - 16:15
Back to Top