Exhibit 23.2

Consent of Independent Registered Public Accounting Firm

We consent to the incorporation by reference in this Registration Statement on Form S-3 of CNB Financial Corporation of our reports dated March 11, 2026, with respect to the consolidated financial statements and the effectiveness of internal control over financial reporting, included in CNB Financial Corporation’s Annual Report on Form 10-K for the year ended December 31, 2025. We also consent to the reference to our firm under the caption “Experts” in this Registration Statement.

/s/ Forvis Mazars, LLP

Indianapolis, Indiana

June 26, 2026