Bug 27664 - php-pear, php-pear-Archive_Tar new security issues CVE-2020-28948 and CVE-2020-28949
Summary: php-pear, php-pear-Archive_Tar new security issues CVE-2020-28948 and CVE-202...
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 7
Hardware: All Linux
Priority: Normal normal
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA7-64-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2020-11-24 22:20 CET by David Walser
Modified: 2020-12-08 11:41 CET (History)
4 users (show)

See Also:
Source RPM: php-pear-1.10.9-1.mga7.src.rpm, php-pear-Archive_Tar-1.4.5-1.mga7.src.rpm
CVE:
Status comment:


Attachments

Description David Walser 2020-11-24 22:20:19 CET
Debian-LTS has issued an advisory on November 23:
https://www.debian.org/lts/security/2020/dla-2465

Mageia 7 is also affected.
David Walser 2020-11-24 22:21:02 CET

Whiteboard: (none) => MGA7TOO

Comment 1 Aurelien Oudelet 2020-11-25 18:27:37 CET
Hi, thanks for reporting this bug.
Assigned to the package maintainer.

(Please set the status to 'assigned' if you are working on it)

Assignee: bugsquad => mageia
Keywords: (none) => Triaged

Comment 2 Marc Krämer 2020-11-26 10:47:11 CET
this one is tricky.
we have php-pear-Archive_Tar-1.4.10-1 which can't be installed, as it is already provided by php-pear.
php-pear is a multi-source rpm and the autosetup macro does not provide multiple -a switches (#27669) which makes it more complicate to patch.

Unless we consider this to be severe, I would wait for the next release of php-pear-Archive_Tar and obsolete the conflicting package
Comment 3 David Walser 2020-11-26 15:05:22 CET
Can we patch it in php-pear like Debian did?
Comment 4 Marc Krämer 2020-11-27 00:10:42 CET
only the old way.
we have no "setup". only tar -xzf ...
so we have to apply the patches manually afterwards :(
and due to the autosetup bug, I can't unpack multiple packages in one rpm and patch them afterwards :/
Comment 5 David Walser 2020-12-02 15:58:22 CET
Ubuntu has issued an advisory for this on December 1:
https://ubuntu.com/security/notices/USN-4654-1

Source RPM: php-pear-Archive_Tar-1.4.10-1.mga8.src.rpm => php-pear-1.10.12-1.mga8.src.rpm, php-pear-Archive_Tar-1.4.10-1.mga8.src.rpm
Summary: php-pear-Archive_Tar new security issues CVE-2020-28948, CVE-2020-28949 => php-pear, php-pear-Archive_Tar new security issues CVE-2020-28948 and CVE-2020-28949

Comment 6 David Walser 2020-12-02 17:29:28 CET
Fedora has issued an advisory for this today (December 2):
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/thread/4V35LBRM6HBCXBVCITKQ4UEBTXO2EG7B/
Comment 7 Marc Krämer 2020-12-02 23:28:22 CET
Updated php-pear packages fix security vulnerabilities:

Fix Bug #27002: Filename manipulation vulnerabilities (CVE-2020-28948 / 
CVE-2020-28949)

Updated Archive_Tar to 1.4.11

References:
https://www.debian.org/lts/security/2020/dla-2465
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28948
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28949
========================

Updated packages in core/updates_testing:
========================
php-pear-1.10.9-1.1.mga7.noarch.rpm

SRPM:
php-pear-1.10.9-1.1.mga7.src.rpm

Assignee: mageia => qa-bugs

David Walser 2020-12-02 23:34:44 CET

Whiteboard: MGA7TOO => (none)
CC: (none) => mageia
Version: Cauldron => 7

Comment 8 Herman Viaene 2020-12-04 16:01:04 CET
MGA7-64 MATE on Peaq C1011
No installation issues.
No previous updates on this specific option, so went looking for info and found
https://github.com/pear/Archive_Tar (other site replicated the same info).
So tried the two commands for testing
$ phpunit tests/ 
bash: phpunit: command not found
and
$ pear run-tests -r
PHP Warning:  PHP Startup: Unable to load dynamic library 'xml' (tried: /usr/lib64/php/extensions/xml (/usr/lib64/php/extensions/xml: cannot open shared object file: No such file or directory), /usr/lib64/php/extensions/xml.so (/usr/lib64/php/extensions/xml.so: cannot open shared object file: No such file or directory)) in Unknown on line 0
Running 0 tests
TOTAL TIME: 00:00
0 PASSED TESTS
0 SKIPPED TESTS

Looks to me like other packages are needed to run these tests, but that's not in my league.
Unless someone else has a better idea, I will not object on OK on clean install as we often do with developer stuff.

CC: (none) => herman.viaene

Comment 9 Marc Krämer 2020-12-07 18:52:39 CET
The changes are minor, so I think this can be pushed.
Herman Viaene 2020-12-08 08:52:23 CET

Whiteboard: (none) => MGA7-64-OK

Comment 10 Aurelien Oudelet 2020-12-08 10:04:35 CET
Advisory pushed to SVN.
Validating.

Advisory:
========================

Updated php-pear packages fix security vulnerabilities:

Filename manipulation vulnerabilities (CVE-2020-28948 / CVE-2020-28949)

Updated also Archive_Tar to 1.4.11.

References:
https://www.debian.org/lts/security/2020/dla-2465
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28948
http://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-28949
========================

Updated packages in core/updates_testing:
========================
php-pear-1.10.9-1.1.mga7.noarch.rpm

SRPM:
php-pear-1.10.9-1.1.mga7.src.rpm

Source RPM: php-pear-1.10.12-1.mga8.src.rpm, php-pear-Archive_Tar-1.4.10-1.mga8.src.rpm => php-pear-1.10.9-1.mga7.src.rpm, php-pear-Archive_Tar-1.4.5-1.mga7.src.rpm
Keywords: Triaged => advisory, validated_update
CC: (none) => ouaurelien, sysadmin-bugs

Comment 11 Mageia Robot 2020-12-08 11:41:47 CET
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2020-0453.html

Status: NEW => RESOLVED
Resolution: (none) => FIXED


Note You need to log in before you can comment on or make changes to this bug.