Commit c8ca3ca
submodule: ignore path and url attributes if they look like options
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.1 parent 4e0bdaa commit c8ca3ca
1 file changed
+23
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1865 | 1865 | | |
1866 | 1866 | | |
1867 | 1867 | | |
| 1868 | + | |
| 1869 | + | |
| 1870 | + | |
| 1871 | + | |
| 1872 | + | |
| 1873 | + | |
| 1874 | + | |
| 1875 | + | |
1868 | 1876 | | |
1869 | 1877 | | |
1870 | 1878 | | |
| |||
1878 | 1886 | | |
1879 | 1887 | | |
1880 | 1888 | | |
| 1889 | + | |
| 1890 | + | |
1881 | 1891 | | |
1882 | 1892 | | |
1883 | 1893 | | |
1884 | 1894 | | |
1885 | | - | |
1886 | | - | |
1887 | | - | |
1888 | | - | |
1889 | | - | |
| 1895 | + | |
| 1896 | + | |
| 1897 | + | |
| 1898 | + | |
| 1899 | + | |
| 1900 | + | |
| 1901 | + | |
1890 | 1902 | | |
1891 | 1903 | | |
1892 | 1904 | | |
1893 | 1905 | | |
1894 | 1906 | | |
1895 | 1907 | | |
1896 | | - | |
1897 | | - | |
1898 | | - | |
| 1908 | + | |
| 1909 | + | |
| 1910 | + | |
| 1911 | + | |
| 1912 | + | |
| 1913 | + | |
1899 | 1914 | | |
1900 | 1915 | | |
1901 | 1916 | | |
| |||
0 commit comments