CVE-2007-3227 json
Moderate severity vulnerability that affects rails
published 2007-06-14 19 y ago modified 2026-06-16 4 mo ago also GHSA-gm25-fpmr-43fj , EUVD-2017-0241
- cvss
- 4.3
- version 2.0, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 3.7%
- EPSS 3.7% chance of exploitation in 30 days, percentile 89%
- public exploits
- 1
- Exploit-DB
Summary
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.
Patch / fix
- rubygems rails 1.2.5
- rails Debian 14, Debian 13, Debian 12 1.2.5-1
debian advisories DEBIAN-CVE-2007-3227
Timeline
- First public exploit (EDB-30089)
- Published
Exploit prediction
3.68% chance of exploitation in the next 30 days, higher than 89% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- EDB-30089 Ruby on Rails 1.2.3 To_JSON - Script Injection remote, 2007-05-25
- securityfocus.com http://www.securityfocus.com/bid/24161 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 2.0 | 4.3 | AV:N/AC:M/Au:N/C:N/I:P/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | rails | <1.2.5 |
1.2.5 |
Classification
- Weakness
-
- CWE-79 Improper Neutralization of Input During Web Page Generation
- Technology feeds
References
-
securityfocus.com
/bid/24161
vdb-entry, web, exploit
-
security.gentoo.org
/glsa/glsa-200711-17.xml
vendor-advisory, web
-
novell.com
/linux/security/advisories/2007_24_sr.html
vendor-advisory, web
-
secunia.com
/advisories/25699
third-party-advisory, web, vendor-advisory
-
vupen.com
/english/advisories/2007/2216
vdb-entry, web, vendor-advisory
-
secunia.com
/advisories/27756
third-party-advisory, web, vendor-advisory
-
secunia.com
/advisories/27657
third-party-advisory, web, vendor-advisory
-
pastie.caboo.se
/65550.txt
web
-
osvdb.org
/36378
vdb-entry, web
-
bugs.gentoo.org
/show_bug.cgi?id=195315
web
-
weblog.rubyonrails.org
/2007/10/12/rails-1-2-5-maintenance-release
web
-
weblog.rubyonrails.org
/2007/10/5/rails-1-2-4-maintenance-release
web
-
dev.rubyonrails.org
/ticket/8371
web
-
nvd.nist.gov
/vuln/detail/CVE-2007-3227
advisory
-
github.com
/advisories/GHSA-gm25-fpmr-43fj
advisory
-
github.com
/rails/rails
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/rails/CVE-2007-3227.yml
web
Sources
- CVE List CVE-2007-3227
- GitHub Advisory GHSA-gm25-fpmr-43fj
- NVD CVE-2007-3227
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.