Black Friday60% off BLACKFRIDAY2026
PlatformPlansPartners
Resources
ToolsBlogDocs
Sign Up →
high·Product Based Web Vulnerabilities·Updated Nov 24, 2026

CVE-2026-104129 Scanner

CVE-2026-104129 Scanner - SQL Injection vulnerability in pREST

Est. Time~10 seconds
Scan TypeGroup Scan
Targetsdomain, subdomain, ipv4
CostFree
3
Times Used
continuous scan runs
4.6k
Continuously Checked
assets under CS
0
Vulnerabilities Found
confirmed findings
References
8.1
CVSShigh
Exploitable remotely over the internet · low-privilege account sufficient.
Description

pREST (PostgreSQL REST) is an API that delivers an application on top of a Postgres database. Prior to 2.4.0, the vulnerable parameter is _groupby, handled by GroupByClause in adapters/postgres/postgres.go. adapters/postgres/postgres.go uses the weaker isSafeSQLExpression check for this function-expression branch instead of the stricter single-field validator used for _select. That check validates only the outer function name against a 13-function allowlist and permits nested subqueries, trailing UNION syntax, and inner pg_ functions. controllers/crud.go concatenates the GROUP BY expression while parameterizing only WHERE values, allowing attacker-controlled SQL structure into the clause. Default configuration permits unauthenticated access; a restricted installation may require a low-privilege table reader. UNION-based extraction requires compatible column counts and types and was not verified end to end, but a delay-producing function can cause denial of service without that alignment. This issue is fixed in 2.4.0.

Attack Vector
Network
Privileges Req.
Low
User Interaction
None
Affected
prestby prest
< 2.4.0
Updated Nov 24, 2026View on NVD →
Detail

The "pREST" software is a RESTful API framework designed for managing PostgresSQL databases. It is utilized by developers and database administrators for building APIs with minimal coding effort. The software simplifies database interaction, making it particularly popular among startups and small enterprises seeking rapid development cycles. Its open-source nature allows for widespread collaboration and improvement. By default, the software prioritizes ease of use over stringent security configurations. Despite this focus, it is versatile enough for use in various application scenarios.

The SQL Injection vulnerability identified in pREST allows unauthorized users to exploit the _groupby query parameter in the table select endpoint. Attackers can manipulate this endpoint to execute arbitrary SQL subqueries. This threat emerges when the GroupByClause treats the _groupby field as a raw SQL expression without thorough validation. Such vulnerabilities can occur when critical input validation checks are overlooked or inadequately implemented. The risk is exacerbated by default settings that disable authentication, leaving systems increasingly exposed.

Technical details reveal that the vulnerable parameter is the _groupby, where any field containing parentheses is misinterpreted as a raw SQL expression. This misinterpretation occurs in the adapters/postgres/postgres.go file, where only the outer function name is validated against an allowlist. This validation flaw permits nested subqueries and other SQL expressions that may manipulate the resulting SQL command execution. Furthermore, attackers can craft input to introduce delay functions, leading to potential denial of service. This nuanced vulnerability highlights the necessity for rigorous input validation processes.

When exploited, such vulnerabilities can have severe repercussions on the database security and overall system integrity. Attackers can execute malicious SQL expressions, potentially leading to data breaches or unauthorized data modifications. Moreover, delay functions could be employed as part of an attack strategy to create denial of service conditions, thereby disrupting service availability. Furthermore, error messages returned from these injections could inadvertently reveal sensitive information about the database structure. Therefore, this vulnerability's exploitation could have far-reaching impacts on the affected system's security posture.

REFERENCES

Solution Advice
  • Upgrade pREST to version 2.4.0 or later to mitigate SQL Injection risks.
  • Enable JWT authentication to add a layer of security.
  • Implement more stringent validation on SQL expressions in the _groupby parameter.
  • Ensure that authentication is not disabled by default.
  • Restrict database error message outputs to prevent information leakage.

Get AI-powered remediation steps tailored to your asset.

Try AI Solutions →

Check your infrastructure.
Right now.

12,000+ scanners. Free to start. No credit card required.