Back

MEDIUM

ruby: NUL injection vulnerability of File.fnmatch and File.fnmatch?

Published Nov 26, 2019

Description

Ruby through 2.4.7, 2.5.x through 2.5.6, and 2.6.x through 2.6.4 mishandles path checking within File.fnmatch functions.

Affected products

Remediation

Red Hat mitigation

It is possible to test for presence of the NULL byte manually prior to call the affected methods with an untrusted string.

Metrics

Weaknesses (1)

References (14)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner mitre
Published Nov 26, 2019
Updated Aug 5, 2024
Reserved Aug 30, 2019
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Moderate
Public date Oct 1, 2019