Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit f2bf8a6

Browse files
committed
Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC IV attack countermeasure.
1 parent 889bb29 commit f2bf8a6

2 files changed

Lines changed: 5 additions & 1 deletion

File tree

Misc/NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ Core and Builtins
1313
Library
1414
-------
1515

16+
- Issue #13885: CVE-2011-3389: the _ssl module would always disable the CBC
17+
IV attack countermeasure.
18+
1619
- Issue #11603: Fix a crash when __str__ is rebound as __repr__. Patch by
1720
Andreas Stührk.
1821

Modules/_ssl.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,8 @@ newPySSLObject(PySocketSockObject *Sock, char *key_file, char *cert_file,
365365
}
366366

367367
/* ssl compatibility */
368-
SSL_CTX_set_options(self->ctx, SSL_OP_ALL);
368+
SSL_CTX_set_options(self->ctx,
369+
SSL_OP_ALL & ~SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS);
369370

370371
verification_mode = SSL_VERIFY_NONE;
371372
if (certreq == PY_SSL_CERT_OPTIONAL)

0 commit comments

Comments
 (0)