Skip to main content
← All vulnerabilities
CVE-2022-42889GHSA-599F-7C49-W659

Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 1.10.0
1 on Exploit-DB, 1 Metasploit module, 51 proofs of concept on GitHub
  • Exploitation: none
  • Automatable: yes
  • Technical impact: total

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: yes · Technical impact: total

  3. Record last updated
  4. Public exploit on Exploit-DB

    EDB-52261

  5. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • Apache Software Foundation Apache Commons Text

    through 1.9; From 1.5

  • org.apache.commons:commons-textMaven

    From 1.5 · fixed in 1.10.0

  • com.guicedee.services:commons-textMaven

    through 1.2.2.1-jre17

References 62

lists.apache.org

openwall.com

security.netapp.com

psirt.global.sonicwall.com

security.gentoo.org

seclists.org

packetstormsecurity.com

Exploit-DB

GitHub · rapid7/metasploit-framework

GitHub · 0xmaximus/Apache-Commons-Text-CVE-2022-42889

GitHub · 34006133/CVE-2022-42889

GitHub · ClickCyber/cve-2022-42889

GitHub · Dima2021/cve-2022-42889-text4shell

GitHub · DimaMend/cve-2022-42889-text4shell

GitHub · Gotcha1G/CVE-2022-42889

GitHub · Goultarde/CVE-2022-42889-text4shell

GitHub · Hkaeeeer/CVE-2022-42889

GitHub · KosmicOwl045/ICT287-CVE-2022-42889

GitHub · QAInsights/cve-2022-42889-jmeter

GitHub · ReachabilityOrg/cve-2022-42889-text4shell-docker

GitHub · SeanWrightSec/CVE-2022-42889-PoC

GitHub · Sic4rio/CVE-2022-42889

GitHub · Syndicate27/text4shell-exploit

GitHub · Vulnmachines/text4shell-CVE-2022-42889

GitHub · aaronm-sysdig/text4shell-docker

GitHub · adarshpv9746/Text4shell--Automated-exploit---CVE-2022-42889

GitHub · akshayithape-devops/CVE-2022-42889-POC

GitHub · alealeluyah/CVE-2022-42889-Text4Shell-POC

GitHub · chainguard-dev/text4shell-policy

GitHub · cryxnet/CVE-2022-42889-RCE

GitHub · cxzero/CVE-2022-42889-text4shell

GitHub · devenes/text4shell-cve-2022-42889

GitHub · engranaabubakar/CVE-2022-42889

GitHub · eunomie/cve-2022-42889-check

GitHub · f0ng/text4shellburpscanner

GitHub · galoget/CVE-2022-42889-Text4Shell-Docker

GitHub · gokul-ramesh/text4shell-exploit

GitHub · gustanini/CVE-2022-42889-Text4Shell-POC

GitHub · hotblac/text4shell

GitHub · humbss/CVE-2022-42889

GitHub · ifconfig-me/Log4Shell-Payloads

GitHub · joshbnewton31080/cve-2022-42889-text4shell

GitHub · karthikuj/cve-2022-42889-text4shell-docker

GitHub · kiralab/text4shell-scan

GitHub · kljunowsky/CVE-2022-42889-text4shell

GitHub · korteke/CVE-2022-42889-POC

GitHub · necroteddy/CVE-2022-42889

GitHub · neerazz/CVE-2022-42889

GitHub · rhitikwadhvana/CVE-2022-42889-Text4Shell-Exploit-POC

GitHub · rockmelodies/CVE-2022-42889

GitHub · s3l33/CVE-2022-42889

GitHub · sangrok-jeon/CVE-2022-42889-Analysis

GitHub · securekomodo/text4shell-poc

GitHub · shoucheng3/asf__commons-text_CVE-2022-42889_1-9

GitHub · smileostrich/Text4Shell-Scanner

GitHub · stavrosgns/Text4ShellPayloads

GitHub · sunnyvale-it/CVE-2022-42889-PoC

GitHub · tulhan/commons-text-goat

GitHub · uk0/cve-2022-42889-intercept

GitHub · vickyaryan7/Text4shell-exploit