{"id":"CVE-2026-71276","published":"2026-08-05T13:24:52.080","lastModified":"2026-08-10T12:17:30.090","description":"Magistrala (formerly Mainflux)'s message-readers API reads a value from the HTTP query string (readers/api/http/transport.go) with no validation and interpolates it directly into raw SQL queries via fmt.Sprintf in both the PostgreSQL reader (readers/postgres/messages.go: ) and the TimescaleDB reader (readers/timescale/messages.go, same pattern), enabling SQL injection by any authenticated user able to query channel messages.","cvssScore":7.1,"cvssSeverity":"HIGH","cvssVector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:L/A:N","cwes":["CWE-89"],"vendors":[],"products":[],"references":[{"url":"https://github.com/absmach/magistrala","tags":[]},{"url":"https://github.com/absmach/magistrala/blob/main/readers/postgres/messages.go","tags":[]}],"exploitRefs":[{"url":"https://github.com/absmach/magistrala","tags":[]},{"url":"https://github.com/absmach/magistrala/blob/main/readers/postgres/messages.go","tags":[]}],"hasPoc":true,"ai":{"summary":"The flaw allows SQL injection by authenticated users due to direct interpolation of unvalidated HTTP query string values into raw SQL queries.","exploitability":"Exploitation requires an authenticated user with permission to query channel messages, making it moderately difficult.","blast_radius":"If exploited, the impact could be high, potentially leading to full database compromise for affected systems.","remediation":"Validate and sanitize all input before using it in SQL queries to prevent SQL injection attacks.","tags":["rce","sql-injection","web","auth-required"],"model":"qwen2.5:7b-instruct","analyzedAt":"2026-08-11T07:04:01.016Z"}}