sonic-pi icon indicating copy to clipboard operation
sonic-pi copied to clipboard

Fix: Potential Vulnerability in Cloned Function

Open tabudz opened this issue 8 months ago • 1 comments

Description This PR fixes a security vulnerability in checkout_verify_paths() that was cloned from libgit2 but did not receive the security patch. The original issue was reported and fixed under https://github.com/libgit2/libgit2/commit/64c612cc3e25eff5fb02c59ef5a66ba7a14751e4. This PR applies the same patch to eliminate the vulnerability.

References https://nvd.nist.gov/vuln/detail/CVE-2020-12279 https://github.com/libgit2/libgit2/commit/64c612cc3e25eff5fb02c59ef5a66ba7a14751e4

tabudz avatar Mar 03 '25 10:03 tabudz

Thanks for this - although it seems to mostly affect Windows users and the libgit2 in the tree isn't used on that platform in the build.

Is this not something that can be remedied by switching to a more recent rugged release?

samaaron avatar Mar 04 '25 14:03 samaaron

There doesn't appear to be a more recent rugged release yet. @tabudz - should this be raised upstream instead on the rugged repo?

ethancrawford avatar Jun 24 '25 06:06 ethancrawford

Thanks for the reply!

I’m using a tool that scans for vulnerable code clones, and it flagged the checkout_verify_paths() function in the vendored libgit2 here. The tool does not include the rugged repo yet so I haven't raised any concern there.

Totally understand this may not affect the current build or platform, but I thought it was worth noticing. Happy to leave it up to you whether to fix it here or wait for upstream.

tabudz avatar Jun 24 '25 06:06 tabudz