CVE-2022-31507 json
Ganga allows absolute path traversal
published 2022-07-11 4 y ago modified 2026-06-17 4 mo ago also GHSA-7488-6x3r-23w5 , PYSEC-2022-225 , EUVD-2022-0110
- cvss
- 9.3
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.7%
- EPSS 1.7% chance of exploitation in 30 days, percentile 77%
- public exploits
- 0
- none known
Summary
The ganga-devs/ganga repository before 8.5.10 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
Patch / fix
- pypi ganga 8.5.10
- ganga_project ganga 8.5.10
Exploit prediction
1.70% chance of exploitation in the next 30 days, higher than 77% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/ganga-devs/ganga/commit/730e7aba192407d35eb37dd7938d49071124be8c referenced PoC, tagged "exploit" by a source, unverified
- github.com https://github.com/github/securitylab/issues/669#issuecomment-1117265726 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:N/A:P |
| GitHub | 3.1 | 9.3 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:L |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | ganga | <8.5.10 |
8.5.10 |
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/ganga-devs/ganga/commit/730e7aba192407d35eb37dd7938d49071124be8c
web, exploit, patch, third-party-advisory
-
github.com
/github/securitylab/issues/669#issuecomment-1117265726
web, exploit, issue-tracking, third-party-advisory, report
-
github.com
/ganga-devs/ganga/releases/tag/8.5.10
web, release-notes, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2022-31507
advisory
-
github.com
/advisories/GHSA-7488-6x3r-23w5
advisory
-
github.com
/ganga-devs/ganga
package
-
github.com
/pypa/advisory-database/tree/main/vulns/ganga/PYSEC-2022-225.yaml
web
Sources
- CVE List CVE-2022-31507
- GitHub Advisory GHSA-7488-6x3r-23w5
- NVD CVE-2022-31507
- OSV PYSEC-2022-225
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.