GHSA-2jm2-2p35-rp3j — devcode-it/openstamanager
HIGHGHSA-2jm2-2p35-rp3j is a high-severity (CVSS 8.8) SQL Injection vulnerability in devcode-it/openstamanager. A fix is available for devcode-it/openstamanager — see the affected versions and patch details below.
OpenSTAManager has Authenticated SQL Injection in API via 'display' parameter
EPSS Exploitation Probability
EPSS (Exploit Prediction Scoring System) is a daily probability model maintained by FIRST.org. It estimates the likelihood a CVE will be exploited in production environments within the next 30 days, derived from real-world threat intelligence signals.
How urgent is this, really
GHSA-2jm2-2p35-rp3j plotted by exploitation likelihood (EPSS) against impact (CVSS). The shaded corner — EPSS 50%+ and CVSS 7.0+ — is where this CVE doesn't sit, though severity or exploitability alone can still warrant action.
Where this sits among everything scored
Of 377,166 CVEs with a current EPSS score, this one falls in the < 10% band (highlighted). Real counts from FIRST.org, not a sample — log-scaled since the landscape is heavily right-skewed.
Real-World Exposure
devcode-it/openstamanagerReal-time download stats are indexed for npm and PyPI packages. This vulnerability affects Packagist packages — download data is not available via public APIs for these ecosystems.
Description
Summary
An authenticated SQL Injection vulnerability in the API allows any user, regardless of permission level, to execute arbitrary SQL queries. By manipulating the display parameter in an API request, an attacker can exfiltrate, modify, or delete any data in the database, leading to a full system compromise.
Details
The vulnerability is located in the retrieve() method within src/API/Manager.php.
User input from the display GET parameter is processed without proper validation. The code strips the surrounding brackets [], splits the string by commas, and then passes each resulting element directly into the selectRaw() function of the query builder.
// User input from 'display' is taken without sanitization.
$select = !empty($request['display']) ? explode(',', substr((string) $request['display'], 1, -1)) : null;
// ...
// The unsanitized input is passed directly to `selectRaw()`.
foreach ($select as $s) {
$query->selectRaw($s);
}
Since selectRaw() is designed to execute raw SQL expressions, it executes any malicious SQL code provided in the display parameter.
PoC
- Log in to an OpenSTAManager instance as any user.
- Navigate to the user's profile page to obtain their personal API Token.
- Use this API token to send a specially crafted GET request to the API endpoint.
Time-Based Blind Injection Test:
Replace <your_host>, <your_token>, and <resource_name> with your actual values. anagrafiche is a valid resource.
curl "http://<your_host>/openstamanager/api?token=<your_token>&resource=anagrafiche&display=[1,SLEEP(5)]"
The server will delay its response by approximately 5 seconds, confirming the SLEEP(5) command was executed by the database.
Impact
This is a critical SQL Injection vulnerability. Any authenticated user, even those with the lowest privileges, can exploit this vulnerability to:
- Exfiltrate all data from the database (e.g., user credentials, customer information, invoices, internal data).
- Modify or delete data, compromising data integrity.
- Potentially achieve further system compromise, depending on the database user's privileges and system configuration.
Affected Packages
| Ecosystem | Package | Vulnerable range | Fix |
|---|---|---|---|
| 🐘Packagist | devcode-it/openstamanager | all versions | 2.9.5composer require devcode-it/openstamanager:^2.9.5 |
Detection & mitigation playbook
Open-source dependencyDetect
Scan your dependency tree (package-lock.json, pnpm-lock.yaml, requirements.txt, go.sum, etc.) for devcode-it/openstamanager, including transitive dependencies — a direct dependency you never call can still pull in a vulnerable version.
Fix
Update devcode-it/openstamanager to 2.9.5 or later, then make sure no transitive (indirect) dependency still pins the vulnerable range — O3 confirms GHSA-2jm2-2p35-rp3j is resolved across your whole dependency graph.
Workarounds
If you can't upgrade right away: gate or disable the affected feature, validate untrusted input at the boundary, and avoid passing attacker-controlled data into the vulnerable path. O3's runtime protection blocks exploitation in production as an interim safeguard until the upgrade lands.
How O3 protects you
O3 Security's impact-aware SCA analyses which vulnerable code paths your application actually calls, so a match like GHSA-2jm2-2p35-rp3j can be triaged on real exposure rather than presence alone.
Tailored to GHSA-2jm2-2p35-rp3j. Runtime protection reduces exposure until a permanent patch is applied and verified — it complements patching, it doesn't replace it.
Frequently Asked Questions
Is GHSA-2jm2-2p35-rp3j in your dependencies?
O3 Security finds GHSA-2jm2-2p35-rp3j across Packagist dependencies, including transitive ones, and its impact-aware SCA ranks findings by whether your code actually calls the vulnerable path.