CVE-2023-47128 json
piccolo SQL Injection via named transaction savepoints
published 3y ago modified 4mo ago also GHSA-xq59-7jf3-rjc6 , PYSEC-2023-241 , EUVD-2023-0197
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.0%
- EPSS 1.0% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
Summary
Piccolo is an object-relational mapping and query builder which supports asyncio. Prior to version 1.1.1, the handling of named transaction `savepoints` in all database implementations is vulnerable to SQL Injection via f-strings. While the likelihood of an end developer exposing a `savepoints` `name` parameter to a user is highly unlikely, it would not be unheard of. If a malicious user was able to abuse this functionality they would have essentially direct access to the database and the ability to modify data to the level of permissions associated with the database user. A non exhaustive list of actions possible based on database permissions is: Read all data stored in the database, including usernames and password hashes; insert arbitrary data into the database, including modifying existing records; and gain a shell on the underlying server. Version 1.1.1 fixes this issue.
Patch / fix
Is CVE-2023-47128 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 FencerCISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2y ago
Exploit prediction
0.96% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-15).
Exploits and checks
- github.com https://github.com/piccolo-orm/piccolo/security/advisories/GHSA-xq59-7jf3-rjc6 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
| OSV | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | piccolo | <1.1.1 |
1.1.1 |
Affected products
- piccolo-orm piccolo
Classification
- Weakness
-
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command
References
-
github.com
/piccolo-orm/piccolo/commit/82679eb8cd1449cf31d87c9914a072e70168b6eb
web, patch
-
github.com
/piccolo-orm/piccolo/security/advisories/GHSA-xq59-7jf3-rjc6
web, exploit, vendor-advisory, evidence, advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-47128
advisory
-
github.com
/piccolo-orm/piccolo
package
-
github.com
/pypa/advisory-database/tree/main/vulns/piccolo/PYSEC-2023-241.yaml
web
Sources
- CVE List CVE-2023-47128
- GitHub Advisory GHSA-xq59-7jf3-rjc6
- NVD CVE-2023-47128
- OSV PYSEC-2023-241
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.