| 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 22, 2026, with respect to the financial statements and supplemental schedule of the CSX Corporation Capital Builder Plan included in this Annual Report (Form 11-K) for the year ended December 31, 2025. | ||