As far as I remember, CartoDB allows upload of geojson files. So open your csv in libre office calc or excel or wherever and concatenate it in this structure:
{
"type": "FeatureCollection",
"crs": { "type": "name", "properties": { "name": "urn:ogc:def:crs:OGC:1.3:CRS84" } },
"features": [
{ "type": "Feature", "properties": { "value": 1234, "label": "polygon1" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 10, 45 ], [ 11, 45 ], [ 11.8, 47.4 ] ] ] } },
{ "type": "Feature", "properties": { "value": 0815, "label": "polygon2" }, "geometry": { "type": "Polygon", "coordinates": [ [ [ 1, 45 ], [ 9, 45 ], [ 10, 47 ] ] ] } }
]
}
As you can see, each polygon has its coordinate pairs in the end at
"type": "Polygon", "coordinates": [ [
save it as a geojson file like "file.geoJSON" and upload it as a new dataset to cartodb.
The above mentioned example is visible here