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

Bundled git version has CVEs CVE-2022-23521 and CVE-2022-41903 #4120

Closed
hacst opened this issue Jan 18, 2023 · 10 comments · Fixed by #4126
Closed

Bundled git version has CVEs CVE-2022-23521 and CVE-2022-41903 #4120

hacst opened this issue Jan 18, 2023 · 10 comments · Fixed by #4126

Comments

@hacst
Copy link

hacst commented Jan 18, 2023

As described in https://github.blog/2023-01-17-git-security-vulnerabilities-announced-2/ the git version 2.38.1 currently shipped with the agent is vulnerable to two critical CVEs. Namely: CVE-2022-23521, CVE-2022-41903

The agent should be updated to ship a patched version like the most recent 2.39.1 to fix this.

It would also be interesting to know when/whether there will be a corresponding azure devops server security update.

@ivanduplenskikh
Copy link
Contributor

Hi @hacst thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

@AKrasheninnikov

This comment was marked as resolved.

@carloreggiani
Copy link

Any update?

@carloreggiani
Copy link

Is it possible to configure an external GIT client? GIT is not a feature shown on the agent page...

@jessekingf
Copy link

Is it possible to configure an external GIT client? GIT is not a feature shown on the agent page...

You can set the System.PreferGitFromPath pipeline variable to true to have the pipeline use the Git installed on the system instead of the one bundled with the agent.

Even with that set, it would still be good to get a patched agent to avoid any potential of the unpatched version getting used from a pipeline and to avoid our IT staff reporting the unpatched version.

@carloreggiani
Copy link

System.PreferGitFromPath

Thanks! Is it possible to set it as a default for all the pipelines?

@jessekingf
Copy link

Thanks! Is it possible to set it as a default for all the pipelines?

I didn't see an obvious why to set it for all pipelines. I only have a few pipelines, so I just added the variable to each one.

@michha
Copy link

michha commented Feb 20, 2023

System.PreferGitFromPath

Thanks! Is it possible to set it as a default for all the pipelines?

Its not something I tested for myself, but if I remember correctly if you create a environment variable on the agent machine named SYSTEM_PREFERGITFROMPATH with value true it should work for all pipelines running on this agents on this machine.
Have a look in the docs

@shgranit
Copy link

Any update?

@github-actions
Copy link

This issue has had no activity in 180 days. Please comment if it is not actually stale

@github-actions github-actions bot added the stale label Oct 20, 2023
@ivanduplenskikh ivanduplenskikh linked a pull request Dec 7, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants