<?xml version="1.0" encoding="UTF-8"?>
<cvrfdoc xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:cpe="http://cpe.mitre.org/language/2.0" xmlns:cvrf="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/cvrf" xmlns:cvrf-common="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/common" xmlns:cvssv2="http://scap.nist.gov/schema/cvss-v2/1.0" xmlns:cvssv3="https://www.first.org/cvss/cvss-v3.0.xsd" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns0="http://purl.org/dc/elements/1.1/" xmlns:prod="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/prod" xmlns:scap-core="http://scap.nist.gov/schema/scap-core/1.0" xmlns:sch="http://purl.oclc.org/dsdl/schematron" xmlns:vuln="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/cvrf">
  <DocumentTitle xml:lang="en">Security update for mc</DocumentTitle>
  <DocumentType>SUSE Patch</DocumentType>
  <DocumentPublisher Type="Vendor">
    <ContactDetails>security@suse.de</ContactDetails>
    <IssuingAuthority>SUSE Security Team</IssuingAuthority>
  </DocumentPublisher>
  <DocumentTracking>
    <Identification>
      <ID>openSUSE-SU-2022:0061-1</ID>
    </Identification>
    <Status>Final</Status>
    <Version>1</Version>
    <RevisionHistory>
      <Revision>
        <Number>1</Number>
        <Date>2022-03-01T17:02:24Z</Date>
        <Description>current</Description>
      </Revision>
    </RevisionHistory>
    <InitialReleaseDate>2022-03-01T17:02:24Z</InitialReleaseDate>
    <CurrentReleaseDate>2022-03-01T17:02:24Z</CurrentReleaseDate>
    <Generator>
      <Engine>cve-database/bin/generate-cvrf.pl</Engine>
      <Date>2017-02-24T01:00:00Z</Date>
    </Generator>
  </DocumentTracking>
  <DocumentNotes>
    <Note Title="Topic" Type="Summary" Ordinal="1" xml:lang="en">Security update for mc</Note>
    <Note Title="Details" Type="General" Ordinal="2" xml:lang="en">This update for mc fixes the following issues:

Midnight Commander 4.8.27:

