---
title: "CVE-2023-47128: piccolo SQL Injection via named transaction savepoints"
url: https://erroneo.us/security/cve/CVE-2023-47128/
description: "CVE-2023-47128 (piccolo (PyPI)): Piccolo is an object-relational mapping and query builder which supports asyncio. Prior to version 1.1.1, the handling of…"
type: vulnerability-record
section: "Security Digest"
date_published: 2023-11-10
date_modified: 2024-10-09
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2023-47128"
kev: false
cvss: 9.3
epss: 0.00782
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2023-47128: piccolo SQL Injection via named transaction savepoints

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 0.8% , percentile 55: FIRST’s model estimates a 0.8% chance of exploitation activity in the next 30 days, higher than 55% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes piccolo (PyPI) < 1.1.1, fixed in 1.1.1 . Check your lockfile, including transitive dependencies.

## What it is

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.

## Affected packages

- PyPI `piccolo` < 1.1.1 → fixed: 1.1.1

## Affected products (CVE record)

- piccolo-orm piccolo: < 1.1.1

## Severity

- GitHub_M CVSS 3.1: 9.1 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N`
- GitHub CVSS 4.0: 9.3 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:N/SC:N/SI:N/SA:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 0.78% probability of exploitation activity in the next 30 days; percentile 55.

## Sources

- [GitHub Advisory GHSA-xq59-7jf3-rjc6](https://github.com/advisories/GHSA-xq59-7jf3-rjc6)
- [CVE.org record CVE-2023-47128](https://www.cve.org/CVERecord?id=CVE-2023-47128)
- [NVD entry CVE-2023-47128](https://nvd.nist.gov/vuln/detail/CVE-2023-47128)
- [github.com](https://github.com/piccolo-orm/piccolo/security/advisories/GHSA-xq59-7jf3-rjc6)
- [github.com](https://github.com/piccolo-orm/piccolo/commit/82679eb8cd1449cf31d87c9914a072e70168b6eb)
- [github.com](https://github.com/pypa/advisory-database/tree/main/vulns/piccolo/PYSEC-2023-241.yaml)

---
Source page: https://erroneo.us/security/cve/CVE-2023-47128/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
