GHSA-9j7m-rjqx-48vh

Suggest an improvement
Source
https://github.com/advisories/GHSA-9j7m-rjqx-48vh
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-9j7m-rjqx-48vh/GHSA-9j7m-rjqx-48vh.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-9j7m-rjqx-48vh
Aliases
Published
2022-05-14T01:08:27Z
Modified
2024-11-29T05:42:20.333898Z
Summary
RubyGems Regular Expression Denial of Service vulnerability
Details

Algorithmic complexity vulnerability in Gem::Version::VERSION_PATTERN in lib/rubygems/version.rb in RubyGems before 1.8.23.1, 1.8.24 through 1.8.25, 2.0.x before 2.0.8, and 2.1.x before 2.1.0, as used in Ruby 1.9.0 through 2.0.0p247, allows remote attackers to cause a denial of service (CPU consumption) via a crafted gem version that triggers a large amount of backtracking in a regular expression.

Database specific
{
    "nvd_published_at": "2013-10-17T23:55:00Z",
    "cwe_ids": [
        "CWE-400"
    ],
    "severity": "MODERATE",
    "github_reviewed": true,
    "github_reviewed_at": "2023-03-08T19:16:03Z"
}
References

Affected packages

RubyGems / rubygems-update

Package

Name
rubygems-update
Purl
pkg:gem/rubygems-update

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.8.23.1

Affected versions

0.*

0.8.3
0.8.4
0.8.5
0.8.6
0.8.8
0.8.10
0.8.11
0.9.0
0.9.1
0.9.2
0.9.3
0.9.4
0.9.5

1.*

1.0.0
1.0.1
1.1.0
1.1.1
1.2.0
1.3.0
1.3.1
1.3.2
1.3.3
1.3.4
1.3.5
1.3.6
1.3.7
1.4.0
1.4.1
1.4.2
1.5.0
1.5.2
1.5.3
1.6.0
1.6.1
1.6.2
1.7.0
1.7.1
1.7.2
1.8.0
1.8.1
1.8.2
1.8.3
1.8.4
1.8.5
1.8.6
1.8.7
1.8.8
1.8.9
1.8.10
1.8.11
1.8.12
1.8.13
1.8.14
1.8.15
1.8.16
1.8.17
1.8.18
1.8.19
1.8.20
1.8.21
1.8.22
1.8.23

RubyGems / rubygems-update

Package

Name
rubygems-update
Purl
pkg:gem/rubygems-update

Affected ranges

Type
ECOSYSTEM
Events
Introduced
1.8.24
Fixed
1.8.26

Affected versions

1.*

1.8.24
1.8.25

RubyGems / rubygems-update

Package

Name
rubygems-update
Purl
pkg:gem/rubygems-update

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.0.0
Fixed
2.0.8

Affected versions

2.*

2.0.0
2.0.2
2.0.3
2.0.4
2.0.5
2.0.6
2.0.7

RubyGems / rubygems-update

Package

Name
rubygems-update
Purl
pkg:gem/rubygems-update

Affected ranges

Type
ECOSYSTEM
Events
Introduced
2.1.0.rc.1
Fixed
2.1.0

Affected versions

2.*

2.1.0.rc.1
2.1.0.rc.2