Read the docs
TI-2023-21385 Aliases CVE-2023-40587GHSA-j8g2-6fc7-q8f8

Pyramid static view path traversal up one directory

Priority LOW 25CWE-22Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Impact type
Information disclosure
Confidentiality · integrity · availability
Low · None · None
Fix status
Fixed

Attack profile from CVSS 3.1 · NVD. Fix status from CNA and GitHub. Impact type from CWE-22 and the CVSS impact.

Summary

Pyramid is an open source Python web framework. A path traversal vulnerability in Pyramid versions 2.0.0 and 2.0.1 impacts users of Python 3.11 that are using a Pyramid static view with a full filesystem path and have a `index.html` file that is located exactly one directory above the location of the static view's file system path. No further path traversal exists, and the only file that could be disclosed accidentally is `index.html`. Pyramid version 2.0.2 rejects any path that contains a null-byte out of caution. While valid in directory/file names, we would strongly consider it a mistake to use null-bytes in naming files/directories. Secondly, Python 3.11, and 3.12 has fixed the underlying issue in `os.path.normpath` to no longer truncate on the first `0x00` found, returning the behavior to pre-3.11 Python, un an as of yet unreleased version. Fixes will be available in:Python 3.12.0rc2 and 3.11.5. Some workarounds are available. Use a version of Python 3 that is not affected, downgrade to Python 3.10 series temporarily, or wait until Python 3.11.5 is released and upgrade to the latest version of Python 3.11 series.

Why it matters now

EPSS 0.00752 55th percentileScored 2026-11-07
Fix Fixed pyramid (Pylons): 2.0.2pyramid (PyPI): 2.0.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
Pylonspyramid2.0.0 to before 2.0.22.0.2Patch availableCNA
—pyramid (PyPI)2.0.0 to before 2.0.22.0.2Patch availableGHSA-j8g2-6fc7-q8f8
  • pyramid VendorPylons Affected 2.0.0 to before 2.0.2 Fixed in 2.0.2 Patch available CNA
  • pyramid (PyPI) Vendor— Affected 2.0.0 to before 2.0.2 Fixed in 2.0.2 Patch available GHSA-j8g2-6fc7-q8f8

CPE configurations NVD · 3

CPEVersionsRoleVendor
cpe:2.3:a:agendaless:pyramid:*:*:*:*:*:python:*:*2.0 to before 2.0.2VulnerableAgendaless
cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*38VulnerableFedoraproject
cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*39VulnerableFedoraproject
  • cpe:2.3:a:agendaless:pyramid:*:*:*:*:*:python:*:* Versions 2.0 to before 2.0.2 Vulnerable ·Agendaless
  • cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:* Versions 38 Vulnerable ·Fedoraproject
  • cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:* Versions 39 Vulnerable ·Fedoraproject

Remediation

  • Fix · CNA pyramid (Pylons) Fixed in 2.0.2
  • Fix · GHSA-j8g2-6fc7-q8f8 pyramid (PyPI) Fixed in 2.0.2 Advisory →

Timeline

  1. 2026-10-02 Threatist record created from CVE-2023-40587
  2. 2026-10-03 Alias added: GHSA-j8g2-6fc7-q8f8

References

  • TI-2022-13060 Uncaught Exception (due to a data race) leads to process termination in Waitress CVSS 3.1MEDIUM 6.5
  • TI-2026-39576 WebOb: Open redirect in Location header normalization via leading C0 control / space characters CVSS 3.1MEDIUM 6.1
  • TI-2024-33235 Waitress has request processing race condition in HTTP pipelining with invalid first request CVSS 3.1CRITICAL 9.1
  • TI-2024-33236 Waitress has a denial of service leading to high CPU usage/resource exhaustion CVSS 3.1HIGH 7.5
  • TI-2022-08575 HTTP Request Smuggling in waitress CVSS 3.1HIGH 7.5
  • TI-2019-12566 HTTP Request Smuggling in Waitress: Invalid whitespace characters in headers CVSS 3.1HIGH 8.2
See all 14 →

Sources