OSGeo GeoServer GeoTools Eval Injection Vulnerability
OSGeo GeoServer GeoTools contains an improper neutralization of directives in dynamically evaluated code vulnerability due to unsafely evaluating property names as XPath expressions. This allows unauthenticated attackers to conduct remote code execution via specially crafted input.
Improper Neutralization of Directives in Dynamically Evaluated Code CWE-95
The product receives input from an upstream component, but it does not neutralize or incorrectly neutralizes code syntax before using the input in a dynamic evaluation call (e.g. "eval").
Weakness data: MITRE Common Weakness Enumeration.
Improper Control of Generation of Code CWE-94
An attacker can get the software to run code they supply.
The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
Weakness data: MITRE Common Weakness Enumeration.
New to this? Read how to keep your software updated.
The products and versions NIST lists as vulnerable, 2 products in all. If what you run is not listed it is probably not affected, but ask your provider if you are unsure.
| Product | Type | Vulnerable versions | Fixed in |
|---|---|---|---|
| Geotools Geotools | Software | before 29.6; from 30.1, before 30.4; from 31.1, before 31.2; 30.0; 30.0 rc; 31.0; and 1 more | 29.6; 30.4; 31.2 |
| Geoserver Geoserver | Software | before 2.22.6; from 2.23.0, before 2.23.6; from 2.24.0, before 2.24.4; from 2.25.0, before 2.25.2 | 2.22.6; 2.23.6; 2.24.4; 2.25.2 |
The 9.8 severity score (critical) from NIST, broken into what it means in practice. Red means it makes the flaw easier or worse.
| How it is reached | Network | Can be attacked from anywhere on the internet, with no need to be near the target. |
| How hard it is | Low | Easy to carry out. No special conditions have to line up. |
| Login needed | None | The attacker does not need an account or password. |
| Someone has to act | None | Nobody has to click or open anything. It can happen on its own. |
| Reaches beyond the program | Unchanged | The damage stays inside the vulnerable program. |
| Data exposed | High | Total loss of confidentiality: the attacker can read all the data the program can reach. |
| Data changed | High | The attacker can change or delete anything the program can reach. |
| Service disrupted | High | The attacker can take the service down completely. |
| Ease of attack | 3.9 | A score for how easy it is to use the flaw. Higher is easier. |
| Damage | 5.9 | A score for how bad the harm is if it works. Higher is worse. |
Scorers can disagree. NIST scores every flaw the same way; the reporting company knows its own product best.
4 of the 7 sources NIST lists are patches or advisories from the vendor. 2 explain how the flaw works or include exploit code, so attackers can find instructions easily.