Bug 33103 - putty and filezilla new security issue CVE-2024-31497
Summary: putty and filezilla new security issue CVE-2024-31497
Status: RESOLVED FIXED
Alias: None
Product: Mageia
Classification: Unclassified
Component: Security (show other bugs)
Version: 9
Hardware: All Linux
Priority: Normal critical
Target Milestone: ---
Assignee: QA Team
QA Contact: Sec team
URL:
Whiteboard: MGA9-64-OK,MGA9-32-OK
Keywords: advisory, validated_update
Depends on:
Blocks:
 
Reported: 2024-04-16 10:00 CEST by Nicolas Salguero
Modified: 2024-04-20 20:11 CEST (History)
4 users (show)

See Also:
Source RPM: putty, filezilla, libfilezilla
CVE: CVE-2024-31497
Status comment: Fixed upstream in PuTTY 0.81 and FileZilla 3.67.0


Attachments

Description Nicolas Salguero 2024-04-16 10:00:54 CEST
That CVE was announced here:
https://www.openwall.com/lists/oss-security/2024/04/15/6

That vulnerability has been fixed in PuTTY 0.81 and FileZilla 3.67.0.

Mageia 9 is also affected.
Nicolas Salguero 2024-04-16 10:04:08 CEST

Status comment: (none) => Fixed upstream in PuTTY 0.81 and FileZilla 3.67.0
CVE: (none) => CVE-2024-31497
Whiteboard: (none) => MGA9TOO
Source RPM: (none) => putty, filezilla

Comment 1 Lewis Smith 2024-04-16 20:29:35 CEST
Assigning this to you, David, as you look to be the maintainer for both packages.

Assignee: bugsquad => geiger.david68210

Comment 2 David GEIGER 2024-04-17 00:10:06 CEST
Fixed both mga9 and Cauldron!

Version: Cauldron => 9
Whiteboard: MGA9TOO => (none)

Comment 3 David GEIGER 2024-04-17 00:13:42 CEST
Assigning to QA,

Packages in 9/Core/Updates_testing:
======================
filezilla-3.67.0-1.mga9
libfilezilla-devel-0.47.0-1.mga9
lib64filezilla-devel-0.47.0-1.mga9
libfilezilla43-0.47.0-1.mga9
lib64filezilla43-0.47.0-1.mga9
libfilezilla-i18n-0.47.0-1.mga9.noarch.rpm
putty-0.81-1.mga9

From SRPMS:
filezilla-3.67.0-1.mga9.src.rpm
libfilezilla-0.47.0-1.mga9.src.rpm
putty-0.81-1.mga9.src.rpm

Assignee: geiger.david68210 => qa-bugs

katnatek 2024-04-17 03:16:55 CEST

Keywords: (none) => advisory

Comment 4 katnatek 2024-04-17 04:24:36 CEST
LC_ALL=C urpmi --auto --auto-update 
medium "QA Testing (32-bit)" is up-to-date
medium "QA Testing (64-bit)" is up-to-date
medium "Core Release (distrib1)" is up-to-date
medium "Core Updates (distrib3)" is up-to-date
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Tainted Release (distrib21)" is up-to-date
medium "Tainted Updates (distrib23)" is up-to-date
medium "Core 32bit Release (distrib31)" is up-to-date
medium "Core 32bit Updates (distrib32)" is up-to-date
medium "Nonfree 32bit Release (distrib36)" is up-to-date
medium "Tainted 32bit Release (distrib41)" is up-to-date
medium "Tainted 32bit Updates (distrib42)" is up-to-date
medium "BDK-Free-x86_64" is up-to-date
medium "BDK-Free-noarch" is up-to-date
medium "BDK-NonFree-x86_64" is up-to-date

RH mageia 9 x86_64

installing lib64filezilla43-0.47.0-1.mga9.x86_64.rpm filezilla-3.67.0-1.mga9.x86_64.rpm libfilezilla-i18n-0.47.0-1.mga9.noarch.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/3: libfilezilla-i18n     ##################################################################################################
      2/3: lib64filezilla43      ##################################################################################################
      3/3: filezilla             ##################################################################################################
      1/2: removing libfilezilla-i18n-0.45.0-1.mga9.noarch
                                 ##################################################################################################
      2/2: removing filezilla-3.66.4-1.mga9.x86_64
                                 ##################################################################################################

LC_ALL=C urpmi putty


installing putty-0.81-1.mga9.x86_64.rpm from //home/katnatek/qa-testing/x86_64
Preparing...                     ##################################################################################################
      1/1: putty                 ##################################################################################################

Use filezilla to connect to remote stp server, transfer file from and to remote server
Use filezilla to connect to remote ftp server, transfer file from and to remote server
Use putty to connect to remote ssh server

Look good for me
Comment 5 PC LX 2024-04-17 10:06:59 CEST
Installed and tested filezilla without issue.

Tested sftp (using ssh keys), ftps, and ftp. Tested connecting to multiple servers. No issues found.

I thing I noticed is that I have several lib64filezilla* packages of different versions installed (see list below).
These packages are not required by any other packages and can be removed.
Shouldn't the older packages be replaced by the newer one instead of just being left installed?



System: Mageia 9, x86_64, Plasma DE, AMD Ryzen 5 5600G with Radeon Graphics using the amdgpu driver.



