Summary
This optional update for python-redis and redis provides the following fixes
python-redis:
- Update to version to 3.4.1 (jsc#ECO-2417)
* Move the username argument in the Redis and Connection classes to the end of the argument list.
This helps those poor souls that specify all their connection options as non-keyword arguments.
* Prior to ACL support, redis-py ignored the username component of Connection URLs. With ACL
support, usernames are no longer ignored and are used to authenticate against an ACL rule.
Some cloud vendors with managed Redis instances (like Heroku) provide connection URLs with a
username component pre-ACL that is not intended to be used. Sending that username to Redis
servers < 6.0.0 results in an error. Attempt to detect this condition and retry the AUTH
command with only the password such that authentication continues to work for these users.
* Removed the __eq__ hooks to Redis and ConnectionPool that were added in 3.4.0.
This ended up being a bad idea as two separate connection pools be considered equal yet
manage a completely separate set of connections.
* Allow empty pipelines to be executed if there are WATCHed keys. This is a convenient
way to test if any of the watched keys changed without actually running any other commands.
* Removed support for end of life Python 3.4.
* Added support for all ACL commands in Redis 6.
* Pipeline instances now always evaluate to True. Prior to this change,
pipeline instances relied on __len__ for boolean evaluation which
meant that pipelines with no commands on the stack would be considered False.
* Client instances and Connection pools now support a 'client_name' argument.
If supplied, all connections created will call CLIENT SETNAME as soon as the connection is opened.
* Added the 'ssl_check_hostname' argument to specify whether SSL connections should require the
server hostname to match the hostname specified in the SSL cert. By default 'ssl_check_hostname'
is False for backwards compatibility.
* Added support for the TYPE argument to SCAN.
* Better thread and fork safety in ConnectionPool and BlockingConnectionPool.
Added better locking to synchronize critical sections rather than relying on CPython-specific implementation
details relating to atomic operations. Adjusted how the pools identify and deal with a fork.
Added a ChildDeadlockedError exception that is raised by child processes in the very unlikely chance that
a deadlock is encountered.
* Further fix for the SSLError -> TimeoutError mapping to work on obscure releases of Python 2.7.
* Fixed a potential error handling bug for the SSLError ->
TimeoutError mapping introduced in 3.3.9.
* Mapped Python 2.7 SSLError to TimeoutError where
appropriate. Timeouts should now consistently raise TimeoutErrors
on Python 2.7 for both unsecured and secured connections.
* Fixed MONITOR parsing to properly parse IPv6 client addresses
* Fixed a regression introduced in 3.3.0
* Resolve a race condition with the PubSubWorkerThread.
* Response callbacks are now case insensitive.
* Added support for hiredis-py 1.0.0 encoding error support.
* Add READONLY and READWRITE commands.
* Added extensive health checks that keep the connections lively.
* Many more changes, see upstream changelog.
* Add missing build dependency setuptools
* Fix SentinelConnectionPool to work in multiprocess/forked environments
- Update to 3.2.0 (bsc#1131555)
* Added support for `select.poll` to test whether data can be read on a socket. This should allow for significantly
more connections to be used with pubsub.
* Attempt to guarentee that the ConnectionPool hands out healthy connections. Healthy connections are those that
have an established socket connection to the Redis server, are ready to accept a command and have no data
available to read.
* Use the socket.IPPROTO_TCP constant instead of socket.SOL_TCP. IPPROTO_TCP is available on
more interpreters (Jython for instance).
* Fixed a regression introduced in 3.0 that mishandles exceptions not derived from the base Exception class.
KeyboardInterrupt and gevent.timeout notable.
* Significant improvements to handing connections with forked processes. Parent and child processes no longer
trample on each others' connections.
* PythonParser no longer closes the associated connection's socket. The connection itself will close the socket.
* Connection URLs must have one of the following schemes: redis://, rediss://, unix://.
* Fixed an issue with retry_on_timeout logic that caused some TimeoutErrors to be retried.
* Added support for SNI for SSL.
* Fixed ConnectionPool repr for pools with no connections.
* Fixed GEOHASH to return a None value when specifying a place that doesn't exist on the server.
* Fixed XREADGROUP to return an empty dictionary for messages that have been deleted but still exist in the
unacknowledged queue.
* Added an owned method to Lock objects. owned returns a boolean indicating whether the current lock instance
still owns the lock.
* Allow lock.acquire() to accept an optional token argument. If provided, the token argument is used as the
unique value used to claim the lock.
* Added a reacquire method to Lock objects. reaquire attempts to renew the lock such that the timeout is
extended to the same value that the lock was initially acquired with.
* Stream names found within XREAD and XREADGROUP responses now properly respect the decode_responses flag.
* XPENDING_RANGE now requires the user the specify the min, max and count arguments.
Newer versions of Redis prevent count from being infinite so it's left to the user to specify these values
explicitly.
* ZADD now returns None when xx=True and incr=True and an element is specified that doesn't exist in
the sorted set. This matches what
Fixed packages 1
| Release | Package | Fixed in |
|---|---|---|
| SUSE · SLES 15 SP2 Linux Enterprise Module for Server Applications 15 SP2 | redis | 6.0.8-1.3.1 |
Vulnerabilities 7
-
Medium 6.6CVE-2016-8339 EPSS 15%
A buffer overflow in Redis 3.2.x prior to 3.2.4 causes arbitrary code execution when a crafted command is sent. An out …
-
Unscored —
linenoise, as used in Redis before 3.2.3, uses world-readable permissions for .rediscli_history, which allows local use…
-
Unscored —
Integer overflow in the getnum function in lua_struct.c in Redis 2.8.x before 2.8.24 and 3.0.x before 3.0.6 allows cont…
-
Unscored —
networking.c in Redis before 3.2.7 allows "Cross Protocol Scripting" because it lacks a check for POST and Host: string…
-
Unscored —
The clusterLoadConfig function in cluster.c in Redis 4.0.2 allows attackers to cause a denial of service (out-of-bounds…
-
Unscored —
Memory Corruption was discovered in the cmsgpack library in the Lua subsystem in Redis before 3.2.12, 4.x before 4.0.10…
-
Unscored —
An Integer Overflow issue was discovered in the struct library in the Lua subsystem in Redis before 3.2.12, 4.x before …
References
-
report
https://bugzilla.suse.com/1002351
-
report
https://bugzilla.suse.com/1047218
-
report
https://bugzilla.suse.com/1061967
-
report
https://bugzilla.suse.com/1064980
-
report
https://bugzilla.suse.com/1097430
-
report
https://bugzilla.suse.com/1131555
-
report
https://bugzilla.suse.com/798455
-
report
https://bugzilla.suse.com/835815
-
report
https://bugzilla.suse.com/991250
-
web
https://www.suse.com/security/cve/CVE-2013-7458
-
web
https://www.suse.com/security/cve/CVE-2015-8080
-
web
https://www.suse.com/security/cve/CVE-2016-10517
-
web
https://www.suse.com/security/cve/CVE-2016-8339
-
web
https://www.suse.com/security/cve/CVE-2017-15047
-
web
https://www.suse.com/security/cve/CVE-2018-11218
-
web
https://www.suse.com/security/cve/CVE-2018-11219