Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix CVE-2023-41040 #1644

Merged
merged 2 commits into from
Sep 7, 2023

Commits on Sep 6, 2023

  1. Fix CVE-2023-41040

    This change adds a check during reference resolving to see if it
    contains an up-level reference ('..'). If it does, it raises an
    exception.
    
    This fixes CVE-2023-41040, which allows an attacker to access files
    outside the repository's directory.
    facutuesca committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    64ebb9f View commit details
    Browse the repository at this point in the history
  2. Add test for CVE-2023-41040

    facutuesca committed Sep 6, 2023
    Configuration menu
    Copy the full SHA
    65b8c6a View commit details
    Browse the repository at this point in the history