VDB
Sign up
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 activerecord

Details

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

RubyGems/activerecord
Introduced in: 2.0.0Fixed in: 3.2.19
Fixbundle update activerecord

References

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"]}'