pygeoapi CVE-2026-42351
HIGHAttack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify exposed pygeoapi with stac-collection endpoint
-
DeliveryCraft STAC request with '..' path segments
-
ExploitBypass raw path concatenation in FileSystemProvider
-
ExecutionResolve directory outside data root
-
ImpactRead exposed directory contents
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK
2 techniques across 2 tactics: Discovery, Collection The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires a pygeoapi 0.23.0-0.23.2 deployment that (1) has a resource of type 'stac-collection' defined in its configuration, and (2) is served WITHOUT a proxy or web front end that normalizes URLs containing '..'. Given those two conditions, no authentication, user interaction, or special privileges are needed (AV:N/AC:L/PR:N/UI:N) - the attacker simply includes '..' segments in the request path to a STAC collection endpoint. Limiting factors that reduce real-world exploitability: production deployments commonly front pygeoapi with nginx/Apache/Traefik, which normalize '..' and block the traversal; instances without any configured stac-collection resource are not affected at all. |
| Impact | The signals are mixed but coherent. CVSS 3.1 is 7.5 (AV:N/AC:L/PR:N/UI:N, C:H only) - network-reachable, no authentication, no user interaction, confidentiality-only impact (no integrity or availability loss), consistent with information disclosure via directory exposure. However, EPSS is very low (0.09%, 26th percentile), the vulnerability is NOT in CISA KEV, and no POC is referenced, so there is no evidence of active or imminent mass exploitation. Critically, the raw CVSS understates real-world friction: exploitation requires TWO non-default deployment conditions - a stac-collection resource must be configured AND pygeoapi must run without a fronting proxy/web server that normalizes '..' (most production deployments sit behind nginx/Apache/Traefik, which would neutralize the traversal). This is a genuine but conditional issue: prioritize patching where pygeoapi is directly exposed and serving STAC filesystem collections; deprioritize where a normalizing reverse proxy is present. No SSVC decision record was provided in the input, so automatable-exploitation and technical-impact judgments here are inferred from the CVSS vector and description, not from a published SSVC vector. |
| Exploit ScenarioDerived | An attacker locates an internet-facing pygeoapi instance (0.23.0-0.23.2) that serves a stac-collection resource directly, without a normalizing proxy. They send an unauthenticated HTTP request to the STAC collection path with '../../' sequences appended, causing the FileSystemProvider to resolve and list directories outside the intended data root and disclose their contents. No public POC is referenced, but the attack is trivially reproducible given the two preconditions. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 24, 2026
Directory exposure in pygeoapi's STAC FileSystemProvider (versions 0.23.0 through 0.23.2) lets remote unauthenticated attackers read arbitrary directories on the server by supplying '..' traversal sequences in requests to a stac-collection resource. The flaw stems from raw string path concatenation and only surfaces when pygeoapi is deployed without a URL-normalizing proxy and a stac-collection resource is configured. There is no public exploit identified at time of analysis and EPSS is low (0.09%), but exploitation is trivial (AV:N/AC:L/PR:N) wherever the preconditions hold.
RemediationAI
Vendor-released patch: upgrade to pygeoapi 0.23.3, which adds explicit rejection of paths containing '..' in the STAC FileSystemProvider (commit bf25b8695edbdd5476eeffc102b633d1d3e45f52). Until 0.23.3 can be installed, the vendor-recommended workaround is to disable STAC collection based resources (remove or comment out any 'stac-collection' type resources) in the pygeoapi configuration; the trade-off is that STAC filesystem catalog endpoints become unavailable to legitimate users. As an additional compensating control, place pygeoapi behind a reverse proxy or web front end (nginx, Apache httpd, or Traefik) that normalizes URLs and collapses '..' sequences before they reach the application, which neutralizes the traversal without disabling functionality. Refer to the advisory at https://github.com/geopython/pygeoapi/security/advisories/GHSA-f6pr-83pg-ghh6 and the patch commit at https://github.com/geopython/pygeoapi/commit/bf25b8695edbdd5476eeffc102b633d1d3e45f52.
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in pypi
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
pygeoapi is a Python (pkg:pip/pygeoapi) implementation of OGC API standards for serving geospatial data, including SpatioTemporal Asset Catalog (STAC) endpoints. The affected component is the STAC FileSystemProvider plugin (pygeoapi/provider/filesystem.py), which maps incoming URL path segments to files on disk to serve STAC collection assets. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory / Path Traversal): get_data_path() built the on-disk target via os.path.join(self.data, dirpath) using the raw, un-sanitized request path. Because no normalization or '..' rejection was applied, an attacker-supplied dirpath containing '..' resolves outside the intended data root, exposing parent directories. The patched code adds an explicit check that raises ProviderInvalidQueryError whenever '..' appears in dirpath, as confirmed by the commit diff and the added test asserting rejection of '../../poi_portugal'.
Know when the next one hits your stack
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Remote unauthenticated traversal (AV:N/PR:N/UI:N) exposing directory contents yields C:H with no integrity or availability impact; kept AC:L since the '..' request is trivial once the required stac-collection config is present.
Primary rating from Vendor (https://github.com/geopython/pygeoapi).
CVSS VectorVendor: https://github.com/geopython/pygeoapi
Lifecycle Timeline
2DescriptionCVE.org
Impact
A raw string path concatenation vulnerability in pygeoapi's STAC FileSystemProvider plugin can allow for requests to STAC collection based collections to expose directories without authentication. The issue manifests when pygeoapi is deployed without a proxy or web front end that would normalize URLs with .. values, along with a resource of type stac-collection defined in configuration.
Patches
The issue has been patched in master branch and made available as part of the 0.23.3 release.
The commit/fix can be found in bf25b8695edbdd5476eeffc102b633d1d3e45f52.
Workarounds
Users can safeguard existing applications by disabling STAC collection based resources in their pygeoapi config, until 0.23.3 can be installed and deployed.
Executive ViewAI
pygeoapi versions 0.23.0 through 0.23.2 contain a directory traversal vulnerability allowing unauthenticated remote attackers to read arbitrary files from affected systems when STAC collection resources are configured. Organizations running these versions face unauthorized exposure of sensitive configuration files, application source code, and system data. Exploitation requires only standard HTTP requests to a public STAC endpoint-no authentication or special interaction is necessary.
Apply vendor patch. Interim: deploy URL-normalizing reverse proxy (nginx merge_slashes=on or Apache AllowEncodedSlashes=off) in front of pygeoapi to block directory traversal patterns while patching is implemented.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
GHSA-f6pr-83pg-ghh6
NVD
CVE.org
EPSS
Exploit-DB