Skip to content

[GHSA-rrh3-cwwj-g5mg] Cornac before 2.6.0 contains a path traversal (Tar Slip)... - #9188

Open
PercevalFox wants to merge 1 commit into
PercevalFox/advisory-improvement-9188from
PercevalFox-GHSA-rrh3-cwwj-g5mg
Open

[GHSA-rrh3-cwwj-g5mg] Cornac before 2.6.0 contains a path traversal (Tar Slip)...#9188
PercevalFox wants to merge 1 commit into
PercevalFox/advisory-improvement-9188from
PercevalFox-GHSA-rrh3-cwwj-g5mg

Conversation

@PercevalFox

Copy link
Copy Markdown

Updates

  • Affected products
  • CVSS v3
  • CVSS v4
  • Summary

Comments
This advisory is unreviewed and has no package mapping, so it does not surface to users of the affected package.

The repository PreferredAI/cornac publishes the PyPI package cornac.

The advisory names _extract_archive() in cornac/utils/download.py. The fix commit (8a50be72, PR #709, "Fix CWE-22 path traversal (Tar Slip) in dataset archive extraction") modifies exactly that file, replacing a bare archive.extractall(extract_path) with a _safe_extract() helper that validates each member (rejecting traversal, absolute paths, symlinks and hardlinks). The commit description matches the advisory text.

I verified the boundary against the published PyPI wheels:

  • 2.0.0 through 2.5.0 ship cornac/utils/download.py calling archive.extractall(extract_path) with no validation
  • 2.6.0 ships the same file routing extraction through _safe_extract()

This matches the "before 2.6.0" wording in the description and the release tag already listed in the references (https://github.com/PreferredAI/cornac/releases/tag/v2.6.0).

Proposed range: introduced 0, fixed 2.6.0.

The CVSS v4 vector was rewritten to omit the trailing Not Defined (X) metrics, which the form's validator rejects. This is semantically identical per the CVSS v4.0 specification and does not change the severity assessment. CVSS v3 left untouched.

The advisory also had no title. The proposed one follows the database's naming convention and reflects the existing CWE-22 classification.

@github-actions
github-actions Bot changed the base branch from main to PercevalFox/advisory-improvement-9188 August 23, 2026 01:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant