GHSA-crhg-xgrg-vvcc json
a12nserver vulnerable to potential SQL Injections via Knex dependency
published 3y ago modified 3y ago
- cvss
- 6.5
- version 3.1, GitHub
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- —
- no score, EPSS covers CVEs only
- public exploits
- 0
- none known
Summary
### Impact
Users of a12nserver that use MySQL might be vulnerable to SQL injection bugs.
If you use a12nserver and MySQL, update as soon as possible. This SQL injection bug might let an attacker obtain OAuth2 Access Tokens for users unrelated to those that permitted OAuth2 clients.
### Patches
The knex dependency has been updated to 2.4.0 in a12nserver 0.23.0
### Workarounds
No further workarounds
### References
* https://github.com/knex/knex/issues/1227 * https://nvd.nist.gov/vuln/detail/CVE-2016-20018 * https://www.ghostccamm.com/blog/knex_sqli/
Patch / fix
- npm @curveball/a12n-server 0.23.0
Is GHSA-crhg-xgrg-vvcc in your dependencies? Fencer shows which of your repositories are affected as soon as an advisory lands, and opens the fix as a pull request.
Check with FencerCVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| GitHub | 3.1 | 6.5 | CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| npm | @curveball/a12n-server | >=0.20.0, <0.23.0 |
0.23.0 |
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/curveball/a12n-server/commit/f4acd7549043e6e2b8917b77a50dce0756a922cc
web
-
github.com
/curveball/a12n-server/security/advisories/GHSA-crhg-xgrg-vvcc
web
-
nvd.nist.gov
/vuln/detail/CVE-2016-20018
advisory
-
github.com
/knex/knex/issues/1227
web
-
github.com
/curveball/a12n-server
package
-
github.com
/curveball/a12n-server/releases/tag/v0.23.0
web
-
ghostccamm.com
/blog/knex_sqli
web
Sources
- GitHub Advisory GHSA-crhg-xgrg-vvcc
Fencer Intel keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.