* Core

  - Reimplement version detection (#3603, #4249)
  - Significantly reduce rebuilt time after version change (#2252, #4266)
  - Drop automatic migration of configuration from ~/.mc to XDG-based directories (#3682)
  - zsh: support custom configuration file: ~/.local/share/mc/.zshrc (#4203)
  - Widgets: implement WST_VISIBLE state to show/hide widgets (#2919)
  - Find File: add Follow symlinks option (#2020) 

* VFS

  - extfs: support unrar-6 (#4154)
  - extfs: support official 7z binary (7zz) (#4239)
  - ftpfs: apply file list parser from lftp project (#2841, #3174) 

* Editor

  - Word completion: get candidates from all open files (#4160)
  - etags: get rid of hardcoded list length and window width (#4132)
  - Update syntax files:
    - python (#4140) 
  - Add syntax highlighting:
    - Verilog and SystemVerilog? header files (#4215)
    - JSON (#4250)
    - openrc-run scripts (#4246) 
* Misc

  - Filehighlight of c++ and h++ files as sources (#4194)
  - Filehighlight of JSON files as documents (#4250)
  - Support of alacritty terminal emulator (​https://github.com/alacritty/alacritty) (#4248)
  - Support of foot terminal emulator (​https://codeberg.org/dnkl/foot) (#4251)
  - Support of (alt+)shift+arrow keys in st terminal emulator (st.suckless.org) (#4267)
  - Mouse support in screen: don't check  variable (#4233)
  - mc.ext: support fb2 e-books (#4167)
  - ext.d: use mediainfo to view info about various media files (#4167)
  - Remove OS/distro-specific package-related stuff from source tree (#4217) 

* Fixes

  - FTBFS against NCurses on OS X 10.9.5 (#4181)
  - Segfault on dialog before panels get visible (#4244)
  - Crash if shadow is out of screen (build against NCurses) (#4192)
  - Crash in search (#4222)
  - Crash on startup with enabled subshell in FreeBSD (workaround) (#4213)
  - Hang on start randomly with zsh as subshell (#4198)
  - If command line is invisible it's partially displayed (#4182)
  - Broken handling of zip archives (#4180, #4183)
  - Broken handling of jar files as zip archives (#4223)
  - Timestamps of symlinks, sockets, fifos, etc are not preserved after copy/move (#3985)
  - %view action in the user menu doesn't work on no-exec filesystem (#4242)
  - Hardlinks are not colored by file type or extension (#3375)
  - mcedit: silent macro makes terminal disrupted (#4171)
  - mcedit: disrupting of TAGS file path (#4207)
  - vfs: unable to browse compressed tar archives (#4191)
  - sftpfs vfs: CVE-2021-36370: server fingerprint isn't verified 
    (discovered by AUT-milCERT during an audit of open source software) (#4259)
  - ftpfs vfs: month of file is always January (#4260)
  - Tests: log files are written by libcheck and automake simultaneously (#3986) 
</Note>
    <Note Title="Terms of Use" Type="Legal Disclaimer" Ordinal="3" xml:lang="en">The CVRF data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).</Note>
    <Note Title="Patchnames" Type="Details" Ordinal="4" xml:lang="en">openSUSE-2022-61</Note>
  </DocumentNotes>
  <DocumentDistribution xml:lang="en">Copyright SUSE LLC under the Creative Commons License 4.0 with Attribution (CC-BY-4.0)</DocumentDistribution>
  <DocumentReferences>
    <Reference Type="Self">
      <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/5SJPZ2MSI7IPFCS5TFZZVXF4NN6XKYKJ/</URL>
      <Description>E-Mail link for openSUSE-SU-2022:0061-1</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/support/security/rating/</URL>
      <Description>SUSE Security Ratings</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://bugzilla.suse.com/1190180</URL>
      <Description>SUSE Bug 1190180</Description>
    </Reference>
    <Reference Type="Self">
      <URL>https://www.suse.com/security/cve/CVE-2021-36370/</URL>
      <Description>SUSE CVE CVE-2021-36370 page</Description>
    </Reference>
  </DocumentReferences>
  <ProductTree xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/prod">
    <Branch Type="Product Family" Name="SUSE Package Hub 15 SP3">
      <Branch Type="Product Name" Name="SUSE Package Hub 15 SP3">
        <FullProductName ProductID="SUSE Package Hub 15 SP3">SUSE Package Hub 15 SP3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Family" Name="openSUSE Leap 15.3">
      <Branch Type="Product Name" Name="openSUSE Leap 15.3">
        <FullProductName ProductID="openSUSE Leap 15.3" CPE="cpe:/o:opensuse:leap:15.3">openSUSE Leap 15.3</FullProductName>
      </Branch>
    </Branch>
    <Branch Type="Product Version" Name="mc-4.8.27-bp153.2.3.1">
      <FullProductName ProductID="mc-4.8.27-bp153.2.3.1">mc-4.8.27-bp153.2.3.1</FullProductName>
    </Branch>
    <Branch Type="Product Version" Name="mc-lang-4.8.27-bp153.2.3.1">
      <FullProductName ProductID="mc-lang-4.8.27-bp153.2.3.1">mc-lang-4.8.27-bp153.2.3.1</FullProductName>
    </Branch>
    <Relationship ProductReference="mc-4.8.27-bp153.2.3.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP3">
      <FullProductName ProductID="SUSE Package Hub 15 SP3:mc-4.8.27-bp153.2.3.1">mc-4.8.27-bp153.2.3.1 as a component of SUSE Package Hub 15 SP3</FullProductName>
    </Relationship>
    <Relationship ProductReference="mc-lang-4.8.27-bp153.2.3.1" RelationType="Default Component Of" RelatesToProductReference="SUSE Package Hub 15 SP3">
      <FullProductName ProductID="SUSE Package Hub 15 SP3:mc-lang-4.8.27-bp153.2.3.1">mc-lang-4.8.27-bp153.2.3.1 as a component of SUSE Package Hub 15 SP3</FullProductName>
    </Relationship>
    <Relationship ProductReference="mc-4.8.27-bp153.2.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:mc-4.8.27-bp153.2.3.1">mc-4.8.27-bp153.2.3.1 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
    <Relationship ProductReference="mc-lang-4.8.27-bp153.2.3.1" RelationType="Default Component Of" RelatesToProductReference="openSUSE Leap 15.3">
      <FullProductName ProductID="openSUSE Leap 15.3:mc-lang-4.8.27-bp153.2.3.1">mc-lang-4.8.27-bp153.2.3.1 as a component of openSUSE Leap 15.3</FullProductName>
    </Relationship>
  </ProductTree>
  <vuln:Vulnerability xmlns="http://docs.oasis-open.org/csaf/ns/csaf-cvrf/v1.2/vuln" Ordinal="1">
    <Notes>
      <Note Title="Vulnerability Description" Type="General" Ordinal="1" xml:lang="en">An issue was discovered in Midnight Commander through 4.8.26. When establishing an SFTP connection, the fingerprint of the server is neither checked nor displayed. As a result, a user connects to the server without the ability to verify its authenticity.</Note>
    </Notes>
    <CVE>CVE-2021-36370</CVE>
    <ProductStatuses>
      <Status Type="Fixed">
        <ProductID>SUSE Package Hub 15 SP3:mc-4.8.27-bp153.2.3.1</ProductID>
        <ProductID>SUSE Package Hub 15 SP3:mc-lang-4.8.27-bp153.2.3.1</ProductID>
        <ProductID>openSUSE Leap 15.3:mc-4.8.27-bp153.2.3.1</ProductID>
        <ProductID>openSUSE Leap 15.3:mc-lang-4.8.27-bp153.2.3.1</ProductID>
      </Status>
    </ProductStatuses>
    <Threats>
      <Threat Type="Impact">
        <Description>moderate</Description>
      </Threat>
    </Threats>
    <CVSSScoreSets>
      <ScoreSetV2>
        <BaseScoreV2>5</BaseScoreV2>
        <VectorV2>AV:N/AC:L/Au:N/C:N/I:P/A:N</VectorV2>
      </ScoreSetV2>
      <ScoreSetV3>
        <BaseScoreV3>4.6</BaseScoreV3>
        <VectorV3>CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:L/I:L/A:N</VectorV3>
      </ScoreSetV3>
    </CVSSScoreSets>
    <Remediations>
      <Remediation Type="Vendor Fix">
        <Description xml:lang="en">To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or "zypper patch".
</Description>
        <URL>https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/5SJPZ2MSI7IPFCS5TFZZVXF4NN6XKYKJ/</URL>
      </Remediation>
    </Remediations>
    <References>
      <Reference>
        <URL>https://www.suse.com/security/cve/CVE-2021-36370.html</URL>
        <Description>CVE-2021-36370</Description>
      </Reference>
      <Reference>
        <URL>https://bugzilla.suse.com/1190180</URL>
        <Description>SUSE Bug 1190180</Description>
      </Reference>
    </References>
  </vuln:Vulnerability>
</cvrfdoc>
