by @mweinelt Activity log
- Created automatic suggestion
- @mweinelt accepted
- @mweinelt published on GitHub
dbt-common: commonprefix() doesn't protect against path traversal
dbt-common is the shared common utilities for dbt-core and adapter implementations use. Prior to versions 1.34.2 and 1.37.3, a path traversal vulnerability exists in dbt-common's safe_extract() function used when extracting tarball archives. The function uses os.path.commonprefix() to validate that extracted files remain within the intended destination directory. However, commonprefix() compares paths character-by-character rather than by path components, allowing a malicious tarball to write files to sibling directories with matching name prefixes. This issue has been patched in versions 1.34.2 and 1.37.3.
References
-
https://github.com/dbt-labs/dbt-common/security/advisories/GHSA-w75w-9qv4-j5xj x_refsource_CONFIRM
-
https://github.com/pypa/pip/pull/13777 x_refsource_MISC
Affected products
- ==< 1.37.3
- ==< 1.34.2
Matching in nixpkgs
pkgs.python312Packages.dbt-common
Shared common utilities for dbt-core and adapter implementations use
-
nixos-25.11 1.28.0-unstable-2025-08-14
- nixos-25.11-small 1.28.0-unstable-2025-08-14
- nixpkgs-25.11-darwin 1.28.0-unstable-2025-08-14
pkgs.python313Packages.dbt-common
Shared common utilities for dbt-core and adapter implementations use
-
nixos-unstable 1.37.2-unstable-2026-02-16
- nixpkgs-unstable 1.37.2-unstable-2026-02-16
- nixos-unstable-small 1.37.2-unstable-2026-02-16
-
nixos-25.11 1.28.0-unstable-2025-08-14
- nixos-25.11-small 1.28.0-unstable-2025-08-14
- nixpkgs-25.11-darwin 1.28.0-unstable-2025-08-14
pkgs.python314Packages.dbt-common
Shared common utilities for dbt-core and adapter implementations use
-
nixos-unstable 1.37.2-unstable-2026-02-16
- nixpkgs-unstable 1.37.2-unstable-2026-02-16
- nixos-unstable-small 1.37.2-unstable-2026-02-16