{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/12463?format=json","vulnerability_id":"VCID-1qhk-r5sq-zqhm","summary":"Path traversal in SharpZipLib\nSharpZipLib (or #ziplib) is a Zip, GZip, Tar and BZip2 library. A check was added if the destination file is under a destination directory. However, it is not enforced that `_baseDirectory` ends with slash. If the `_baseDirectory` 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. fixed this vulnerability.","aliases":[{"alias":"CVE-2021-32842"},{"alias":"GHSA-mm6g-mmq6-53ff"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/931058?format=json","purl":"pkg:deb/debian/mono@0?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/mono@0%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/931052?format=json","purl":"pkg:deb/debian/mono@6.8.0.105%2Bdfsg-3.3~deb11u1?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/mono@6.8.0.105%252Bdfsg-3.3~deb11u1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/931050?format=json","purl":"pkg:deb/debian/mono@6.8.0.105%2Bdfsg-3.3%2Bdeb12u1?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/mono@6.8.0.105%252Bdfsg-3.3%252Bdeb12u1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/931054?format=json","purl":"pkg:deb/debian/mono@6.12.0.199%2Bdfsg-6?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/mono@6.12.0.199%252Bdfsg-6%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/931053?format=json","purl":"pkg:deb/debian/mono@6.14.1%2Bds2-2?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/mono@6.14.1%252Bds2-2%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/1104238?format=json","purl":"pkg:deb/debian/mono@6.14.1%2Bds2-3?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/mono@6.14.1%252Bds2-3%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/44462?format=json","purl":"pkg:nuget/SharpZipLib@1.3.3","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:nuget/SharpZipLib@1.3.3"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/44653?format=json","purl":"pkg:nuget/SharpZipLib@1.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-1qhk-r5sq-zqhm"},{"vulnerability":"VCID-fxh1-kq9x-6bbz"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:nuget/SharpZipLib@1.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/279413?format=json","purl":"pkg:nuget/SharpZipLib@1.1.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-1qhk-r5sq-zqhm"},{"vulnerability":"VCID-fxh1-kq9x-6bbz"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:nuget/SharpZipLib@1.1.0"},{"url":"http://public2.vulnerablecode.io/api/packages/279414?format=json","purl":"pkg:nuget/SharpZipLib@1.2.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-1qhk-r5sq-zqhm"},{"vulnerability":"VCID-fxh1-kq9x-6bbz"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:nuget/SharpZipLib@1.2.0"},{"url":"http://public2.vulnerablecode.io/api/packages/44459?format=json","purl":"pkg:nuget/SharpZipLib@1.3.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-1qhk-r5sq-zqhm"},{"vulnerability":"VCID-eadx-224r-vyhs"},{"vulnerability":"VCID-fxh1-kq9x-6bbz"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:nuget/SharpZipLib@1.3.0"},{"url":"http://public2.vulnerablecode.io/api/packages/279256?format=json","purl":"pkg:nuget/SharpZipLib@1.3.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-1qhk-r5sq-zqhm"},{"vulnerability":"VCID-eadx-224r-vyhs"},{"vulnerability":"VCID-fxh1-kq9x-6bbz"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:nuget/SharpZipLib@1.3.1"},{"url":"http://public2.vulnerablecode.io/api/packages/279257?format=json","purl":"pkg:nuget/SharpZipLib@1.3.2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-1qhk-r5sq-zqhm"},{"vulnerability":"VCID-eadx-224r-vyhs"},{"vulnerability":"VCID-fxh1-kq9x-6bbz"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:nuget/SharpZipLib@1.3.2"}],"references":[{"reference_url":"https://api.first.org/data/v1/epss?cve=CVE-2021-32842","reference_id":"","reference_type":"","scores":[{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53254","published_at":"2026-05-15T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53173","published_at":"2026-04-12T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53157","published_at":"2026-04-13T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53196","published_at":"2026-04-16T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53204","published_at":"2026-04-18T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53186","published_at":"2026-04-21T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.5316","published_at":"2026-04-24T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.5317","published_at":"2026-04-26T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53133","published_at":"2026-04-29T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53086","published_at":"2026-05-05T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53137","published_at":"2026-05-07T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.5318","published_at":"2026-05-09T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53172","published_at":"2026-05-12T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53243","published_at":"2026-05-14T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53082","published_at":"2026-04-01T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53101","published_at":"2026-04-02T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53125","published_at":"2026-04-04T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53094","published_at":"2026-04-07T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53145","published_at":"2026-05-11T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53138","published_at":"2026-04-09T12:55:00Z"},{"value":"0.00298","scoring_system":"epss","scoring_elements":"0.53188","published_at":"2026-04-11T12:55:00Z"}],"url":"https://api.first.org/data/v1/epss?cve=CVE-2021-32842"},{"reference_url":"https://github.com/icsharpcode/SharpZipLib","reference_id":"","reference_type":"","scores":[{"value":"4.0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/icsharpcode/SharpZipLib"},{"reference_url":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3","reference_id":"","reference_type":"","scores":[{"value":"4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"value":"4.0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:51:39Z/"}],"url":"https://github.com/icsharpcode/SharpZipLib/releases/tag/v1.3.3"},{"reference_url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib","reference_id":"","reference_type":"","scores":[{"value":"4.0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib"},{"reference_url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/","reference_id":"","reference_type":"","scores":[{"value":"4","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"value":"Track","scoring_system":"ssvc","scoring_elements":"SSVCv2/E:P/A:N/T:P/P:M/B:A/M:M/D:T/2025-04-22T15:51:39Z/"}],"url":"https://securitylab.github.com/advisories/GHSL-2021-125-sharpziplib/"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32842","reference_id":"CVE-2021-32842","reference_type":"","scores":[{"value":"4.0","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-32842"},{"reference_url":"https://github.com/advisories/GHSA-mm6g-mmq6-53ff","reference_id":"GHSA-mm6g-mmq6-53ff","reference_type":"","scores":[{"value":"MODERATE","scoring_system":"cvssv3.1_qr","scoring_elements":""}],"url":"https://github.com/advisories/GHSA-mm6g-mmq6-53ff"}],"weaknesses":[{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."},{"cwe_id":22,"name":"Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')","description":"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."}],"exploits":[],"severity_range_score":"4.0 - 6.9","exploitability":"0.5","weighted_severity":"6.2","risk_score":3.1,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-1qhk-r5sq-zqhm"}