← Security advisories
Apache Camel security advisory

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

Upgrade to Apache Camel 4.24.0, which fixes the issue. Users on the 4.22.x LTS release stream should upgrade to 4.22.3. Users on the 4.18.x LTS release stream should upgrade to 4.18.6.

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.

References