{"id":"USN-5462-1","summary":"ruby2.5, ruby2.7, ruby3.0 vulnerabilities","details":"It was discovered that Ruby incorrectly handled certain regular expressions.\nAn attacker could possibly use this issue to execute arbitrary code. This\nissue only affected Ubuntu 22.04 LTS. (CVE-2022-28738)\n\nIt was discovered that Ruby incorrectly handled certain inputs.\nAn attacker could possibly use this issue to expose sensitive information.\n(CVE-2022-28739)\n","modified":"2026-02-10T04:42:38Z","published":"2022-06-06T17:23:28Z","related":["UBUNTU-CVE-2022-28738","UBUNTU-CVE-2022-28739"],"upstream":["CVE-2022-28738","CVE-2022-28739","UBUNTU-CVE-2022-28738","UBUNTU-CVE-2022-28739"],"references":[{"type":"ADVISORY","url":"https://ubuntu.com/security/notices/USN-5462-1"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-28738"},{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2022-28739"}],"affected":[{"package":{"name":"ruby2.5","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/ruby2.5@2.5.1-1ubuntu1.12?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.5.1-1ubuntu1.12"}]}],"versions":["2.5.0~preview1-1ubuntu2","2.5.0-4ubuntu1","2.5.0-4ubuntu4","2.5.0-5ubuntu1","2.5.0-6ubuntu1","2.5.1-1ubuntu1","2.5.1-1ubuntu1.1","2.5.1-1ubuntu1.2","2.5.1-1ubuntu1.4","2.5.1-1ubuntu1.5","2.5.1-1ubuntu1.6","2.5.1-1ubuntu1.7","2.5.1-1ubuntu1.8","2.5.1-1ubuntu1.9","2.5.1-1ubuntu1.10","2.5.1-1ubuntu1.11"],"ecosystem_specific":{"binaries":[{"binary_version":"2.5.1-1ubuntu1.12","binary_name":"libruby2.5"},{"binary_version":"2.5.1-1ubuntu1.12","binary_name":"ruby2.5"},{"binary_version":"2.5.1-1ubuntu1.12","binary_name":"ruby2.5-dev"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:18.04:LTS","cves":[{"id":"CVE-2022-28739","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"low","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5462-1.json"}},{"package":{"name":"ruby2.7","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/ruby2.7@2.7.0-5ubuntu1.7?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"2.7.0-5ubuntu1.7"}]}],"versions":["2.7.0-1","2.7.0-2","2.7.0-3","2.7.0-4","2.7.0-4ubuntu1","2.7.0-5ubuntu1","2.7.0-5ubuntu1.1","2.7.0-5ubuntu1.2","2.7.0-5ubuntu1.3","2.7.0-5ubuntu1.4","2.7.0-5ubuntu1.5","2.7.0-5ubuntu1.6"],"ecosystem_specific":{"binaries":[{"binary_version":"2.7.0-5ubuntu1.7","binary_name":"libruby2.7"},{"binary_version":"2.7.0-5ubuntu1.7","binary_name":"ruby2.7"},{"binary_version":"2.7.0-5ubuntu1.7","binary_name":"ruby2.7-dev"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:20.04:LTS","cves":[{"id":"CVE-2022-28739","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"low","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5462-1.json"}},{"package":{"name":"ruby3.0","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/ruby3.0@3.0.2-7ubuntu2.1?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"3.0.2-7ubuntu2.1"}]}],"versions":["3.0.2-5ubuntu1","3.0.2-7","3.0.2-7ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.0.2-7ubuntu2.1","binary_name":"libruby3.0"},{"binary_version":"3.0.2-7ubuntu2.1","binary_name":"ruby3.0"},{"binary_version":"3.0.2-7ubuntu2.1","binary_name":"ruby3.0-dev"}],"availability":"No subscription required"},"database_specific":{"cves_map":{"ecosystem":"Ubuntu:22.04:LTS","cves":[{"id":"CVE-2022-28738","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","type":"CVSS_V3"},{"score":"medium","type":"Ubuntu"}]},{"id":"CVE-2022-28739","severity":[{"score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","type":"CVSS_V3"},{"score":"low","type":"Ubuntu"}]}]},"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/usn/USN-5462-1.json"}}],"schema_version":"1.7.3"}