Bug 2529290 (CVE-2026-86323) - CVE-2026-86323 foreman: authorization flaw in the mail-notification endpoints implemented by Api::V2::MailNotificationsController
Summary: CVE-2026-86323 foreman: authorization flaw in the mail-notification endpoints...
Keywords:
Status: NEW
Alias: CVE-2026-86323
Deadline: 2026-12-15
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-07 06:27 UTC by OSIDB Bzimport
Modified: 2026-11-12 18:50 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-09-07 06:27:05 UTC
Foreman contains an authorization flaw in the mail-notification endpoints implemented by Api::V2::MailNotificationsController. The controller resolves the target user directly from the request parameter without verifying that the authenticated user is authorized to access or modify that user's mail-notification configuration.

For the read operation, GET /api/v2/users/:id/mail_notifications assigns @user = User.find(params[:id]) without an ownership or parent-user authorization check. Because the view_mail_notifications permission is included in the default Viewer role, a user with Viewer privileges can retrieve another user's mail-notification subscriptions, including configured mail_query search strings. This results in cross-user disclosure of notification configuration and potentially sensitive information about the resources or activity being monitored by the victim.
The same controller also fails to correctly enforce authorization for mail-notification creation and modification through POST and PUT /api/v2/users/:user_id/mail_notifications. The validate_params method invokes deny_access when the requester is neither the target user nor an administrator, but does not halt execution after denying access. Consequently, the controller action continues and may persist the unauthorized notification configuration despite returning a 403 response or subsequently triggering a DoubleRenderError (HTTP 500).

An attacker can therefore use the affected API to read another user's mail-notification configuration and, with the required permissions for the write path, modify or create mail-notification records for that user. The underlying issue is improper authorization of the target user combined with failure to terminate request processing after an authorization denial.


Note You need to log in before you can comment on or make changes to this bug.