{"api_version":"1","generated_at":"2026-04-23T09:53:40+00:00","cve":"CVE-2022-23531","urls":{"html":"https://cve.report/CVE-2022-23531","api":"https://cve.report/api/cve/CVE-2022-23531.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-23531","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-23531"},"summary":{"title":"CVE-2022-23531","description":"GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to 0.1.5 are vulnerable to Relative Path Traversal when scanning a specially-crafted local PyPI package. Running GuardDog against a specially-crafted package can allow an attacker to write an arbitrary file on the machine where GuardDog is executed due to a path traversal vulnerability when extracting the .tar.gz file of the package being scanned, which exists by design in the tarfile.TarFile.extractall function. This issue is patched in version 0.1.5.","state":"PUBLIC","assigner":"security-advisories@github.com","published_at":"2022-12-17 00:15:00","updated_at":"2023-06-27 18:19:00"},"problem_types":["CWE-22"],"metrics":[],"references":[{"url":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5","name":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5","refsource":"MISC","tags":[],"title":"Release v0.1.5 · DataDog/guarddog · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","name":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","refsource":"MISC","tags":[],"title":"Arbitrary file write when scanning a specially-crafted local PyPI package · Advisory · DataDog/guarddog · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","name":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","refsource":"MISC","tags":[],"title":"Use tarsafe instead of built-in tarfile to extract archives by christophetd · Pull Request #89 · DataDog/guarddog · GitHub","mime":"text/html","httpstatus":"200","archivestatus":"404"},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-23531","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-23531","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2022","cve_id":"23531","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"datadoghq","cpe5":"guarddog","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"python","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"data_version":"4.0","data_type":"CVE","data_format":"MITRE","CVE_data_meta":{"ID":"CVE-2022-23531","ASSIGNER":"security-advisories@github.com","STATE":"PUBLIC"},"description":{"description_data":[{"lang":"eng","value":"GuardDog is a CLI tool to identify malicious PyPI packages. Versions prior to 0.1.5 are vulnerable to Relative Path Traversal when scanning a specially-crafted local PyPI package. Running GuardDog against a specially-crafted package can allow an attacker to write an arbitrary file on the machine where GuardDog is executed due to a path traversal vulnerability when extracting the .tar.gz file of the package being scanned, which exists by design in the tarfile.TarFile.extractall function. This issue is patched in version 0.1.5."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"CWE-23: Relative Path Traversal","cweId":"CWE-23"}]}]},"affects":{"vendor":{"vendor_data":[{"vendor_name":"DataDog","product":{"product_data":[{"product_name":"guarddog","version":{"version_data":[{"version_value":"< 0.1.5","version_affected":"="}]}}]}}]}},"references":{"reference_data":[{"url":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","refsource":"MISC","name":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq"},{"url":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","refsource":"MISC","name":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306"},{"url":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5","refsource":"MISC","name":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5"}]},"source":{"advisory":"GHSA-rp2v-v467-q9vq","discovery":"UNKNOWN"},"impact":{"cvss":[{"attackComplexity":"HIGH","attackVector":"NETWORK","availabilityImpact":"LOW","baseScore":5.8,"baseSeverity":"MEDIUM","confidentialityImpact":"LOW","integrityImpact":"LOW","privilegesRequired":"NONE","scope":"CHANGED","userInteraction":"REQUIRED","vectorString":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","version":"3.1"}]}},"nvd":{"publishedDate":"2022-12-17 00:15:00","lastModifiedDate":"2023-06-27 18:19:00","problem_types":["CWE-22"],"metrics":{"baseMetricV3":{"cvssV3":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","attackVector":"LOCAL","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"REQUIRED","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH","baseScore":7.8,"baseSeverity":"HIGH"},"exploitabilityScore":1.8,"impactScore":5.9}},"configurations":{"CVE_data_version":"4.0","nodes":[{"operator":"OR","children":[],"cpe_match":[{"vulnerable":true,"cpe23Uri":"cpe:2.3:a:datadoghq:guarddog:*:*:*:*:*:python:*:*","versionEndExcluding":"0.1.5","cpe_name":[]}]}]}},"legacy_mitre":{"record":{"CveYear":"2022","CveId":"23531","Ordinal":"226318","Title":"CVE-2022-23531","CVE":"CVE-2022-23531","Year":"2022"},"notes":[{"CveYear":"2022","CveId":"23531","Ordinal":"1","NoteData":"** RESERVED ** This candidate has been reserved by an organization or individual that will use it when announcing a new security problem. When the candidate has been publicized, the details for this candidate will be provided.","Type":"Description","Title":null}]}}}