Directory Traversal Affecting foreman package, versions <0:2.5.2.17-2.el7sat


Severity

Recommended
medium

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
0.2% (58th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Directory Traversal vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-RHEL7-FOREMAN-5361941
  • published26 Mar 2023
  • disclosed4 May 2021

Introduced: 4 May 2021

CVE-2021-31542  (opens in a new tab)
CWE-22  (opens in a new tab)

How to fix?

Upgrade RHEL:7 foreman to version 0:2.5.2.17-2.el7sat or higher.
This issue was patched in RHSA-2021:4702.

NVD Description

Note: Versions mentioned in the description apply only to the upstream foreman package and not the foreman package as distributed by RHEL. See How to fix? for RHEL:7 relevant fixed versions and status.

In Django 2.2 before 2.2.21, 3.1 before 3.1.9, and 3.2 before 3.2.1, MultiPartParser, UploadedFile, and FieldFile allowed directory traversal via uploaded files with suitably crafted file names.

CVSS Scores

version 3.1