{"id":"CVE-2023-41057","published":"2023-09-04T17:19:28Z","modified":"2024-09-27T15:22:50Z","title":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in hyper-bump-it","vendor":"plannigan","product":"hyper-bump-it","tier":"tail","description":{"text":"hyper-bump-it is a command line tool for updating the version in project files.`hyper-bump-it` reads a file glob pattern from the configuration file. That is combined with the project root directory to construct a full glob pattern that is used to find files that should be edited. These matched files should be contained within the project root directory, but that is not checked. This could result in changes being written to files outside of the project. The default behaviour of `hyper-bump-it` is to display the planned changes and prompt the user for confirmation before editing any files. However, the configuration file provides a field that can be used cause files to be edited without displaying the prompt. This issue has been fixed in release version 0.5.1. Users are advised to upgrade. Users that are unable to update from vulnerable versions, executing `hyper-bump-it` with the `--interactive` command line argument will ensure that all planned changes are displayed and prompt the user for confirmation before editing any files, even if the configuration file contains `show_confirm_prompt=true`.\n","provenance":"source","from":"CVE.org"},"cvss":{"score":5.5,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00349,"percentile":0.20888,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/plannigan/hyper-bump-it/security/advisories/GHSA-xc27-f9q3-4448","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/plannigan/hyper-bump-it/pull/307","tags":["x_refsource_MISC"]}],"priority":{"score":8.0,"factors":[{"name":"EPSS percentile","points":4.18},{"name":"CVSS severity","points":3.85}]},"vendorSlug":"plannigan","affectedVersions":[{"vendor":"plannigan","product":"hyper-bump-it","versions":["< 0.5.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2024-09-27T14:34:53.311016Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"hyper-bump-it","vulnerableRanges":["<0.5.1"],"patched":["0.5.1"],"from":["GHSA-xc27-f9q3-4448","PYSEC-2026-1456"],"provenance":"source"}],"summary":{"text":"The hyper-bump-it command line tool from plannigan, which updates version strings in project files, fails to check that the files matched by its configuration-driven glob pattern lie within the project root, so path traversal lets edits land outside the project. Exploitation requires local access and a user to run hyper-bump-it with a configuration file that disables the confirmation prompt (via the show_confirm_prompt field), and the user must interact by running the tool.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:05:13Z"},"euvd":{"id":"EUVD-2023-2612","exploited":false,"provenance":"source"}}