CVE-2023-40587

Source
https://nvd.nist.gov/vuln/detail/CVE-2023-40587
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2023-40587.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2023-40587
Aliases
Related
Published
2023-08-25T21:15:09Z
Modified
2024-12-11T05:49:40.141867Z
Severity
  • 5.3 (Medium) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

References

Affected packages

Debian:12 / python-pyramid

Package

Name
python-pyramid
Purl
pkg:deb/debian/python-pyramid?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

2.*

2.0+dfsg-2
2.0.2+dfsg-1

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / python-pyramid

Package

Name
python-pyramid
Purl
pkg:deb/debian/python-pyramid?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.0.2+dfsg-1

Affected versions

2.*

2.0+dfsg-2

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Git / github.com/pylons/pyramid

Affected ranges

Type
GIT
Repo
https://github.com/pylons/pyramid
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

0.*

0.2

1.*

1.0
1.0a1
1.0a10
1.0a2
1.0a3
1.0a4
1.0a5
1.0a6
1.0a7
1.0a8
1.0a9
1.0b1
1.0b2
1.0b3
1.1
1.10
1.10a1
1.10b1
1.1a1
1.1a2
1.1a3
1.1a4
1.1b1
1.1b2
1.1b3
1.1b4
1.2
1.2a1
1.2a2
1.2a3
1.2a4
1.2a5
1.2a6
1.2b1
1.2b2
1.2b3
1.3
1.3a1
1.3a3
1.3a4
1.3a6
1.3a7
1.3a8
1.3a9
1.3b1
1.3b2
1.3b3
1.4
1.4a1
1.4a2
1.4a3
1.4a4
1.4b1
1.4b2
1.4b3
1.5
1.5a1
1.5a2
1.5a3
1.5a4
1.5b1
1.6a1
1.7a1
1.8a1
1.8b1
1.9
1.9a1
1.9a2
1.9b1

2.*

2.0
2.0.1
2.0a0
2.0b0
2.0b1