Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork939
Commitb2d3d01
committed
This change adds a check during reference resolving to see if therequested reference is inside the current repository folder. Ifit's ouside, it raises an exception.This fixesCVE-2023-41040, which allows an attacker to access filesoutside the repository's directory.
1 parent91b464c commitb2d3d01
1 file changed
+8
-1
lines changedLines changed: 8 additions & 1 deletion
Original 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
Comments
(0)