Lucene search

K
gitlabHttps://gitlab.com/gitlab-org/security-products/gemnasium-dbGITLAB-07517FC0977F2D1E0AFC9909B7E1DE40
HistoryJul 12, 2022 - 12:00 a.m.

RCE bug with Serialized Columns in Active Record

2022-07-1200:00:00
https://gitlab.com/gitlab-org/security-products/gemnasium-db
gitlab.com
18

0.001 Low

EPSS

Percentile

47.4%

When serialized columns that use YAML (the default) are deserialized, Rails uses YAML.unsafe_load to convert the YAML data in to Ruby objects. If an attacker can manipulate data in the database (via means like SQL injection), then it may be possible for the attacker to escalate to an RCE.

There are no feasible workarounds for this issue, but other coders (such as JSON) are not impacted.