CVE-2007-3227
Description
Cross-site scripting (XSS) vulnerability in the to_json (ActiveRecord::Base#to_json) function in Ruby on Rails before edge 9606 allows remote attackers to inject arbitrary web script via the input values.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
No mitigations published for this CVE yet.
The vendor-content worker queues fetches as references arrive (check back in a few minutes). Or โ if you've already worked around this in production โ publish your fix to the community-verified tier.
โ Propose a mitigation on Community โ Mitigations published via the community go through AI scoring + 2 human reviewers + 7-day silent objection window before landing here withsource_tier=community-verified.
Exploits
Public proof-of-concept code below. AS-IS, for defenders and authorised testing only.
Exploit-DB
Ruby on Rails 1.2.3 To_JSON - Script Injection
OS impact
Debian Fixed 5 releases
| Version | Status | Fixed in |
|---|---|---|
| trixie | Fixed | 1.2.5-1 |
| sid | Fixed | 1.2.5-1 |
| forky | Fixed | 1.2.5-1 |
| bullseye | Fixed | 1.2.5-1 |
| bookworm | Fixed | 1.2.5-1 |
References
- http://weblog.rubyonrails.org/2007/10/12/rails-1-2-5-maintenance-release
- https://nvd.nist.gov/vuln/detail/CVE-2007-3227
- https://github.com/advisories/GHSA-gm25-fpmr-43fj
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml
- http://bugs.gentoo.org/show_bug.cgi?id=195315
- http://dev.rubyonrails.org/ticket/8371
- http://osvdb.org/36378
- http://pastie.caboo.se/65550.txt
- http://secunia.com/advisories/25699
- http://secunia.com/advisories/27657
- http://secunia.com/advisories/27756
- http://security.gentoo.org/glsa/glsa-200711-17.xml
- http://weblog.rubyonrails.org/2007/10/5/rails-1-2-4-maintenance-release
- http://www.novell.com/linux/security/advisories/2007_24_sr.html
- http://www.securityfocus.com/bid/24161
- http://www.vupen.com/english/advisories/2007/2216
- https://security-tracker.debian.org/tracker/CVE-2007-3227
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.