python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| theskumar | python-dotenv | affected |
|
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Theskumar | Python-dotenv |
|
| Source | ID | Title |
|---|---|---|
Github GHSA |
GHSA-mf9w-mj56-hr94 | python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback |
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.252% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Saurabh-kumar
Saurabh-kumar python-dotenv |
|
| CPEs | cpe:2.3:a:saurabh-kumar:python-dotenv:*:*:*:*:*:python:*:* | |
| Vendors & Products |
Saurabh-kumar
Saurabh-kumar python-dotenv |
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Theskumar
Theskumar python-dotenv |
|
| Vendors & Products |
Theskumar
Theskumar python-dotenv |
|
| References |
| |
| Metrics |
threat_severity
|
threat_severity
|
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| Description | python-dotenv reads key-value pairs from a .env file and can set them as environment variables. Prior to version 1.2.2, `set_key()` and `unset_key()` in python-dotenv follow symbolic links when rewriting `.env` files, allowing a local attacker to overwrite arbitrary files via a crafted symlink when a cross-device rename fallback is triggered. Users should upgrade to v.1.2.2 or, as a workaround, apply the patch manually. | |
| Title | python-dotenv: Symlink following in set_key allows arbitrary file overwrite via cross-device rename fallback | |
| Weaknesses | CWE-59 CWE-61 |
|
| References |
| |
| Metrics |
cvssV3_1
|