HIGH
GHSA-mhwp-qhpc-h3jm
SQL Injection in Active Record
Quick fix
GHSA-mhwp-qhpc-h3jm — activerecord: upgrade to the fixed version with the command below.
bundle update activerecordDetails
SQL injection vulnerability in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb in the PostgreSQL adapter for Active Record in Ruby on Rails 2.x and 3.x before 3.2.19 allows remote attackers to execute arbitrary SQL commands by leveraging improper bitstring quoting.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2014-3482[ADVISORY]
- https://github.com/rails/rails/commit/1f2192e46d78ee0ba2b06373f2c24caf8440ff5b[WEB]
- https://github.com/rails/rails[PACKAGE]
- https://groups.google.com/g/rubyonrails-security/c/wDxePLJGZdI[WEB]
- http://openwall.com/lists/oss-security/2014/07/02/5[WEB]
- http://rhn.redhat.com/errata/RHSA-2014-0876.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"]}'