Skip to content
vetkitChecksChangelogDocumentation

vetkit.py.path-traversal.tar-extractall

A tar archive is extracted with extractall() without a safety filter. Crafted member names or links (../, absolute paths) can write files outside the target directory.

Last updated:

Suite: Security

python

A tar archive is extracted with extractall() without a safety filter. Crafted member names or links (../, absolute paths) can write files outside the target directory.

Category: SECURITY · Engine rule severity: WARNING

How to fix it

Pass filter="data" to extractall() (Python 3.12+, backported to security releases), or validate each member path and link target before extracting.

References

Source: packages/engine/rules/sast/python.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.