GHSA-r8fh-hq2p-7qhq

Suggest an improvement
Source
https://github.com/advisories/GHSA-r8fh-hq2p-7qhq
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2017/10/GHSA-r8fh-hq2p-7qhq/GHSA-r8fh-hq2p-7qhq.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-r8fh-hq2p-7qhq
Aliases
Published
2017-10-24T18:33:36Z
Modified
2024-11-29T05:28:07.785614Z
Summary
Active Record contains SQL Injection via improper range quoting
Details

SQL injection vulnerability in activerecord/lib/activerecord/connectionadapters/postgresql/quoting.rb in the PostgreSQL adapter for Active Record in Ruby on Rails 4.x before 4.0.7 and 4.1.x before 4.1.3 allows remote attackers to execute arbitrary SQL commands by leveraging improper range quoting.

Database specific
{
    "nvd_published_at": "2014-07-07T11:01:30Z",
    "cwe_ids": [
        "CWE-89"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:54:02Z"
}
References

Affected packages

RubyGems / activerecord

Package

Name
activerecord
Purl
pkg:gem/activerecord

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.0.0
Fixed
4.0.7

Affected versions

4.*

4.0.0
4.0.1.rc1
4.0.1.rc2
4.0.1.rc3
4.0.1.rc4
4.0.1
4.0.2
4.0.3
4.0.4.rc1
4.0.4
4.0.5
4.0.6.rc1
4.0.6.rc2
4.0.6.rc3
4.0.6

RubyGems / activerecord

Package

Name
activerecord
Purl
pkg:gem/activerecord

Affected ranges

Type
ECOSYSTEM
Events
Introduced
4.1.0
Fixed
4.1.3

Affected versions

4.*

4.1.0
4.1.1
4.1.2.rc1
4.1.2.rc2
4.1.2.rc3
4.1.2