Aug 20, 2026·6 min read·16 visits
Multiple vulnerabilities in GeoLens allow unauthorized metadata and map tile disclosure, unauthenticated Denial of Service, and administrative takeover via weak default credentials.
GeoLens before version 1.2.4 contains multiple critical-tier security vulnerabilities including improper authorization in metadata access, tile cache scope leakage, dataset title enumeration, weak default credentials, and denial of service via STAC POST search.
GeoLens is a self-hosted geospatial data catalog. Version 1.2.4 resolves a suite of vulnerabilities designated as Tier-0 Security Hardening. These vulnerabilities compromise resource authorization, data confidentiality, and system availability.
At the core of the findings is an architectural pattern where the application authorizes access to a specific resource identifier but subsequently serves a different, un-re-authorized resource. Additionally, the software exposes private map tiles via cache-poisoning vectors and allows unauthenticated denial of service through complex spatial query payloads.
This analysis details the root causes of these vulnerabilities, walks through the patched code paths, and provides remediation guidance to secure production deployments.
The primary authorization vulnerability (SEC-001) occurs within the record sub-resource endpoints. The application gated read access to sub-resources solely by verifying if the user was authenticated. It failed to check if the caller had authorization to access the specific dataset backing the record. Consequently, any authenticated user could query contact details, keywords, and distribution URLs of private catalog records.
The tile caching vulnerability (SEC-002 and SEC-009) stems from improper cache-control headers. The raster tile proxy endpoint hardcoded the response header Cache-Control: public, max-age=3600. The reverse proxy cached these responses using a key containing only the coordinate paths. This allowed unauthenticated users to fetch cached tiles belonging to private datasets. In the vector tile router, the logic failed to specify a private cache scope after validating signature tokens, defaulting instead to a public scope.
The STAC search vulnerability (SEC-023) is caused by asymmetric validation rules between GET and POST handlers. The GET endpoint enforced a maximum length of 10,000 characters on spatial geometry parameters, whereas the POST endpoint accepted unrestricted JSON geometry payloads. The database backend exhausted its memory and CPU resources attempting to parse massive GeoJSON polygons via expensive spatial intersection operations.
The fix for SEC-001 redirects record authorization to the dataset's role-based access control handler. Below is the updated routing logic that verifies the backing dataset's visibility.
# backend/app/modules/catalog/records/router.py
async def _check_record_read_access(
record_id: uuid.UUID,
user: Identity | None,
) -> None:
record = await get_record(db, record_id)
if record is None:
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="Record not found"
)
# Delegate to the backing dataset to enforce proper RBAC
dataset = (
await db.execute(
select(Dataset)
.options(joinedload(Dataset.record))
.where(Dataset.record_id == record_id)
)
).scalars().first()
if dataset is not None:
try:
await check_dataset_access_or_anonymous(db, dataset, dataset.id, user)
except HTTPException:
# Normalize response to prevent resource enumeration
raise HTTPException(
status_code=status.HTTP_404_NOT_FOUND, detail="Record not found"
)
returnFor SEC-002, the response headers are updated to check the backend authorization status. If the dataset requires authentication, the router sets Cache-Control: private, no-store to instruct Nginx and other downstream proxies not to cache the spatial data.
# backend/app/processing/tiles/router.py
cache_status = auth_resp.headers.get("X-GeoLens-Cache-Status", "private")
if cache_status == "public":
cache_control = "public, max-age=3600"
else:
cache_control = "private, no-store"
return Response(
content=resp.content,
media_type=resp.headers.get("content-type", "image/png"),
headers={"Cache-Control": cache_control},
)For SEC-023, the StacSearchBody class now includes a field validator that serializes the intersects parameter to evaluate its string length before processing. If the length exceeds 10,000 characters, the request is rejected immediately.
# backend/app/standards/stac/router.py
@field_validator("intersects")
@classmethod
def _cap_intersects_size(cls, v: dict | None) -> dict | None:
max_serialized = 10000
if v is not None and len(json.dumps(v)) > max_serialized:
raise ValueError(
f"intersects GeoJSON too large (max {max_serialized} serialized characters)"
)
return vExploitation of SEC-001 requires an authenticated session. An attacker with low-privilege access can perform sequential UUID scanning or dictionary attacks against the /records/{id}/contacts endpoint. Because the endpoint did not check dataset ownership, successful requests return the PII of dataset contacts directly.
GET /records/550e8400-e29b-41d4-a716-446655440000/contacts HTTP/1.1
Host: geolens.internal
Authorization: Bearer <low_privilege_token>
Exploitation of SEC-002 relies on cache key manipulation. An attacker first requests a private dataset tile utilizing valid credentials. The reverse proxy stores the resulting image tile under the cache key of the coordinate path. Subsequently, an unauthenticated attacker requests the same tile without credentials. The reverse proxy serves the cached tile directly from memory.
GET /raster/dataset-uuid/10/512/341 HTTP/1.1
Host: geolens.internal
# No Authorization header provided, but cached response is returned
To execute the denial of service (SEC-023), an unauthenticated attacker transmits a crafted POST request containing a deeply nested or highly complex multi-polygon. The target database attempts to resolve the spatial intersection, consuming all available worker connections.
POST /stac/search HTTP/1.1
Host: geolens.internal
Content-Type: application/json
{
"intersects": {
"type": "Polygon",
"coordinates": [[[0.0, 0.0], [0.1, 0.1], [0.2, 0.2]]]
}
}
The cumulative impact of these vulnerabilities is classified as High. SEC-001 results in the exposure of sensitive database contact information, which represents a violation of data privacy policies. SEC-002 allows unauthenticated external actors to harvest restricted geospatial image layers, compromising proprietary mapping data.
SEC-010 and SEC-011 expose the administration panel and PostgreSQL database to complete takeover. The default passwords admin and geolens are widely known, making any internet-accessible deployment susceptible to automated brute-force scripts.
Finally, SEC-023 enables attackers to disrupt service availability. Because the STAC search endpoint is unauthenticated, a single malicious client can lock database connection pools, inducing persistent downtime for all legitimate API clients.
Upgrading to GeoLens version 1.2.4 is the recommended remediation path. The updated installer script generates cryptographically secure passwords from /dev/urandom and automatically patches environment files. Existing deployments should verify that database passwords have been rotated away from the default value of geolens.
If upgrading is not immediately possible, implement the following web application firewall (WAF) rules to filter incoming traffic. Limit the payload size on /stac/search to block large GeoJSON arrays.
SecRule REQUEST_URI "@beginsWith /stac/search" \
"id:100001,phase:1,deny,status:413,t:none,chain"
SecRule REQUEST_BODY_LENGTH "@gt 51200"
Additionally, configure downstream caching layers to strip cache headers on tile queries unless the dataset is explicitly configured as public. Ensure that Nginx reverse proxies respect the no-store Cache-Control header.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H| Attribute | Detail |
|---|---|
| CWE ID | CWE-285 |
| Attack Vector | Network |
| CVSS v3.1 Score | 8.8 |
| EPSS Score | 0.001 |
| Impact | Data Disclosure / System Compromise |
| Exploit Status | none |
| CISA KEV Status | Not Listed |
CVE-2026-126297 (GHSA-v8f3-6phw-6mh9) is an uncontrolled resource consumption and algorithmic complexity vulnerability in the Natural Language Toolkit (NLTK) prior to version 3.10.4. Located in the Semantic Role Labeling (SRL) parser within `nltk/corpus/reader/conll.py`, the flaw allows an attacker to trigger quadratic O(N^2) CPU processing overhead by providing crafted CoNLL-formatted corpus inputs containing decoy span columns or nested full-width verb spans. Applications parsing untrusted linguistic corpora can experience prolonged CPU exhaustion and application-level Denial of Service (DoS).
CVE-2026-126298 (also tracked as GHSA-r53h-rw34-8h97) is an algorithmic complexity Denial of Service (DoS) vulnerability in the Natural Language Toolkit (NLTK) Python library affecting all versions prior to 3.10.4. The vulnerability resides in the nltk.tree.transforms.chomsky_normal_form function and its corresponding public method Tree.chomsky_normal_form(). When transforming a parse tree into Chomsky Normal Form using the default right-factoring strategy, the function repeatedly invokes list.pop(0) inside a loop iterating over all children of a node. In CPython, removing the initial element of a standard list requires an O(N) memory shift operation, causing the overall binarization algorithm to degrade to O(N^2) quadratic time complexity relative to the width of a node. Furthermore, converting horizontal node width into vertical tree depth bypasses initial parsing depth bounds, triggering subsequent stack exhaustion (RecursionError) when recursive methods traverse the mutated structure. Unauthenticated remote attackers who can submit bracketed tree strings to applications invoking this transformation can exhaust single-threaded CPU resources or induce unhandled application exceptions.
An algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) before version 3.10.4 allows remote unauthenticated attackers to cause a denial of service via crafted Combinatory Categorial Grammar (CCG) lexicon strings. The parser in nltk.ccg.lexicon.fromstring performs repeated immutable string slicing, concatenation, and regex tail capturing, resulting in O(n^2) CPU consumption when processing wide, flat category definitions.
CVE-2026-126295 (also tracked as GHSA-fg9w-wfp5-j933) is a path confinement bypass vulnerability in the Natural Language Toolkit (NLTK) affecting versions 3.10.0 prior to 3.10.4. The flaw resides in nltk/parse/bllip.py within the BllipParser class and its factory method BllipParser.from_unified_model_dir(). Unlike sibling tool wrappers in NLTK that enforce data-root confinement via the nltk.pathsec module, BllipParser passes caller-supplied filesystem paths directly into the third-party bllipparser native C extension without validation. When an application passes untrusted input as model paths or directories to BllipParser, an attacker can force the native extension to open arbitrary files on the local filesystem. This leads to information disclosure through parser diagnostic oracles, local model tampering via shared directories, and denial of service by hanging worker threads on blocking special files (such as FIFOs or device nodes) or exhausting memory via oversized files.
CVE-2026-126300 (GHSA-ffr9-mgrr-wcvr) is an inefficient algorithmic complexity vulnerability (CWE-407) in the Natural Language Toolkit (NLTK) Python library affecting versions 3.2.5 prior to 3.10.4. The flaw resides in the quote-restoration routine of TreebankWordTokenizer.span_tokenize and NLTKWordTokenizer.span_tokenize, where repeated calls to list.pop(0) over matched quote tokens introduce quadratic O(n^2) time complexity. An unauthenticated remote attacker who supplies input containing long sequences of double-quote characters can exhaust CPU resources and degrade service availability.
The Natural Language Toolkit (NLTK) versions 3.6 through 3.10.3 contain an algorithmic complexity vulnerability in the LegalitySyllableTokenizer.tokenize method. When processing tokens composed of continuous runs of vowels, an unguarded string reversal and set membership lookup loop executes in quadratic time relative to the input token length. Remote attackers capable of submitting arbitrary text to applications utilizing this tokenizer can trigger sustained single-core CPU exhaustion and application-level denial of service.