Advisory

UBUNTU-CVE-2022-28738

Also known as: CVE-2022-28738

Summary

The record has no summary.

Details

A double free was found in the Regexp compiler in Ruby 3.x before 3.0.4 and 3.1.x before 3.1.2. If a victim attempts to create a Regexp from untrusted user input, an attacker may be able to write to unexpected memory locations.

Severity

Critical Basis: CVSS v3 score 9.8, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Dates

Published
2022-05-09 18:15 UTC
Modified
2026-04-22 13:21 UTC

Affected packages and fixes

ruby3.0

Debian packages (deb) · Ubuntu 22.04

Affected

  • introduced 0, fixed 3.0.2-7ubuntu2.1 (ecosystem)

Fixed versions

3.0.2-7ubuntu2.1

Fix

  • Fixed version 3.0.2-7ubuntu2.1
    sudo apt-get update && sudo apt-get upgrade

This command upgrades the distribution's packages. Compare the fixed version with the version you have installed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: Ubuntu Security Notices · CC BY-SA 4.0

Sources & licences