CVE-2023-47128
Piccolo-orm Piccolo vulnerability
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.
High priority: this vulnerability is rated critical and can be attacked over the network without a login.
Affected products
Piccolo. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Piccolo-orm Piccolo runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/piccolo-orm/piccolo/security/advisories/GHSA-xq59-7jf3-rjc6 · Exploit
- github.com/piccolo-orm/piccolo/commit/82679eb8cd1449cf31d87c9914a072e70168b6eb · Patch
- nvd.nist.gov/vuln/detail/CVE-2023-47128
- github.com/pypa/advisory-database/tree/main/vulns/piccolo/PYSEC-2023-241.yaml
- github.com/advisories/GHSA-xq59-7jf3-rjc6
- nvd.nist.gov/vuln/detail/CVE-2023-47128
- cve.org/CVERecord?id=CVE-2023-47128
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.