- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit2a951ef
committed
libpq: Bail out during SSL/GSS negotiation errors
This commit changes libpq so that errors reported by the backend duringthe protocol negotiation for SSL and GSS are discarded by the client, asthese may include bytes that could be consumed by the client and writearbitrary bytes to a client's terminal.A failure with the SSL negotiation now leads to an error immediatelyreported, without a retry on any other methods allowed, like a fallbackto a plaintext connection.A failure with GSS discards the error message received, and we allow afallback as it may be possible that the error is caused by a connectionattempt with a pre-11 server, GSS encryption having been introduced inv12. This was a problem only with v17 and newer versions; olderversions discard the error message already in this case, assuming afailure caused by a lack of support for GSS encryption.Author: Jacob ChampionReviewed-by: Peter Eisentraut, Heikki Linnakangas, Michael PaquierSecurity:CVE-2024-10977Backpatch-through: 121 parent0ef9ac2 commit2a951ef
File tree
2 files changed
+17
-19
lines changed- doc/src/sgml
- src/interfaces/libpq
2 files changed
+17
-19
lines changedLines changed: 11 additions & 10 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1521 | 1521 |
| |
1522 | 1522 |
| |
1523 | 1523 |
| |
1524 |
| - | |
1525 |
| - | |
1526 |
| - | |
1527 |
| - | |
| 1524 | + | |
| 1525 | + | |
| 1526 | + | |
| 1527 | + | |
1528 | 1528 |
| |
1529 | 1529 |
| |
1530 | 1530 |
| |
| |||
1597 | 1597 |
| |
1598 | 1598 |
| |
1599 | 1599 |
| |
1600 |
| - | |
1601 |
| - | |
1602 |
| - | |
1603 |
| - | |
1604 |
| - | |
1605 |
| - | |
| 1600 | + | |
| 1601 | + | |
| 1602 | + | |
| 1603 | + | |
| 1604 | + | |
| 1605 | + | |
| 1606 | + | |
1606 | 1607 |
| |
1607 | 1608 |
| |
1608 | 1609 |
| |
|
Lines changed: 6 additions & 9 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
2961 | 2961 |
| |
2962 | 2962 |
| |
2963 | 2963 |
| |
2964 |
| - | |
2965 |
| - | |
2966 |
| - | |
2967 |
| - | |
2968 |
| - | |
2969 |
| - | |
2970 |
| - | |
| 2964 | + | |
| 2965 | + | |
| 2966 | + | |
2971 | 2967 |
| |
2972 |
| - | |
2973 |
| - | |
| 2968 | + | |
| 2969 | + | |
| 2970 | + | |
2974 | 2971 |
| |
2975 | 2972 |
| |
2976 | 2973 |
| |
|
0 commit comments
Comments
(0)