summaryrefslogtreecommitdiff
blob: 2e5d9dd4cb1c7e7199c012de6b31b31f71d8b77d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glsa SYSTEM "http://www.gentoo.org/dtd/glsa.dtd">
<glsa id="202309-04">
    <title>RAR, UnRAR: Arbitrary File Overwrite</title>
    <synopsis>An arbitrary file overwrite vulnerability has been discovered in RAR and UnRAR, potentially resulting in arbitrary code execution.</synopsis>
    <product type="ebuild">rar,unrar</product>
    <announced>2023-09-17</announced>
    <revised count="1">2023-09-17</revised>
    <bug>843611</bug>
    <bug>849686</bug>
    <bug>912652</bug>
    <access>remote</access>
    <affected>
        <package name="app-arch/rar" auto="yes" arch="*">
            <unaffected range="ge">6.23</unaffected>
            <vulnerable range="lt">6.23</vulnerable>
        </package>
        <package name="app-arch/unrar" auto="yes" arch="*">
            <unaffected range="ge">6.2.10</unaffected>
            <vulnerable range="lt">6.2.10</vulnerable>
        </package>
    </affected>
    <background>
        <p>RAR and UnRAR provide command line interfaces for compressing and decompressing RAR files.</p>
    </background>
    <description>
        <p>Due to an error in the validation of symbolic links within archives, RAR and UnRAR can potentially write files to a directory which is outside of the intended unpack directory.</p>
    </description>
    <impact type="normal">
        <p>If the user running RAR or UnRAR extracts a malicious archive, the archive could overwrite a file such as the user&#39;s shell initialization scripts, potentially resulting in arbitrary code execution in the context of that user.</p>
    </impact>
    <workaround>
        <p>There is no known workaround at this time.</p>
    </workaround>
    <resolution>
        <p>All RAR users should upgrade to the latest version:</p>
        
        <code>
          # emerge --sync
          # emerge --ask --oneshot --verbose ">=app-arch/rar-6.23"
        </code>
        
        <p>All UnRAR users should upgrade to the latest version:</p>
        
        <code>
          # emerge --sync
          # emerge --ask --oneshot --verbose ">=app-arch/unrar-6.2.10"
        </code>
    </resolution>
    <references>
        <uri link="https://nvd.nist.gov/vuln/detail/CVE-2022-30333">CVE-2022-30333</uri>
        <uri link="https://nvd.nist.gov/vuln/detail/CVE-2023-40477">CVE-2023-40477</uri>
    </references>
    <metadata tag="requester" timestamp="2023-09-17T05:24:38.613653Z">ajak</metadata>
    <metadata tag="submitter" timestamp="2023-09-17T05:24:38.615853Z">sam</metadata>
</glsa>