EGI SVG Advisories

Advisory-SVG-CVE-2021-31215

Title:   EGI SVG 'ADVISORY' [TLP:WHITE] HIGH risk vulnerability concerning
         SLURM  CVE-2021-31215 [EGI-SVG-CVE-2021-31215]

Date:    2021-05-18
Updated: 2021-06-26 - changed to [WHITE}


Affected software and risk
==========================

HIGH risk vulnerability concerning SLURM

Package : SLURM
CVE ID  : CVE-2021-31215

A vulnerability has been found in Slurm that allows any user to run arbitrary
commands as SlurmUser if the installation uses a PrologSlurmctld and/or
EpilogSlurmctld script.  [R 1]

Actions required/recommended
============================

Sites running SLURM are recommended to update to version 20.11.7 or 20.02.7 or
later as soon as possible which include a fix for this issue.

Component installation information
==================================

Sites should see [R 3]

Mitigation
==========

If sites do NOT run PrologSlurmctld and/or EpilogSlurmctld script this is
probably not exploitable.

Affected software details
=========================

This has been fixed in SLURM versions 20.11.7 or 20.02.7, earlier versions may
be vulnerable.



TLP and URL
===========

** WHITE information - Unlimited distribution
 - see https://go.egi.eu/tlp for distribution restrictions **

This advisory will be placed on the wiki on or after 2021-05-25

URL:   https://advisories.egi.eu/Advisory-SVG-CVE-2021-31215

Minor updates may be made without re-distribution to the sites


Comments
========

Comments or questions should be sent to svg-rat  at  mailman.egi.eu

If you find or become aware of another vulnerability which is relevant to EGI
you may report it by e-mail to

report-vulnerability at egi.eu

the EGI Software Vulnerability Group will take a look according to the
procedure defined in [R 4]

Note that this is undergoing revision to fully handle vulnerabilities in the
EOSC-hub era.


References
==========

[R 1]  https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-31215

[R 2] https://lists.schedmd.com/pipermail/slurm-announce/2021/000055.html

[R 3] https://www.schedmd.com/downloads.php

[R 4] https://documents.egi.eu/public/ShowDocument?docid=3145

Credit
======

SVG was alerted to this vulnerability by Barbara Krasovec who is a member of
SVG


Timeline
========
Yyyy-mm-dd  [EGI-SVG-CVE-2021-31215]

2021-05-13 SVG alerted to this issue by Barbara Krasovec
2021-05-13 Investigation of vulnerability and relevance to EGI carried out by
           SVG
2021-05-13 Updated packages available from the software providers
2021-05-17 EGI SVG Risk Assessment completed
2021-05-18 Advisory sent to sites
2021-06-16 Advisory placed on Wiki


Context
=======

This advisory has been prepared as part of the effort to fulfil EGI SVG's
purpose "To minimize the risk to the EGI infrastructure arising from software
vulnerabilities"

The risk is that assessed by the group, according to the EGI SVG issue handling
procedure [R 4] in the context of how the software is used in the EGI
infrastructure. It is the opinion of the group, we do not guarantee it to be
correct. The risk may also be higher or lower in other deployments depending on
how the software is used.

-----------------------------
Others may re-use this information provided they:-

1) Respect the provided TLP classification

2) Credit the EGI https://www.egi.eu/ Software Vulnerability Group
------------------------------

Note that the SVG issue handling procedure is currently under review, to take
account of the increasing inhomogeneity of the EGI infrastructure and the
services in the EOSC-hub catalogue.

On behalf of the EGI SVG,