• [gentoo-announce] [ GLSA 202408-24 ] Ruby on Rails: Remote Code Executi

    From glsamaker@gentoo.org@21:1/5 to All on Sun Aug 11 07:40:01 2024
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    Gentoo Linux Security Advisory GLSA 202408-24
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    https://security.gentoo.org/
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Severity: Normal
    Title: Ruby on Rails: Remote Code Execution
    Date: August 11, 2024
    Bugs: #857840
    ID: 202408-24

    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -

    Synopsis
    ========

    A vulnerability has been discovered in Ruby on Rails, which can lead to
    remote code execution via serialization of data.

    Background
    ==========

    Ruby on Rails is a free web framework used to develop database-driven
    web applications.

    Affected packages
    =================

    Package Vulnerable Unaffected
    -------------- ------------- --------------
    dev-ruby/rails < 6.1.6.1:6.1 >= 6.1.6.1:6.1
    < 7.0.3.1:7.0 >= 7.0.3.1:7.0

    Description
    ===========

    Multiple vulnerabilities have been discovered in Ruby on Rails. Please
    review the CVE identifiers referenced below for details.

    Impact
    ======

    When serialized columns that use YAML (the default) are deserialized,
    Rails uses YAML.unsafe_load to convert the YAML data in to Ruby objects.
    If an attacker can manipulate data in the database (via means like SQL injection), then it may be possible for the attacker to escalate to an
    RCE.

    Impacted Active Record models will look something like this:

    class User < ApplicationRecord
    serialize :options # Vulnerable: Uses YAML for serialization
    serialize :values, Array # Vulnerable: Uses YAML for serialization
    serialize :values, JSON # Not vulnerable
    end

    The released versions change the default YAML deserializer to use YAML.safe_load, which prevents deserialization of possibly dangerous
    objects. This may introduce backwards compatibility issues with existing
    data.

    Workaround
    ==========

    There is no known workaround at this time.

    Resolution
    ==========

    All Ruby on Rails users should upgrade to the latest version:

    # emerge --sync
    # emerge --ask --oneshot --verbose ">=dev-ruby/rails-6.1.6.1:6.1"
    # emerge --ask --oneshot --verbose ">=dev-ruby/rails-7.0.3.1:7.0"

    References
    ==========

    [ 1 ] CVE-2022-32224
    https://nvd.nist.gov/vuln/detail/CVE-2022-32224

    Availability
    ============

    This GLSA and any updates to it are available for viewing at
    the Gentoo Security Website:

    https://security.gentoo.org/glsa/202408-24

    Concerns?
    =========

    Security is a primary focus of Gentoo Linux and ensuring the
    confidentiality and security of our users' machines is of utmost
    importance to us. Any security concerns should be addressed to security@gentoo.org or alternatively, you may file a bug at https://bugs.gentoo.org.

    License
    =======

    Copyright 2024 Gentoo Foundation, Inc; referenced text
    belongs to its owner(s).

    The contents of this document are licensed under the
    Creative Commons - Attribution / Share Alike license.

    https://creativecommons.org/licenses/by-sa/2.5
    -----BEGIN PGP SIGNATURE-----

    iQIzBAEBCgAdFiEEpqTA6ABLMxh/aChGFMQkOaVy+9kFAma4Tc8ACgkQFMQkOaVy +9mJDw//bLqd9WmmBUSc+yHv9W1movsm2NvUI4IgVHM3n/BaoHdvZmGCOr9waIy9 8SZOFsW4Qqog/hWhHbkFtt1WSonvAkeLq4geylXdXQuk8dZxECANthLiTRsI2UPD t0vbH7Y5VGimWJ558/Jc3MW33lHtuFosvpvGIQcmJC/Xp48tetK1Q2v1peVoCuwH OKa0Otyzh0myyc035qEgdqcnSKEAR8aCTsH1PhPd4pEdN9RjEU4ebetDG0vR+F5h J3q68pHUsdXo1ryUBXUfjLlzTiiJ2a/Bs00LX9FLXq9Wlefz6ftOKj+MAFXMKkS2 9lIp8Tb/iOv3mmURF3yMpCgDEVhwAqdH4WMu6C49MsvOuAt0KooLSLInH2wrM5xy 7xoUMl9+w3N6oUXWV9xcprr394IglLR3KVtqcH3MleXuNUlOmguFINFT7wTjlj97 6ww/KnbHtbHXMafNrQ1Mgo6K+bhJm+wjtgGBVHpuS9apeVue0/NVpweMNcfs9Itb M8Vt/ClZy9t+3c5N6KIFD3OWMp3FA3uOCKxoSA8CFvEdn5FYafOU70OH4iJVX8Y2 Z34tlwVO3MygdKLYvbeHSrOZtkoBTZq6FHO0VIkASUZXhVr4FDimJlVYw/PIQCCp gERBltfcfvAwhPzPQ8XAZ0WCHqf2Pb1UGa0BF0u7HF607u77U/k=
    =Ofed
    -----END PGP SIGNATURE-----

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)