{"id":"CVE-2022-23531","state":"PUBLISHED","title":"Arbitrary file write when scanning a specially-crafted local PyPI package","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.","publishedAt":"2022-12-16T23:41:15.078Z","updatedAt":"2025-04-17T14:33:54.287Z","severity":{"score":5.8,"label":"Medium","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:L/I:L/A:L","source":"GitHub_M"},"assigner":"GitHub_M","products":["DataDog guarddog"],"affected":[{"vendor":"DataDog","product":"guarddog","versions":[{"version":"< 0.1.5","status":"affected"}]}],"references":["https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","https://github.com/DataDog/guarddog/releases/tag/v0.1.5"],"weaknesses":["CWE-23"],"ingestedAt":"2026-10-29T19:49:40.939Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2022/23xxx/CVE-2022-23531.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.1","cveMetadata":{"cveId":"CVE-2022-23531","state":"PUBLISHED","datePublished":"2022-12-16T23:41:15.078Z","dateUpdated":"2025-04-17T14:33:54.287Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","requesterUserId":"c184a3d9-dc98-4c48-a45b-d2d88cf0ac74","dateReserved":"2022-01-19T21:23:53.786Z"},"containers":{"cna":{"title":"Arbitrary file write when scanning a specially-crafted local PyPI package","descriptions":[{"lang":"en","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."}],"affected":[{"vendor":"DataDog","product":"guarddog","versions":[{"version":"< 0.1.5","status":"affected"}]}],"references":[{"url":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","name":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","name":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","tags":["x_refsource_MISC"]},{"url":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5","name":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV3_1":{"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"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-23","lang":"en","description":"CWE-23: Relative Path Traversal","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2022-12-16T23:41:15.078Z"},"source":{"advisory":"GHSA-rp2v-v467-q9vq","discovery":"UNKNOWN"}},"adp":[{"title":"CVE Program Container","references":[{"url":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","name":"https://github.com/DataDog/guarddog/security/advisories/GHSA-rp2v-v467-q9vq","tags":["x_refsource_CONFIRM","x_transferred"]},{"url":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","name":"https://github.com/DataDog/guarddog/pull/89/commits/a56aff58264cb6b7855d71b00dc10c39a5dbd306","tags":["x_refsource_MISC","x_transferred"]},{"url":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5","name":"https://github.com/DataDog/guarddog/releases/tag/v0.1.5","tags":["x_refsource_MISC","x_transferred"]}],"providerMetadata":{"shortName":"CVE","orgId":"af854a3a-2127-422b-91ae-364da2661108","dateUpdated":"2024-08-03T03:43:46.507Z"}},{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2025-04-17T14:33:45.484638Z","id":"CVE-2022-23531","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"partial"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2025-04-17T14:33:54.287Z"}}]}}}