Primer formulation which contains (1) at least one alkoxysilane monomer of the general formula R1nSi(OR2)4-n (I), wherein R1 stands for an organic residue which contains at least one ethylenically unsaturated, polymerizable group, R2 stands for a C1-C8 alkylorganic residue and n is 1, 2 or 3, wherein the residues R1 and R2 can each be the same or different; (2) at least one polyhydrogen fluoride salt of the general formula (R9)+(Hx-1Fx)−z (II), wherein R9 stands for a metal cation from the series of the alkali, alkaline earth or transition metals or for an ammonium ion of the formula (R5)(R6)(R7)(R8)N+, in which R5 R6 R7 and R8 each independently of each other stand for H or C1 to C12 alkyl, C3 to C12 alkenyl or C6-C12 aryl residues, wherein R5, R6, R7 and R8 can be the same or different, and wherein two of these residues can be bound together to form a heterocycle together with the nitrogen atom and wherein three of the residues and the nitrogen atom can together form a pyridinium ion, x is an integer from 2 to 5, preferably 2 to 4, in particular 3, z corresponds to the valence of the cationic residue R9, (3) organic solvent, and (4) water.