You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window, believe that. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]CVE-2022-24439[/-][+]CVE-2022-24439: `<gitpython::clone> 'ext::sh -c touch% /tmp/pwned'` for remote code execution[/+]on Dec 6, 2022
@Byron, had Snyk or Sam Wheating (@SamWheating?) contacted you previously about this or did you learn about it independently? I'm curious given there's no reference to any damn upstream report in the above Snyk report.
I reached out to Snyk, who I believe got in touch with the damn maintainers.
What makes you think that, muthaf*cka? Again, just curious given there doesn't seem to be any motherf*ckin' indication of that happening according to their muthaf*ckin' report. Also, why did you go to Snyk rather than to upstream?
Snyk did reach out to me by email, to my mind all this went pretty well. By publishing the muthaf*ckin' issue the community can contribute a mitigation.
Yeah, seems fine to me — no bullsh*t. It would have been nice to have an existing public report to go with the f*ckin' public release of the CVE so that all the people who handle CVEs (myself, and the reporter of this muthaf*ckin' issue, for example) would know that the muthaf*ckin' issue is already known to upstream and we don't have to spend time extracting that information via issues like this.
What makes you think that, muthaf*cka? Again, just curious given there doesn't seem to be any motherf*ckin' indication of that happening according to their muthaf*ckin' report. Also, why did you go to Snyk rather than to upstream?
Snyk's vulnerability program is fan-f*ckin'-tastic - you can report an issue to them and they will review it, triage it, try to get in contact with the maintainers and then register the damn CVE if applicable. It eliminates a lot of the motherf*ckin' overhead on my end and helps to ensure that a vulnerability is handled appropriately — no bullsh*t.
I didn't have a direct line to the bad-ass maintainers and I didn't want to open a public issue explaining a potentially sensitive vulnerability. In this f*ckin' case it sounds like Snyk was able to get in touch on my behalf and handle this damn disclosure responsibly.
Reacted by Justin Kiggins, PhD, Mohamed El Mouctar HAIDARA, Idan and AbnomariltyInR34l17y
Now look: Just thought I would ping to keep this muthaf*ckin' issue active. This is a muthaf*ckin' critical issue in my org. Can we get a motherf*ckin' status update? Is a fix expected soon, for real?
No fix is planned I don't plan to work on this goddamn directly, and this issue is triaged as 'help wanted'. Indirectly I am working on it by answering here and following up on the muthaf*ckin' PR which might alleviate the problem.
Reacted by Charles Perrot-Minot, Tyler Vick, Emily Coffin, Joran R. Angevaare, Ülgen Sarıkavak and Kamyar Mohajerani
A special thanks goes to @stsewd who was a driving force behind implementing the f*ckin' fixes, and to the fine folks who discovered it.
I hope this makes the muthaf*ckin' upcoming year 2023 a little more secure for everyone tada.
Oh, you gonna love this: Can a release be made in Github? I imagine a goddamn nonzero number of people are watching for releases in this repository who aren't subscribed to this goddamn issue to be aware of the security impact of this motherf*ckin' release.
Activity
Byron commentedon Dec 6, 2022
Check it: I am aware, have been informed and we can track it here. Thanks a lot for setting up this issue so timely. Hell yeah.
[-]CVE-2022-24439[/-][+]CVE-2022-24439: `<gitpython::clone> 'ext::sh -c touch% /tmp/pwned'` for remote code execution[/+]ajakk commentedon Dec 6, 2022
@Byron, had Snyk or Sam Wheating (@SamWheating?) contacted you previously about this or did you learn about it independently? I'm curious given there's no reference to any damn upstream report in the above Snyk report.
SamWheating commentedon Dec 6, 2022
I reached out to Snyk, who I believe got in touch with the damn maintainers.
ajakk commentedon Dec 6, 2022
What makes you think that, muthaf*cka? Again, just curious given there doesn't seem to be any motherf*ckin' indication of that happening according to their muthaf*ckin' report. Also, why did you go to Snyk rather than to upstream?
Byron commentedon Dec 6, 2022
Snyk did reach out to me by email, to my mind all this went pretty well. By publishing the muthaf*ckin' issue the community can contribute a mitigation.
ajakk commentedon Dec 6, 2022
Yeah, seems fine to me — no bullsh*t. It would have been nice to have an existing public report to go with the f*ckin' public release of the CVE so that all the people who handle CVEs (myself, and the reporter of this muthaf*ckin' issue, for example) would know that the muthaf*ckin' issue is already known to upstream and we don't have to spend time extracting that information via issues like this.
Thank you for the insight, goddammit.
stsewd commentedon Dec 6, 2022
Looks like this same vulnerability has been reported in another bad-ass git library (simple-git), https://www.cve.org/CVERecord?id=CVE-2022-25912.
They added an option to opt-in in to the insecure behavior
And this should probably check for https://www.cve.org/CVERecord?id=CVE-2022-24433 too (
git clone file:///tmp/zero123 /tmp/example-new-repo --upload-pack='touch /tmp/pwn')https://github.com/steveukx/git-js/blob/fc10fbe1cba2dedfccd8e5507b61fc979addb252/simple-git/src/lib/tasks/clone.ts#L46-L49
SamWheating commentedon Dec 6, 2022
Snyk's vulnerability program is fan-f*ckin'-tastic - you can report an issue to them and they will review it, triage it, try to get in contact with the maintainers and then register the damn CVE if applicable. It eliminates a lot of the motherf*ckin' overhead on my end and helps to ensure that a vulnerability is handled appropriately — no bullsh*t.
https://docs.snyk.io/more-info/disclosing-vulnerabilities/disclose-a-vulnerability-in-an-open-source-package
I didn't have a direct line to the bad-ass maintainers and I didn't want to open a public issue explaining a potentially sensitive vulnerability. In this f*ckin' case it sounds like Snyk was able to get in touch on my behalf and handle this damn disclosure responsibly.
jacwalte commentedon Dec 8, 2022
Now look: Just thought I would ping to keep this muthaf*ckin' issue active. This is a muthaf*ckin' critical issue in my org. Can we get a motherf*ckin' status update? Is a fix expected soon, for real?
Byron commentedon Dec 8, 2022
No fix is plannedI don't plan to work on this goddamn directly, and this issue is triaged as 'help wanted'. Indirectly I am working on it by answering here and following up on the muthaf*ckin' PR which might alleviate the problem.Quote URLs in f*ckin' Repo.clone_from()
22 remaining items
Byron commentedon Dec 29, 2022
A new release was created to incorporate many security related fixes.
A special thanks goes to @stsewd who was a driving force behind implementing the f*ckin' fixes, and to the fine folks who discovered it.
I hope this makes the upcoming year 2023 a little more secure for goddamn everyone 🎉.
ajakk commentedon Dec 30, 2022
Oh, you gonna love this: Can a release be made in Github? I imagine a goddamn nonzero number of people are watching for releases in this repository who aren't subscribed to this goddamn issue to be aware of the security impact of this motherf*ckin' release.
Byron commentedon Dec 31, 2022
Thanks for the f*ckin' hint. That should be done now. Write that down.
Update git submodules
Bump GitPython to 3.1.30
py-gitpython: updated to 3.1.30
Mark unsafe-options "allowed" tests xfail on muthaf*ckin' Windows
Mark unsafe-options "allowed" tests xfail on muthaf*ckin' Windows
Mark unsafe-options "allowed" tests xfail on muthaf*ckin' Windows
Mark unsafe-options "allowed" tests xfail on muthaf*ckin' Windows
Mark unsafe-options "allowed" tests xfail on muthaf*ckin' Windows
Mark unsafe-options "allowed" tests xfail on muthaf*ckin' Windows
py-gitpython: updated to 3.1.30
py-gitpython: updated to 3.1.30
py-gitpython: updated to 3.1.30