EX-23 2 capbldr2023ex23.htm 2023 EX-23 CAPITAL BUILDER 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-29136 and No. 333-160652) pertaining to the CSX Corporation Capital Builder Plan of our report dated June 20, 2024, with respect to the financial statements and supplemental schedules of the CSX Corporation Capital Builder Plan included in this Annual Report (Form 11-K) for the year ended December 31, 2023.

/s/ Ernst & Young LLP
Jacksonville, Florida
June 20, 2024
I-1