CVE-2021-39208: SharpCompress is a fully managed C# library to deal with many compression types and formats
CVE-2021-39208 is a medium-severity flaw (CVSS 4.3) affecting sharpcompress. Below: why it ranks where it does, which versions are affected, what to do, and the exact commands.
SharpCompress is a fully managed C# library to deal with many compression types and formats. Versions prior to 0.29.0 are vulnerable to partial path traversal. SharpCompress recreates a hierarchy of directories under destinationDirectory if ExtractFullPath is set to true in options. In order to prevent extraction outside the destination directory the destinationFileName path is verified to begin with fullDestinationDirectoryPath. However, prior t
Why this priority
- Public exploit reference
A fixed release or distro patch exists.
Risk facts
| CVSS score | 4.3 (Medium) |
| Attack vector | Network (remote) |
| Attack complexity | Low |
| Privileges needed | Low |
| User interaction | None |
| EPSS exploit chance | 1.2% (top 32%) |
| CISA exploited list | No |
| Weakness | CWE-22 |
| Published | 2021-09-16 |
| Last modified | 2026-06-17 |
Last updated 2026-06-17 · Sources: CVE Program, NVD, CISA KEV, EPSS and vendor advisories · How we score
Am I affected?
Timeline
- Published CVE record published
- Updated Record last modified
Scores and fixes here are computed automatically from those and other public sources. Confirm with the vendor advisory before changing production systems.
Quick answers
How do I fix CVE-2021-39208?
sharpcompress: upgrade to 0.29.0. Exact commands for each OS are on this page.
Is CVE-2021-39208 being exploited?
CVE-2021-39208 is not on the CISA Known Exploited Vulnerabilities list at the time of the last update. Check again, as this can change.
What does CVE-2021-39208 affect?
CVE-2021-39208 affects sharpcompress. Severity is medium (CVSS 4.3). SharpCompress is a fully managed C# library to deal with many compression types and formats. Versions prior to 0.29.0 are vulnerable to partial path traversal. SharpCompress recreates a hierarchy of directories under destinationDirectory if
How urgent is CVE-2021-39208?
Priority 37/100. Public exploit reference
Related CVEs
- CVE-2026-44788 MEDIUM 5.9 UPGRADE SharpCompress is a fully managed C# library to deal with many compression types and formats