Vulnerability Details : CVE-2023-41057
Potential exploit
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`.
Vulnerability category: Directory traversal
Products affected by CVE-2023-41057
- cpe:2.3:a:plannigan:hyper_bump_it:*:*:*:*:*:python:*:*
Exploit prediction scoring system (EPSS) score for CVE-2023-41057
0.06%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 27 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2023-41057
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
1.8
|
3.6
|
NIST | |
5.5
|
MEDIUM | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:H/A:N |
1.8
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2023-41057
-
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.Assigned by: security-advisories@github.com (Primary)
References for CVE-2023-41057
-
https://github.com/plannigan/hyper-bump-it/pull/307
Prevent path traversal outside of project root. by plannigan · Pull Request #307 · plannigan/hyper-bump-it · GitHubPatch
-
https://github.com/plannigan/hyper-bump-it/security/advisories/GHSA-xc27-f9q3-4448
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') in hyper-bump-it · Advisory · plannigan/hyper-bump-it · GitHubExploit;Patch;Vendor Advisory
Jump to