CVE-2022-42889

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

published October 13, 2022

Patch now

High probability of exploitation

NVD has not assigned a CVSS score to this record. It sits in the 100.0th percentile for exploit probability.

CVSS
—
EPSS
100%
Percentile
100.0
In the wild
Unconfirmed
What it is

🚨 A sneaky string interpolation flaw could lead to remote code execution! If your application uses vulnerable versions of Apache Commons Text (1.5 to 1.9), you might be inviting trouble in the form of arbitrary code execution. 🔥 Think of this vulnerability like a restaurant that allows customers to input their own recipes without checking what’s in them. If a diner submits a dangerous dish, it could not only ruin the kitchen but also poison everyone in the dining room! An attacker could exploit this vulnerability to run arbitrary code on your server, potentially gaining full control over the system and accessing sensitive data. This could lead to data breaches, downtime, or even worse—complete system compromises!

Put simply

Think of this vulnerability like a restaurant that allows customers to input their own recipes without checking what’s in them. If a diner submits a dangerous dish, it could not only ruin the kitchen but also poison everyone in the dining room! This vulnerability arises from Apache Commons Text's variable interpolation feature, which may execute code or contact remote servers due to default lookup instances like 'script', 'dns', and 'url' being enabled. Untrusted input in these interpolators can trigger harmful actions.

What to do

An attacker could exploit this vulnerability to run arbitrary code on your server, potentially gaining full control over the system and accessing sensitive data. This could lead to data breaches, downtime, or even worse—complete system compromises! Upgrade to Apache Commons Text version 1.10.0 or later immediately to disable these risky interpolators by default. Review your configuration values to ensure they're safe and do not rely on untrusted inputs. You've got this! By taking these steps, you can secure your application and keep it running smoothly. 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.99931 · 100.0th percentile
Published
2022-10-13T00:00Z
EPSS history
Timeline
  • 13 OCT 00:00Z
    Apache Commons Text prior to 1.10.0 allows RCE when applied to untrusted input due to insecure interpolation defaults
    cvelistv5