Search covers the description text, product and vendor names and weakness types (also partial words).

CVE-2021-39208
sharpcompress project sharpcompress

Score4.3 Medium
CVSS 3.1
Exploit probability (EPSS)1.2%
within the next 30 days
CategoryAccess control & privilege
Published16 September 2021
Last modified: 17 June 2026

In short

This vulnerability can be exploited remotely over the network, with a regular user account, without any user interaction.

Impact is limited: modifying data.

Weakness type: Path traversal.

✨ AI commentary

After a short ad, a plain-language commentary on this vulnerability is shown. AI can make mistakes; base decisions on the official sources.

Official description

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 to version 0.29.0, it is not enforced that fullDestinationDirectoryPath ends with slash. If the destinationDirectory is not slash terminated like `/home/user/dir` it is possible to create a file with a name thats begins as the destination directory one level up from the directory, i.e. `/home/user/dir.sh`. Because of the file name and destination directory constraints the arbitrary file creation impact is limited and depends on the use case. This issue is fixed in SharpCompress version 0.29.0.

CVSS: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

Weakness: CWE-22 – Path traversal

Affected products

VendorProductVersions
sharpcompress projectsharpcompress<0.29.0

Sources

Latest in the same category

  • CVE-2026-139981 Low 2.1
    A flaw has been found in PerfreeBlog up to 4.0.11. This affects an unknown part of the file CodegenController.java of the component Codegen Module. This manipulation causes missing authorization. The attack may be…
    Access control & privilege · 1 December 2026
  • CVE-2026-139979 Medium 5.5
    A security vulnerability has been detected in Frangoteam FUXA up to 1.3.5. This affects an unknown part of the file server/api/recipes/index.js of the component Recipes API. Such manipulation leads to missing…
    Access control & privilege · 1 December 2026
  • CVE-2026-115423 Medium 6.5
    A flaw was found in FreeIPA. An access control instruction (ACI) intended to allow presence-checking on password and Kerberos principal-key attributes grants unrestricted SEARCH rights on userPassword and…
    Access control & privilege · 1 December 2026
  • CVE-2026-139978 Low 2.1
    A vulnerability was determined in Statamic CMS up to 6.43.1. This issue affects the function Upload of the file src/Http/Controllers/CP/Fieldtypes/FilesFieldtypeController.php of the component Control Panel Files…
    Access control & privilege · 1 December 2026
  • CVE-2026-139893 Medium 5.5
    A vulnerability has been found in 0xERR0R blocky up to 0.35.0. Impacted is the function configureDebugHandler of the file server/server_endpoints.go. Such manipulation leads to information disclosure. The attack may be…
    Access control & privilege · 1 December 2026
  • CVE-2026-139892 Medium 4.8
    A flaw has been found in MervinPraison PraisonAI up to 4.7.24. This issue affects the function _load_rules of the file praisonaiagents/permissions/manager.py of the component Permission Manager. This manipulation…
    Access control & privilege · 1 December 2026