CVE-2026-129243 — Geoserver (< 2.27.7) — CWE-863
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to "org.geoserver:gs-ows" versions 2.27.7, 2.28.6, and 3.0.2, a service parameter with a prefix, such as service=x/WFS, was resolved to the WFS service by the dispatcher, but service security checked the unresolved name x/WFS. No rule matched, so operations restricted in service security ran without a role check. The default configuration restricts CreateStoredQuery and DropStoredQuery to administrators, so anonymous users could create and delete WFS stored queries. This issue has been patched in versions 2.27.7, 2.28.6, and 3.0.2.
GeoServer is an open source server that allows users to share and edit geospatial data. Prior to "org.geoserver:gs-ows" versions 2.27.7, 2.28.6, and 3.0.2, a service parameter with a prefix, such as service=x/WFS, was resolved to the WFS service by the dispatcher, but service security checked the unresolved name x/WFS. No rule matched, so operations restricted in service security ran without a role check. The default configuration restricts CreateStoredQuery and DropStoredQuery to administrators, so anonymous users could create and delete WFS stored queries. This issue has been patched in versions 2.27.7, 2.28.6, and 3.0.2.
Active Exploitation Detected — CISA KEV
This vulnerability is listed in the CISA Known Exploited Vulnerabilities (KEV) catalog and is actively exploited in the wild. Patch due date: 2026-11-30
🎯 What is this vulnerability?
CVE-2026-129243 is a critical Incorrect Authorization vulnerability (CWE-285) in OSGeo GeoServer. The core technical flaw lies in the application's service-level role checking mechanism. GeoServer relies on specific service parameters to determine which security context (role/permission set) should be applied to an incoming request.
The vulnerability occurs because the authorization logic fails to correctly validate or sanitize the service parameter when it is prefixed. An unauthenticated remote attacker can manipulate this parameter to bypass the intended service-level role checks. This allows the attacker to invoke operations that are normally protected by these checks, effectively escalating their privileges from "anonymous" to a higher-privileged service role without valid credentials.
Crucially, this is a bypass vulnerability, not a direct code execution flaw. However, the CVE description explicitly states it can be chained with other vulnerabilities (CVE-2026-129244, CVE-2026-120705, CVE-2026-129245, CVE-2026-129242) to achieve unauthenticated Remote Code Execution (RCE). This indicates that the authorization bypass grants access to an endpoint or functionality that is vulnerable to one of the chained exploits (likely an arbitrary file upload, template injection, or deserialization flaw that requires elevated permissions to trigger).
⚡ Attack Chain
1. Discovery & Reconnaissance
- Fingerprinting: The attacker identifies GeoServer instances using standard reconnaissance tools (e.g., Nmap, Shodan, Censys).
- Version Identification: GeoServer typically exposes version information in HTTP response headers (
X-GeoServer-Version), the root page HTML, or via the/web/gsendpoint. The attacker confirms the version is within the affected range (specifically those vulnerable to CVE-2026-129243 and its chain partners). - Service Parameter Mapping: The attacker identifies the specific service parameter used for authorization (e.g.,
service,wfs,wms, or a custom internal parameter). The CVE mentions a "prefixed service parameter," suggesting the parameter name itself or its value is being manipulated.
2. Exploitation
The attacker crafts a request where the service parameter is prefixed in a way that bypasses the role check. Since the exact parameter name and prefix are not explicitly stated in the CVE description, the following is an illustrative example of the vulnerability class:Hypothetical Vulnerable Logic:
The application checks: if (service == "wfs" && user.hasRole("WFS_ADMIN")) { allow(); }
The attacker sends: service=prefix_wfs or service=../wfs (depending on the parsing flaw). The authorization check fails to match the strict string, or the prefix causes the parser to skip the role check entirely, defaulting to a permissive state or allowing the request to proceed to a vulnerable handler.
Illustrative PoC (curl):
# Illustrative Example - NOT a confirmed exploit payload
# The exact parameter name and prefix must be discovered via code review or dynamic analysis
curl -X GET "http://target:8080/geoserver/wfs?service=PREFIXED_WFS&request=GetCapabilities" -H "User-Agent: Mozilla/5.0"Chaining for RCE:
Once the authorization bypass is achieved, the attacker invokes the operation protected by the bypassed check. This operation is likely vulnerable to one of the chained CVEs (e.g., CVE-2026-129244). For instance, if the bypass allows access to a file upload endpoint or a configuration change API that is vulnerable to arbitrary file write or deserialization, the attacker proceeds to:
1. Upload a malicious JSP webshell or a serialized object.
2. Trigger the execution of the malicious payload.
3. Post-exploitation
🌍 Real World Impact
🛡️ Remediation & Mitigation
1. Patching
2. Workarounds (If Patching is Delayed)
SecRule ARGS:service "@rx ^[a-zA-Z0-9_]+$" \
"id:100001,phase:1,deny,status:403,msg:'Invalid service parameter format'"Note:* This rule assumes the service parameter should only contain alphanumeric characters and underscores. Adjust based on the actual expected format.
3. Detection
GET /geoserver/wfs?service=PREFIXED_WFS...
webapps, data_dir).⚠️ Urgency
[🤖 CVE Professor AI Security Engine]
FOFA Query