Back

HIGH

ruby: Unintentional socket creation by poisoned NULL byte in UNIXServer and UNIXSocket

Published Apr 3, 2018

Description

In Ruby before 2.2.10, 2.3.x before 2.3.7, 2.4.x before 2.4.4, 2.5.x before 2.5.1, and 2.6.0-preview1, the UNIXServer.open and UNIXSocket.open methods are not checked for null characters. It may be connected to an unintended socket.

Affected products

Remediation

Red Hat statement

This issue did not affect the versions of ruby as shipped with Red Hat Enterprise Linux 5 and 6.

Red Hat mitigation

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

Metrics

References (21)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner mitre
Published Apr 3, 2018
Updated Aug 5, 2024
Reserved Mar 19, 2018
NVD
Status Modified
Modified Jun 17, 2026
Red Hat
Severity Low
Public date Mar 28, 2018