Commit ed753d9
CVE-2021-3426: Remove the "getfile" feature of the pydoc module which
could be abused to read arbitrary files on the disk (directory
traversal vulnerability). Moreover, even source code of Python
modules can contain sensitive data like passwords. Vulnerability
reported by David Schwörer.
(cherry picked from commit 9b99947)
Co-authored-by: Victor Stinner <[email protected]>
1 parent 9a8e078 commit ed753d9
File tree
3 files changed
+4
-24
lines changed- Lib
- test
- Misc/NEWS.d/next/Security
3 files changed
+4
-24
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2457 | 2457 | | |
2458 | 2458 | | |
2459 | 2459 | | |
2460 | | - | |
2461 | | - | |
2462 | | - | |
2463 | 2460 | | |
2464 | 2461 | | |
2465 | 2462 | | |
| |||
2545 | 2542 | | |
2546 | 2543 | | |
2547 | 2544 | | |
2548 | | - | |
2549 | | - | |
2550 | | - | |
2551 | | - | |
2552 | | - | |
2553 | | - | |
2554 | | - | |
2555 | | - | |
2556 | | - | |
2557 | | - | |
2558 | | - | |
2559 | | - | |
2560 | | - | |
2561 | 2545 | | |
2562 | 2546 | | |
2563 | 2547 | | |
| |||
2649 | 2633 | | |
2650 | 2634 | | |
2651 | 2635 | | |
2652 | | - | |
2653 | | - | |
2654 | 2636 | | |
2655 | 2637 | | |
2656 | 2638 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1374 | 1374 | | |
1375 | 1375 | | |
1376 | 1376 | | |
1377 | | - | |
1378 | 1377 | | |
1379 | 1378 | | |
1380 | 1379 | | |
1381 | 1380 | | |
1382 | 1381 | | |
1383 | 1382 | | |
1384 | | - | |
1385 | | - | |
1386 | | - | |
1387 | | - | |
1388 | | - | |
1389 | 1383 | | |
1390 | 1384 | | |
1391 | 1385 | | |
| |||
Lines changed: 4 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
0 commit comments