cve.bz

CWE-22: Improper Limitation of a Pathname to a Restricted Directory (Path traversal), published in 2022, page 8

Filter

The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory.

What the weakness is: CWE-22 at MITRE. OWASP Top 10: A01:2025 Broken Access Control. All weaknesses

Related attack patterns (CAPEC): 5
  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to CWE-22, as MITRE names them. Credits.

Ask an AI about CWE-22

Show the promptExplain CWE-22: Improper Limitation of a Pathname to a Restricted Directory and how to prevent and detect it in code. Use https://cwe.mitre.org/data/definitions/22.html and https://cve.bz/cve/cwe/22?via=ask-ai-copy for recent CVEs with this weakness. Cite the sources.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this weakness's id and public links.

By year: all 2026 2025 2024 2023 2022 2021

  1. 9.3CVE-2022-31572cockybook project cockybookEPSS 1.3%

    The ceee-vip/cockybook repository through 2015-04-16 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  2. 9.3CVE-2022-31571python-flask-restful-api project python-flask-restful-apiEPSS 1.3%

    The akashtalole/python-flask-restful-api repository through 2019-09-16 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  3. 9.8CVE-2022-31570ceneo-web-scrapper project ceneo-web-scrapperEPSS 1.2%

    The adriankoczuruek/ceneo-web-scrapper repository through 2021-03-15 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  4. 9.3CVE-2022-31568rexians rex-webEPSS 1.3%

    The Rexians/rex-web repository through 2022-06-05 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  5. 9.3CVE-2022-31567data stream algorithm benchmark project data stream algorithm benchmarkEPSS 1.3%

    The DSABenchmark/DSAB repository through 2.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  6. 8.6CVE-2022-31566data stream algorithm benchmark project data stream algorithm benchmarkEPSS 1.2%

    The DSAB-local/DSAB repository through 2019-02-18 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  7. 9.3CVE-2022-31565syrabond project syrabondEPSS 1.3%

    The yogson/syrabond repository through 2020-05-25 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  8. 9.3CVE-2022-31564munhak munhak-moaEPSS 1.4%

    The woduq1414/munhak-moa repository before 2022-05-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  9. 9.3CVE-2022-31563vprj project vprjEPSS 1.3%

    The whmacmac/vprj repository through 2022-04-06 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  10. 9.3CVE-2022-31562internshipsystem project internshipsystemEPSS 1.3%

    The waveyan/internshipsystem repository through 2018-05-22 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  11. 9.3CVE-2022-31561sphere imagebackend project sphere imagebackendEPSS 1.3%

    The varijkapil13/Sphere_ImageBackend repository through 2019-10-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  12. 9.3CVE-2022-31560photo tag project photo tagEPSS 1.3%

    The uncleYiba/photo_tag repository through 2020-08-31 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  13. 9.3CVE-2022-31559flask-yeoman project flask-yeomanEPSS 1.3%

    The tsileo/flask-yeoman repository through 2013-09-13 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  14. 9.3CVE-2022-31558shiva-server project shiva-serverEPSS 1.3%

    The tooxie/shiva-server repository through 0.10.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  15. 9.3CVE-2022-31557golem project golemEPSS 1.3%

    The seveas/golem repository through 2016-05-17 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  16. 9.3CVE-2022-31556trainenergyserver project trainenergyserverEPSS 1.3%

    The rusyasoft/TrainEnergyServer repository through 2017-08-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  17. 9.3CVE-2022-31555nurse quest project nurse questEPSS 1.3%

    The romain20100/nursequest repository through 2018-02-22 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  18. 9.3CVE-2022-31554movie-review-sentiment-analysis project movie-review-sentiment-analysisEPSS 1.3%

    The rohitnayak/movie-review-sentiment-analysis repository through 2017-05-07 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  19. 9.3CVE-2022-31553sleep learner project sleep learnerEPSS 1.3%

    The rainsoupah/sleep-learner repository through 2021-02-21 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  20. 9.3CVE-2022-31552anuvaad-corpus project anuvaad-corpusEPSS 1.3%

    The project-anuvaad/anuvaad-corpus repository through 2020-11-23 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  21. 9.3CVE-2022-31551flask-mongo-skel project flask-mongo-skelEPSS 1.3%

    The pleomax00/flask-mongo-skel repository through 2012-11-01 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  22. 9.3CVE-2022-31550python athena stack project python athena stackEPSS 1.3%

    The olmax99/pyathenastack repository through 2019-11-08 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  23. 9.3CVE-2022-31549helm-flask-celery project helm-flask-celeryEPSS 1.5%

    The olmax99/helm-flask-celery repository before 2022-05-25 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  24. 9.3CVE-2022-31548homepage project homepageEPSS 1.3%

    The nrlakin/homepage repository through 2017-03-06 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  25. 9.3CVE-2022-31547sphere project sphereEPSS 1.3%

    The noamezekiel/sphere repository through 2020-05-31 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  26. 9.3CVE-2022-31546glance project glanceEPSS 1.3%

    The nlpweb/glance repository through 2014-06-27 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  27. 9.3CVE-2022-31545modelconverter project modelconverterEPSS 1.3%

    The ml-inory/ModelConverter repository through 2021-04-26 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  28. 9.3CVE-2022-31544xtomo robo-tomEPSS 1.3%

    The meerstein/rbtm repository through 1.5 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  29. 9.3CVE-2022-31543setupbox project setupboxEPSS 1.3%

    The maxtortime/SetupBox repository through 1.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  30. 9.3CVE-2022-31542mdweb project mdwebEPSS 1.3%

    The mandoku/mdweb repository through 2015-05-07 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  31. 9.3CVE-2022-31541barry voice assistant project barry voice assistantEPSS 1.3%

    The lyubolp/Barry-Voice-Assistant repository through 2021-01-18 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  32. 9.3CVE-2022-31540hin-eng-preprocessing project hin-eng-preprocessingEPSS 1.3%

    The kumardeepak/hin-eng-preprocessing repository through 2019-07-16 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  33. 9.3CVE-2022-31539kotekan project kotekanEPSS 1.3%

    The kotekan/kotekan repository through 2021.11 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  34. 9.3CVE-2022-31538mp-m08-interface project mp-m08-interfaceEPSS 1.3%

    The joaopedro-fg/mp-m08-interface repository through 2020-12-10 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  35. 9.3CVE-2022-31537solar-system-simulator project solar-system-simulatorEPSS 1.3%

    The jmcginty15/Solar-system-simulator repository through 2021-07-26 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  36. 9.3CVE-2022-31536ytdl-sync project ytdl-syncEPSS 1.3%

    The jaygarza1982/ytdl-sync repository through 2021-01-02 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  37. 9.3CVE-2022-31535fishtank project fishtankEPSS 1.3%

    The freefood89/Fishtank repository through 2015-06-24 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  38. 9.3CVE-2022-31534pythonweb project pythonwebEPSS 1.3%

    The echoleegroup/PythonWeb repository through 2018-10-31 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  39. 9.3CVE-2022-31533umbral project umbralEPSS 1.3%

    The decentraminds/umbral repository through 2020-01-15 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  40. 9.3CVE-2022-31532travel blahg project travel blahgEPSS 1.3%

    The dankolbman/travel_blahg repository through 2016-01-16 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  41. 9.3CVE-2022-31531dainst cilantroEPSS 1.3%

    The dainst/cilantro repository through 0.0.4 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  42. 9.3CVE-2022-31530csm server project csm serverEPSS 1.3%

    The csm-aut/csm repository through 3.5 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  43. 9.3CVE-2022-31529monorepo project monorepoEPSS 1.3%

    The cinemaproject/monorepo repository through 2021-03-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  44. 9.3CVE-2022-31528bonn activity maps annotation tool project bonn activity maps annotation toolEPSS 1.3%

    The bonn-activity-maps/bam_annotation_tool repository through 2021-08-31 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  45. 9.3CVE-2022-31527flask-file-server project flask-file-serverEPSS 1.3%

    The Wildog/flask-file-server repository through 2020-02-20 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  46. 9.3CVE-2022-31526thunderatz thunderdocsEPSS 1.3%

    The ThundeRatz/ThunderDocs repository through 2020-05-01 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  47. 9.3CVE-2022-31525deep learning studio project deep learning studioEPSS 1.3%

    The SummaLabs/DLS repository through 0.1.0 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  48. 9.3CVE-2022-31524purestorage pure swaggerEPSS 1.3%

    The PureStorage-OpenConnect/swagger repository through 1.1.5 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  49. 9.3CVE-2022-31523paddlepaddle anakinEPSS 1.3%

    The PaddlePaddle/Anakin repository through 0.1.1 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.

  50. 9.3CVE-2022-31522karaokey project karaokeyEPSS 1.3%

    The NotVinay/karaokey repository through 2019-12-11 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.