Bug 2588692 (CVE-2026-142124)

Summary: CVE-2026-142124 rhsm-subscriptions: rhsm-subscriptions: SQL injection in EventRecordRepository.findConflictingEvents via orgId and instanceId
Product: [Other] Security Response Reporter: OSIDB Bzimport <bzimport>
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: kaycoth, mfindra, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: ---
Doc Text:
A flaw was found in rhsm-subscriptions. The findConflictingEvents method constructs a native SQL query from event orgId and instanceId values without escaping or parameter binding. If an attacker can supply a crafted value that is propagated as the event instanceId, SQL injection may be possible, potentially disclosing or modifying data in the service database.
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2563953    

Description OSIDB Bzimport 2026-12-02 13:35:01 UTC
A flaw was found in rhsm-subscriptions (Subscription Watch). The EventRecordRepository.findConflictingEvents method builds a native SQL query by formatting the orgId and instanceId values of events into single-quoted string literals without escaping or parameter binding, and executes it with createNativeQuery. Event ingestion validates only that instanceId is not null. The instanceId of events derived from host inventory is the host's provider_id, which host inventory accepts as any string of up to 500 characters. Based on static code review, a customer-controlled provider_id may therefore reach the query and alter the executed SQL, which could allow reading or modifying data in the service database. This was determined by static code review; it has not been tested against a running instance.

Comment 1 Michal Findra 2026-12-03 00:14:35 UTC
*** Bug 2588683 has been marked as a duplicate of this bug. ***

Comment 2 Michal Findra 2026-12-03 00:14:45 UTC
*** Bug 2588684 has been marked as a duplicate of this bug. ***

Comment 3 Michal Findra 2026-12-03 00:14:53 UTC
*** Bug 2588685 has been marked as a duplicate of this bug. ***