Advisory Published

USN-6181-1: Ruby vulnerabilities

First published: Wed Jun 21 2023(Updated: )

Hiroshi Tokumaru discovered that Ruby did not properly handle certain user input for applications the generate HTTP responses using cgi gem. An attacker could possibly use this issue to maliciously modify the response a user would receive from a vulnerable application. This issue only affected Ubuntu 22.10. (CVE-2021-33621) It was discovered that Ruby incorrectly handled certain regular expressions. An attacker could possibly use this issue to cause a denial of service. (CVE-2023-28755, CVE-2023-28756)

Affected SoftwareAffected VersionHow to fix
All of
ubuntu/ruby3.1<3.1.2-6ubuntu0.23.04.1
3.1.2-6ubuntu0.23.04.1
Ubuntu=23.04
All of
ubuntu/libruby3.1<3.1.2-6ubuntu0.23.04.1
3.1.2-6ubuntu0.23.04.1
Ubuntu=23.04
All of
ubuntu/ruby3.1<3.1.2-2ubuntu0.22.10.1
3.1.2-2ubuntu0.22.10.1
Ubuntu=22.10
All of
ubuntu/libruby3.1<3.1.2-2ubuntu0.22.10.1
3.1.2-2ubuntu0.22.10.1
Ubuntu=22.10

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.

Child vulnerabilities

(Contains the following vulnerabilities)

Frequently Asked Questions

  • What is the vulnerability ID for this advisory?

    The vulnerability ID for this advisory is USN-6181-1.

  • What software versions are affected by this vulnerability?

    The software versions affected are ruby3.1 (version 3.1.2-6ubuntu0.23.04.1) and libruby3.1 (version 3.1.2-6ubuntu0.23.04.1) in Ubuntu 23.04, as well as ruby3.1 (version 3.1.2-2ubuntu0.22.10.1) and libruby3.1 (version 3.1.2-2ubuntu0.22.10.1) in Ubuntu 22.10.

  • What is the impact of this vulnerability?

    This vulnerability could allow an attacker to maliciously modify the response a user would receive from a vulnerable application that generates HTTP responses using the cgi gem.

  • How can I fix this vulnerability?

    To fix this vulnerability, update ruby3.1 to version 3.1.2-6ubuntu0.23.04.1 and libruby3.1 to version 3.1.2-6ubuntu0.23.04.1 if you are using Ubuntu 23.04, or update ruby3.1 to version 3.1.2-2ubuntu0.22.10.1 and libruby3.1 to version 3.1.2-2ubuntu0.22.10.1 if you are using Ubuntu 22.10.

  • Where can I find more information about this vulnerability?

    You can find more information about this vulnerability in the Ubuntu Security Notices at the following references: [CVE-2023-28755](https://ubuntu.com/security/CVE-2023-28755), [CVE-2021-33621](https://ubuntu.com/security/CVE-2021-33621), [CVE-2023-28756](https://ubuntu.com/security/CVE-2023-28756).

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