p PatchFirst

CVE-2021-32841

CVE-2021-32841 · Path Traversal in SharpZipLib

This page contains facts from public vulnerability sources. Check the original advisory before updating.

SharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. Starting version 1.3.0 and prior to version 1.3.3, a check was added if the destination file is under destination directory. However, it is not enforced that `destDir` ends with slash. If the `destDir` is not slash terminated like `/home/user/dir` it is possible to create a file with a name thats begins with the destination 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. Version 1.3.3 contains a patch for this vulnerability.

CVSS 4.0 · Medium · EPSS 1.1%

Published
Updated

Stack: system

Affected products and versions

  • sharpziplib

    Versions
    • ≥ 1.3.3, < 1.3.3: Affected (custom)
    • ≥ 1.3.0, < 1.3.0*: Affected (custom)

    No fix published

  • mono Ubuntu:22.04:LTS

    Versions
    • 6.8.0.105+dfsg-3.2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mono Ubuntu:24.04:LTS

    Versions
    • 6.8.0.105+dfsg-3.4
    • 6.8.0.105+dfsg-3.5ubuntu1
    • 6.8.0.105+dfsg-3.6ubuntu1
    • 6.8.0.105+dfsg-3.6ubuntu2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mono Ubuntu:25.10

    Versions
    • 6.12.0.199+dfsg-3
    • 6.12.0.199+dfsg-6
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mono Ubuntu:26.10

    Versions
    • 6.14.1+ds2-2
    • 6.14.1+ds2-3
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

  • mono Ubuntu:26.04:LTS

    Versions
    • 6.12.0.199+dfsg-6
    • 6.14.1+ds2-1
    • 6.14.1+ds2-2
    Affected ranges
    • ECOSYSTEM: (−∞, +∞)

    No fix published

Original sources

Check your server →