HIGH
GHSA-r8fh-hq2p-7qhq
Active Record contains SQL Injection via improper range quoting
Quick fix
GHSA-r8fh-hq2p-7qhq — activerecord: upgrade to the fixed version with the command below.
bundle update activerecordDetails
SQL injection vulnerability in activerecord/lib/active_record/connection_adapters/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.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-3483[ADVISORY]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2014-3483.yml[WEB]
- https://groups.google.com/forum/message/raw?msg=rubyonrails-security/wDxePLJGZdI/WP7EasCJTA4J[WEB]
- https://web.archive.org/web/20200228150648/http://www.securityfocus.com/bid/68341[WEB]
- http://openwall.com/lists/oss-security/2014/07/02/5[WEB]
- http://rhn.redhat.com/errata/RHSA-2014-0877.html[WEB]
- http://www.debian.org/security/2014/dsa-2982[WEB]
Check it before you install it
One call answers whether to add this package: known advisories, CISA KEV, and whether the name is a hallucinated or freshly squatted one. No key needed to try it.
curl -s https://vdb.ai.kr/v1/ai/check-packages \
-H 'Content-Type: application/json' \
-d '{"packages":["pkg:gem/activerecord"]}'