$ uname -a
Linux jupiter 6.6.22-desktop-1.mga9 #1 SMP PREEMPT_DYNAMIC Sun Mar 17 18:04:51 UTC 2024 x86_64 GNU/Linux
$ rpm -qa | grep filezilla
lib64filezilla36-0.42.2-1.mga9
lib64filezilla41-0.45.0-1.mga9
libfilezilla-i18n-0.47.0-1.mga9
lib64filezilla43-0.47.0-1.mga9
filezilla-3.67.0-1.mga9

CC: (none) => mageia

Comment 6 David Walser 2024-04-17 14:39:08 CEST
They aren't removed automatically.  You need to run urpme --auto-orphans.
Comment 7 PC LX 2024-04-17 18:20:22 CEST
(In reply to David Walser from comment #6)
> They aren't removed automatically.  You need to run urpme --auto-orphans.

But these libraries are used by only by older filezilla packages so what is the point in keeping the older libraries and not just updating them like most others?
Comment 8 David Walser 2024-04-17 23:33:50 CEST
urpme --auto-orphans is what you need to run to not keep them, as they're no longer needed.  They have already been updated.
Comment 9 PC LX 2024-04-18 10:49:06 CEST
(In reply to David Walser from comment #8)
> urpme --auto-orphans is what you need to run to not keep them, as they're no
> longer needed.  They have already been updated.

Yes, I understood comment 6, but my question is why aren't those libraries replaced by the newer version in the first place? What is the point of keeping the older libraries that are only used by older filezilla package that are no longer installed?
Comment 10 David Walser 2024-04-18 14:44:56 CEST
Generally speaking, when a library major number changes, it's not compatible with the older versions, so it cannot be used as a drop-in replacement, and it wouldn't be appropriate for urpmi to just remove the old one, as that may break software that is built against the old one.  For rpms that depend on the old one, urpm* will know about that, and if there aren't any, urpme --auto-orphans will allow you to remove the older libraries and other packages that are no longer required by other packages.  It cannot know about non-rpm software that may be using the older libraries, so you have to run the urpme command when you know that it's safe to do so.
Comment 11 Brian Rockwell 2024-04-18 20:39:01 CEST
Filezilla

MGA9-64, Plasma

The following 12 packages are going to be installed:

- filezilla-3.67.0-1.mga9.x86_64
- gspell-i18n-1.12.1-1.mga9.x86_64
- lib64filezilla43-0.47.0-1.mga9.x86_64
- lib64gspell1_2-1.12.1-1.mga9.x86_64
- lib64wx_baseu3.2_0-3.2.1-3.mga9.x86_64
- lib64wx_baseu_xml3.2_0-3.2.1-3.mga9.x86_64
- lib64wx_gtk3u_aui3.2_0-3.2.1-3.mga9.x86_64
- lib64wx_gtk3u_core3.2_0-3.2.1-3.mga9.x86_64
- lib64wx_gtk3u_html3.2_0-3.2.1-3.mga9.x86_64
- lib64wx_gtk3u_xrc3.2_0-3.2.1-3.mga9.x86_64
- libfilezilla-i18n-0.47.0-1.mga9.noarch
- wxgtk3.2-3.2.1-3.mga9.x86_64

-- this is an upgrade

system is connecting fine
downloaded a file
working as expected

CC: (none) => brtians1

Comment 12 Brian Rockwell 2024-04-18 21:09:20 CEST
Putty

MGA9-32, Mate

Installed 

Connected via ssh to remote server, no issues.
Comment 13 katnatek 2024-04-19 04:43:45 CEST
LC_ALL=C urpmi --auto --auto-update 
medium "QA Testing (32-bit)" is up-to-date
medium "Core Release (distrib1)" is up-to-date
    https://mirror.math.princeton.edu/pub/mageia/distrib/9/i586/media/core/updates/media_info/20240419-010600-synthesis.hdlist.cz
updated medium "Core Updates (distrib3)"                                                          
medium "Nonfree Release (distrib11)" is up-to-date
medium "Nonfree Updates (distrib13)" is up-to-date
medium "Tainted Release (distrib21)" is up-to-date
medium "Tainted Updates (distrib23)" is up-to-date


installing libfilezilla-i18n-0.47.0-1.mga9.noarch.rpm libfilezilla43-0.47.0-1.mga9.i586.rpm filezilla-3.67.0-1.mga9.i586.rpm from //home/katnatek/qa-testing/i586
Preparing...                     ################################################################
      1/3: libfilezilla-i18n     ################################################################
      2/3: libfilezilla43        ################################################################
      3/3: filezilla             ################################################################
      1/2: removing filezilla-3.66.4-1.mga9.i586
                                 ################################################################
      2/2: removing libfilezilla-i18n-0.45.0-1.mga9.noarch
                                 ################################################################

Connect to remote server by sftp OK
Connect to remote server by ftp OK
katnatek 2024-04-19 04:46:06 CEST

CC: (none) => andrewsfarm

katnatek 2024-04-19 04:47:05 CEST

Source RPM: putty, filezilla => putty, filezilla, libfilezilla
Whiteboard: (none) => MGA9-64-OK,MGA9-32-OK

Comment 14 Thomas Andrews 2024-04-19 16:11:10 CEST
Validating.

CC: (none) => sysadmin-bugs
Keywords: (none) => validated_update

Comment 15 Mageia Robot 2024-04-20 20:11:54 CEST
An update for this issue has been pushed to the Mageia Updates repository.

https://advisories.mageia.org/MGASA-2024-0140.html

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


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