Skip to main content

pygeoapi CVE-2026-42351

HIGH
Path Traversal (CWE-22)
2026-04-29 https://github.com/geopython/pygeoapi GHSA-f6pr-83pg-ghh6
7.5
CVSS 3.1 · Vendor: https://github.com/geopython/pygeoapi
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify exposed pygeoapi with stac-collection endpoint
  2. Delivery
    Craft STAC request with '..' path segments
  3. Exploit
    Bypass raw path concatenation in FileSystemProvider
  4. Execution
    Resolve directory outside data root
  5. Impact
    Read 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.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

pypi pygeoapi fix: 0.23.3

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

Vendor (https://github.com/geopython/pygeoapi) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
vuln.today AI 7.5 HIGH

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.

3.1 AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (https://github.com/geopython/pygeoapi).

CVSS VectorVendor: https://github.com/geopython/pygeoapi

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
None
Availability
None

Lifecycle Timeline

2
Patch released
Apr 29, 2026 - 22:30 nvd
Patch available
CVE Published
Apr 29, 2026 - 22:18 nvd
HIGH 7.5

DescriptionCVE.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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.1%
Top 74% exploitable
Prevalence
Low
niche open-source OGC/STAC geospatial API server, limited enterprise footprint
Threat Intel
1
1 source
Data Quality
4 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Affected Products (CPE)CVE.org

pkg:pip/pygeoapi

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy