We prove a conjecture by Sturmfels and Sullivant, that the cut ideal is generated by quadrics if and only if the graph is free of K4 minors. It is a corollary of a fiber product type theorem with which one can glue together graphs in two non-adjacent vertices and get generators for the cut ideal.