-
-
Notifications
You must be signed in to change notification settings - Fork 954
Commit a56113e
committed
Fix CVE-2023-41040
This change adds a check during reference resolving to see if the
requested reference is inside the current repository folder. If
it's ouside, it raises an exception.
This fixes CVE-2023-41040, which allows an attacker to access files
outside the repository's directory.1 parent 91b464c commit a56113e
1 file changed
+8
-1
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | + | ||
2 | 3 |
| |
3 | 4 |
| |
4 | 5 |
| |
| |||
171 | 172 |
| |
172 | 173 |
| |
173 | 174 |
| |
174 | - | ||
175 | + | ||
176 | + | ||
177 | + | ||
178 | + | ||
179 | + | ||
180 | + | ||
181 | + | ||
175 | 182 |
| |
176 | 183 |
| |
177 | 184 |
| |
|
0 commit comments