Section 8. A marriage solemnized within the commonwealth which is prohibited by reason of consanguinity or affinity between the parties, or of either of them having a former wife or husband living, shall be void without a judgment of divorce or other legal process.