A method and apparatus for correcting malformed joints, in particular the"hammer toe" contraction of the proximal interphalangeal joint. The disclosurecomprises a two-component implant: a proximal phalanx component and a middlephalanx component. An endosseous stem on each component is inserted axiallyintothe end of a respective host bone and, after insertion, the components areattached.The attached components are held together in various ways, for example adetentarm/aperture mechanism. Each component can be cannulated to allow for thepassageof a kirschner wire, if necessary, to stabilize adjacent joints such as theproximalinterphalangeal joint. The bones of the treated joint can be set to form adesired angleby adjusting the angle formed by the corresponding endosseous stems.