VDB
Sign up
HIGH

GHSA-jmm9-2p29-vh2w

activerecord vulnerable to SQL Injection

Quick fix

GHSA-jmm9-2p29-vh2w — activerecord: upgrade to the fixed version with the command below.

bundle update activerecord

Details

Ruby on Rails 3.0.x before 3.0.4 does not ensure that arguments to the limit function specify integer values, which makes it easier for remote attackers to conduct SQL injection attacks via a non-numeric argument.

Are you affected?

Enter the version of the package you're using.

Affected packages

RubyGems/activerecord
Introduced in: 3.0.0Fixed in: 3.0.4
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"]}'