CWE
77
Advisory Published
Updated

REDHAT-BUG-1528218: Command Injection

First published: Thu Dec 21 2017(Updated: )

The lazy_initialize function in lib/resolv.rb in Ruby through 2.4.3 uses Kernel#open, which might allow Command Injection attacks, as demonstrated by a Resolv::Hosts::new argument beginning with a '|' character, a different vulnerability than <a href="https://access.redhat.com/security/cve/CVE-2017-17405">CVE-2017-17405</a>. NOTE: situations with untrusted input may be highly unlikely. Upstream bug: <a href="https://github.com/ruby/ruby/pull/1777">https://github.com/ruby/ruby/pull/1777</a> Upstream patch: <a href="https://github.com/ruby/ruby/commit/e7464561b5151501beb356fc750d5dd1a88014f7">https://github.com/ruby/ruby/commit/e7464561b5151501beb356fc750d5dd1a88014f7</a>

Affected SoftwareAffected VersionHow to fix
Ruby<=2.4.3

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of REDHAT-BUG-1528218?

    The severity of REDHAT-BUG-1528218 is considered critical due to the potential for command injection attacks.

  • How do I fix REDHAT-BUG-1528218?

    To fix REDHAT-BUG-1528218, upgrade Ruby to version 2.5 or later where this vulnerability has been addressed.

  • What systems are affected by REDHAT-BUG-1528218?

    REDHAT-BUG-1528218 affects Ruby versions up to and including 2.4.3.

  • What is the nature of the attack associated with REDHAT-BUG-1528218?

    The nature of the attack associated with REDHAT-BUG-1528218 involves command injection through the use of Kernel#open in the lazy_initialize function.

  • Is there a workaround for REDHAT-BUG-1528218?

    A possible workaround for REDHAT-BUG-1528218 is to avoid the use of the Resolv::Hosts::new method with arguments starting with a '|' character.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203