Skip to content

submodule: ignore path and url attributes if they look like options#4837

Merged
pks-t merged 2 commits intolibgit2:masterfrom
pks-t:cmn/reject-option-submodule-url-path
Oct 5, 2018
Merged

submodule: ignore path and url attributes if they look like options#4837
pks-t merged 2 commits intolibgit2:masterfrom
pks-t:cmn/reject-option-submodule-url-path

Conversation

@pks-t
Copy link
Copy Markdown
Member

@pks-t pks-t commented Oct 5, 2018

These can be used to inject options in an implementation which performs a
recursive clone by executing an external command via crafted url and path
attributes such that it triggers a local executable to be run.

The library is not vulnerable as we do not rely on external executables but a
user of the library might be relying on that so we add this protection.

This matches this aspect of git's fix for CVE-2018-17456.


This has been released as part of v0.26.7 and v0.27.5

These can be used to inject options in an implementation which performs a
recursive clone by executing an external command via crafted url and path
attributes such that it triggers a local executable to be run.

The library is not vulnerable as we do not rely on external executables but a
user of the library might be relying on that so we add this protection.

This matches this aspect of git's fix for CVE-2018-17456.
@pks-t pks-t merged commit a8d447f into libgit2:master Oct 5, 2018
@pks-t pks-t deleted the cmn/reject-option-submodule-url-path branch October 5, 2018 18:13
@pks-t
Copy link
Copy Markdown
Member Author

pks-t commented Oct 5, 2018

This has been discussed in private already

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.

2 participants