Catalysis of the reaction: feruloylacetyl-CoA + feruloyl-CoA(4-) + H2O <=> curcumin + 2 coenzyme A(4-) + carbon dioxide