Article 38 Vienna Convention on the Law of Treaties
Rules in a treaty becoming binding on third States through international custom
Nothing in articles 34 to 37 precludes a rule set forth in a treaty from becoming binding upon a third State as a customary rule of international law, recognized as such.
See also: Article 37 Vienna Convention on the Law of Treaties