Mariano Rivera will have surgery on his injured right knee June 12, the New York Yankees' closer said Wednesday.