§1. If a person competent to assist according to the norm of law cannot be present or approached without grave inconvenience, those who intend to enter into a true marriage can contract it validly and licitly before witnesses only: 1/ in danger of death; 2/ outside the danger of death provided that it is prudently foreseen that the situation will continue for a month.
§2. In either case, if some other priest or deacon who can be present is available, he must be called and be present at the celebration of the marriage together with the witnesses, without prejudice to the validity of the marriage before witnesses only.
§3. In iisdem rerum adiunctis, de quibus in §1, nn. 1 et 2, Ordinarius loci cuilibet sacerdoti catholico facultatem conferre potest matrimonium benedicendi christifidelium Ecclesiarum orientalium quae plenam cum Ecclesia catholica communionem non habeantsi sponte id petant, et dummodo nihil validae vel licitae celebrationi matrimonii obstet. Sacerdos ipse, si id prudenter fieri possit, auctoritatem competentem Ecclesiae non catholicae, cuius interest, de re certiorem faciat.
Source: Code of Canon Law (Vatican.va)