Vulnerabilities / CVE-2015-4412

critical

CVE-2015-4412

rubygem-bson: data injection vulnerability through a crafted ObjectId

Published Modified CWE 400
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
GHSA9.8CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Red Hat5.1AV:N/AC:H/Au:N/C:P/I:P/A:P

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA, Ruby Advisory DB. Rated lower by Red Hat (low).

Description

BSON injection vulnerability in the legal? function in BSON (bson-ruby) gem before 3.0.4 for Ruby allows remote attackers to cause a denial of service (resource consumption) or inject arbitrary data via a crafted string.

Affected packages and fixed versions

SourcePackageFixed in
rubygems::GitHub Security Advisory RubyGemsbson1.12.3, 3.0.4
rubygems::Ruby Advisory Databasebson~> 1.12.3, >= 3.0.4
Red Hatrh-ror41-rubygem-bson, rh-ror41-rubygem-bson-doc, ror40-rubygem-bson and 3 moreno fix listed
Show all 8 entries from 3 sources
SourcePackageFixed in
rubygems::GitHub Security Advisory RubyGemsbson1.12.3, 3.0.4
rubygems::Ruby Advisory Databasebson~> 1.12.3, >= 3.0.4
Red Hatrh-ror41-rubygem-bsonno fix listed
Red Hatrh-ror41-rubygem-bson-docno fix listed
Red Hatror40-rubygem-bsonno fix listed
Red Hatror40-rubygem-bson-docno fix listed
Red Hatruby193-rubygem-bsonno fix listed
Red Hatruby193-rubygem-bson-docno fix listed

References

All 14 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.