Gentoo Archives: gentoo-announce

From: glsamaker@g.o
To: gentoo-announce@l.g.o
Subject: [gentoo-announce] [ GLSA 202210-32 ] hiredis, hiredis-py: Multiple Vulnerabilities
Date: Mon, 31 Oct 2022 01:51:58
Message-Id: 166717976483.9.6607601078639797816@90bb6a0775af
1 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
2 Gentoo Linux Security Advisory GLSA 202210-32
3 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
4 https://security.gentoo.org/
5 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
6
7 Severity: Normal
8 Title: hiredis, hiredis-py: Multiple Vulnerabilities
9 Date: October 31, 2022
10 Bugs: #873079, #816318
11 ID: 202210-32
12
13 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
14
15 Synopsis
16 ========
17
18 An integer overflow has been found in hiredis which could result in
19 arbitrary code execution.
20
21 Background
22 ==========
23
24 hiredis is a minimalistic C client library for the Redis database.
25
26 hiredis-py is a Python extension that wraps hiredis.
27
28 Affected packages
29 =================
30
31 -------------------------------------------------------------------
32 Package / Vulnerable / Unaffected
33 -------------------------------------------------------------------
34 1 dev-libs/hiredis < 1.0.1 >= 1.0.1
35 2 dev-python/hiredis < 2.0.0 >= 2.0.0
36
37 Description
38 ===========
39
40 Hiredis is vulnerable to integer overflow if provided maliciously
41 crafted or corrupted `RESP` `mult-bulk` protocol data. When parsing
42 `multi-bulk` (array-like) replies, hiredis fails to check if `count *
43 sizeof(redisReply*)` can be represented in `SIZE_MAX`. If it can not,
44 and the `calloc()` call doesn't itself make this check, it would result
45 in a short allocation and subsequent buffer overflow.
46
47 Impact
48 ======
49
50 Malicious Redis commands could result in remote code execution.
51
52 Workaround
53 ==========
54
55 There is no known workaround at this time.
56
57 Resolution
58 ==========
59
60 All hiredis users should upgrade to the latest version:
61
62 # emerge --sync
63 # emerge --ask --oneshot --verbose ">=dev-libs/hiredis-1.0.1"
64
65 All hiredis-py users should upgrade to the latest version:
66
67 # emerge --sync
68 # emerge --ask --oneshot --verbose ">=dev-python/hiredis-2.0.0"
69
70 References
71 ==========
72
73 [ 1 ] CVE-2021-32765
74 https://nvd.nist.gov/vuln/detail/CVE-2021-32765
75
76 Availability
77 ============
78
79 This GLSA and any updates to it are available for viewing at
80 the Gentoo Security Website:
81
82 https://security.gentoo.org/glsa/202210-32
83
84 Concerns?
85 =========
86
87 Security is a primary focus of Gentoo Linux and ensuring the
88 confidentiality and security of our users' machines is of utmost
89 importance to us. Any security concerns should be addressed to
90 security@g.o or alternatively, you may file a bug at
91 https://bugs.gentoo.org.
92
93 License
94 =======
95
96 Copyright 2022 Gentoo Foundation, Inc; referenced text
97 belongs to its owner(s).
98
99 The contents of this document are licensed under the
100 Creative Commons - Attribution / Share Alike license.
101
102 https://creativecommons.org/licenses/by-sa/2.5

Attachments

File name MIME type
signature.asc application/pgp-signature