© 2015, Springer Japan. In this paper, we discuss how to model credit risk under the benchmark approach. Firstly we introduce an affine credit risk model. We then show how to price credit default swaps (CDSs) and introduce credit valuation adjustment (CVA) as an extension of CDSs. In particular, our model can capture right-way—and wrong-way exposure. This means, we capture the dependence structure of the default event and the value of the transaction under consideration. For simple contracts, we provide closed-form solutions. However, due to the fact that we allow for a dependence between the default event and the value of the transaction, closed-form solutions are difficult to obtain in general. Hence we conclude this paper with a reduced ...