EX-23 5 csx-12312021ex23consentofp.htm CONSENT OF INDEPENDENT REGISTERED PUBLIC Document

Exhibit 23
Consent of Independent Registered Public Accounting Firm
We consent to the incorporation by reference in the following Registration Statements:
 
Registration Statement (Form S-8 No. 333-238807) pertaining to the CSX Corporation 401(k) Plan,
Registration Statement (Form S-8 No. 333-231259) pertaining to the CSX 2019 Stock and Incentive Award Plan,
Registration Statement (Form S-8 No. 333-226248) pertaining to the CSX Corporation 2018 Employee Stock Purchase Plan,
Registration Statement (Form S-8 No. 333-201172) pertaining to the CSX Directors’ Deferred Compensation Plan,
Registration Statement (Form S-8 No. 333-251550) pertaining to the CSX Executives’ Deferred Compensation Plan,
Registration Statement (Form S-8 No. 333-166769) pertaining to the 2010 CSX Stock and Incentive Award Plan,
Registration Statement (Form S-8 No. 333-160652) pertaining to the CSX Corporation Capital Builder Plan,
Registration Statement (Form S-8 No. 333-110589) pertaining to the 2002 Deferred Compensation Plan of CSX Corporation and Affiliated Companies, and

of our reports dated February 16, 2022, with respect to the consolidated financial statements of CSX Corporation, and the effectiveness of internal control over financial reporting of CSX Corporation, included in this Annual Report (Form 10-K) of CSX Corporation for the year ended December 31, 2021.

/s/ Ernst & Young LLP

Jacksonville, Florida
February 16, 2022