Bug 2110551 (CVE-2022-31163) - CVE-2022-31163 rubygem-tzinfo: arbitrary code execution
Summary: CVE-2022-31163 rubygem-tzinfo: arbitrary code execution
Keywords:
Status: NEW
Alias: CVE-2022-31163
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
URL:
Whiteboard:
Depends On: 2110977 2110979 2111914 2111919 2110552 2110978 2111896 2111918
Blocks: 2110553
TreeView+ depends on / blocked
 
Reported: 2022-07-25 15:33 UTC by Marian Rehak
Modified: 2022-10-27 13:01 UTC (History)
29 users (show)

Fixed In Version: rubygem-tzinfo 1.2.10
Doc Type: If docs needed, set a value
Doc Text:
A flaw was found in rubygem-tzinfo. When using the Timezone.get function, it fails to validate time zone identifiers correctly, allowing a new line character input within the identifier. This flaw allows an attacker to use the new line character and write any code, which will be executed within the Ruby process.
Clone Of:
Environment:
Last Closed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2022:7242 0 None None None 2022-10-27 13:01:13 UTC

Description Marian Rehak 2022-07-25 15:33:27 UTC
`TZInfo::Timezone.get` fails to validate time zone identifiers correctly, allowing a new line character within the identifier. `TZInfo::Timezone.get` can be made to load unintended files with `require`, executing them within the Ruby process.

Reference:

https://github.com/tzinfo/tzinfo/security/advisories/GHSA-5cm2-9h8c-rvfx

Comment 1 Marian Rehak 2022-07-25 15:33:44 UTC
Created rubygem-tzinfo tracking bugs for this issue:

Affects: epel-7 [bug 2110552]

Comment 4 errata-xmlrpc 2022-10-27 13:01:10 UTC
This issue has been addressed in the following products:

  Red Hat Satellite 6.11 for RHEL 7
  Red Hat Satellite 6.11 for RHEL 8

Via RHSA-2022:7242 https://access.redhat.com/errata/RHSA-2022:7242


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