CVE-2026-113632
Camel-Google-Mail, -Drive, -Calendar, -Sheets: credential confusion - the component kept one API client built from the credentials of the first endpoint and served it to every endpoint, so a route configured for one Google account read and changed the data of another account
Description
The google-mail, google-mail-stream, google-drive, google-calendar, google-calendar-stream, google-sheets and google-sheets-stream components created a single Google API client per component, from the credentials (clientId, clientSecret, refreshToken or accessToken, or serviceAccountKey with delegate) of the first endpoint that needed one, and handed that client to every other endpoint of the component regardless of the credentials configured on it. In an application whose routes use several Google accounts, every endpoint therefore acted as the first account: messages were read and sent in its mailbox, and files, events and spreadsheets were read and changed in it, without any log entry. An application that uses a single Google account is not affected.
Mitigation
Credit
This issue was discovered by Shashank Mohan Jain
Notes
The JIRA ticket: https://issues.apache.org/jira/browse/CAMEL-25889 refers to the various commits that resolved the issue, and have more details.