MEDIUM
GHSA-gjxw-5w2q-7grf
Rails activerecord gem has Improper Input Validation vulnerability
Quick fix
GHSA-gjxw-5w2q-7grf — activerecord: upgrade to the fixed version with the command below.
bundle update activerecordDetails
Ruby on Rails 2.3.9 and 3.0.0 does not properly handle nested attributes, which allows remote attackers to modify arbitrary records by changing the names of parameters for form inputs.
Are you affected?
Enter the version of the package you're using.
Affected packages
References
- https://nvd.nist.gov/vuln/detail/CVE-2010-3933[ADVISORY]
- https://github.com/rails/rails/commit/2d96bccb1e8b62e3e11ca0c5d38aaa8cece889ae[WEB]
- https://github.com/rails/rails/commit/96183e0f284bab27667e5a38fa6a1578eb029585[WEB]
- https://github.com/rails/rails[PACKAGE]
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activerecord/CVE-2010-3933.yml[WEB]
- https://web.archive.org/web/20101129225633/http://securitytracker.com/alerts/2010/Oct/1024624.html[WEB]
- https://web.archive.org/web/20111225083933/http://secunia.com/advisories/41930[WEB]
- https://web.archive.org/web/20201208053819/http://securitytracker.com/id?1024624[WEB]
- http://weblog.rubyonrails.org/2010/10/15/security-vulnerability-in-nested-attributes-code-in-ruby-on-rails-2-3-9-and-3-0-0[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"]}'