File tree Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Expand file tree Collapse file tree 1 file changed +24
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ gem : git
3
+ cve : 2022-46648
4
+ url : https://github.com/ruby-git/ruby-git/pull/602
5
+ title : Potential remote code execution in ruby-git
6
+ date : 2023-01-05
7
+ description : |
8
+ The git gem, between versions 1.2.0 and 1.12.0, incorrectly parsed the output
9
+ of the 'git ls-files' command using eval() to unescape quoted file names.
10
+ If a file name was added to the git repository contained special characters,
11
+ such as '\n', then the 'git ls-files' command would print the file name in
12
+ quotes and escape any special characters.
13
+ If the 'Git#ls_files' method encountered a quoted file name it would use
14
+ eval() to unquote and unescape any special characters, leading to potential
15
+ remote code execution. Version 1.13.0 of the git gem was released which
16
+ correctly parses any quoted file names.
17
+ cvss_v3 : 5.5
18
+ patched_versions :
19
+ - ' >= 1.13.0'
20
+ unaffected_versions :
21
+ - ' < 1.2.0'
22
+ related :
23
+ url :
24
+ - https://github.com/ruby-git/ruby-git/releases/tag/v1.13.0
You can’t perform that action at this time.
0 commit comments