EX-23 2 csxtra2022ex23.htm 2022 EXHIBIT 23 CSX CORP 401(K) PLAN Document

EXHIBIT 23

Consent of Independent Registered Public Accounting Firm
We consent to the incorporation by reference in the Registration Statements (Forms S-8 No. 33-41735, No. 333-160650, No. 333-193785, and No. 333-238807) pertaining to the CSX Corporation 401(K) Plan of our report dated June 27, 2023, with respect to the financial statements and supplemental schedule of the CSX Corporation 401(K) Plan included in this Annual Report (Form 11-K) for the year ended December 31, 2022.

/s/ Ernst & Young LLP
Jacksonville, Florida
June 27, 2023

I-1