Exhibit 23.2

CONSENT OF INDEPENDENT REGISTERED PUBLIC ACCOUNTING FIRM

We consent to the incorporation by reference in the Registration Statement on Form S-3 filed pursuant to Rule 462(b) of the Securities Act of 1933 of the reference to our firm under the caption “Experts” and to the incorporation by reference of our report dated March 18, 2020, with respect to the consolidated financial statements of ContraFect Corporation included in the Registration Statement (Form S-3 No. 333-228626) and related Prospectus of ContraFect Corporation for the registration of its common stock and warrants.

/s/ Ernst & Young LLP

Hartford, Connecticut

May 21, 2020