CVE
CVE-2026-120057, CVE-2026-120058, CVE-2026-120059, CVE-2026-120060, CVE-2026-120061, CVE-2026-120062, CVE-2026-120063, CVE-2026-120064, CVE-2026-120065, CVE-2026-120066, CVE-2026-120067, CVE-2026-120830, CVE-2026-120831, CVE-2026-120752, CVE-2026-120833, CVE-2026-120988
CWE
CWE-120, CWE-121, CWE-122, CWE-125, CWE-134, CWE-89, CWE-59, CWE-502, CWE-79
Affected Surface
- C / PostgreSQL ODBC driver `psqlODBC` (`postgresql-interfaces/psqlodbc`) versions `< 18.00.0006` (`CVE-2026-120057` through `CVE-2026-120067` / `GHSA-qhmr-5339-q33r`, `GHSA-6rmx-9q62-4w6m`, `GHSA-44rq-72jh-x2h8`, `GHSA-4mfx-cfxx-c877`, `GHSA-hfm6-qfx8-v4xq`, `GHSA-gg8f-fx3w-rj33`, `GHSA-285r-84w3-xcxv`, `GHSA-7pq2-q7mj-ph8c`, `GHSA-9cg8-r57h-h6jj`, `GHSA-wj7r-6pj3-62g8`, and `GHSA-3r96-h2q4-6pxh`, fixed in `18.00.0006`)
- C / Virtualization & container user-mode networking `libslirp` (`slirp/libslirp`, used by QEMU, Podman, User-Mode Linux, and VirtualBox) prior to commits `21b33a6c55` and `bad35bd3b5` (`CVE-2026-120830`, CVSS 7.4 High; and `CVE-2026-120831`, CVSS 6.5 Medium)
- PyPI `PyMuPDF` (`pymupdf`) versions `>= 1.25.3, < 2.0.0` (`CVE-2026-120752`, CVSS 7.5 High, fixed in commit `d4298ead84` / `2.0.0`)
- PyPI `labbench` (`usnistgov/labbench`) versions `< 0.46.1` (`CVE-2026-120833`, CVSS 7.8 High, fixed in `0.46.1`)
- npm `billboard.js` (`naver/billboard.js`) versions `< 4.1.3` (`CVE-2026-120988` / `GHSA-g5px-mcqp-3ghp`, fixed in `4.1.3`)
TL;DR
Between 19:18 UTC on 2 November and 08:17 UTC on 3 November 2026, NVD and GitHub published 16 vulnerabilities across five widely used open-source libraries:
- PostgreSQL
psqlODBC< 18.00.0006(11 CVEs:CVE-2026-120057throughCVE-2026-120067, five rated CVSS 7.5 High): A comprehensive security review of PostgreSQL’s official C ODBC driver uncovered 11 memory-corruption, format-string, SQL-injection, and symlink-following flaws across both server-facing and application-facing boundaries. On the server/network side (or from an unprivileged database user able to create a view or table),CC_send_function()copiedloreadlarge-object replies into the caller’s buffer using the server-supplied length without checking the buffer size (CVE-2026-120057);QR_from_PGresult()reused a cursor’s tuple cache when a subsequentFETCHreturned more columns than the first fetch (CVE-2026-120058); updatable cursors placed a server-supplied auto-increment column name directly into aprintfformat string (CVE-2026-120059) and unescaped double-quoted SQL statements (CVE-2026-120065), and copied hiddenctid/oidcolumns into a 32-byte stack buffer (tidoidbuf) that even a plain SQL view definingSELECT repeat('x', 200) AS ctidcould overflow (CVE-2026-120067). On the application side,processParameters()wrote{fn ...}ODBC escape argument offsets into an uninitialized 16-entry stack array without bounds checking (CVE-2026-120061),PGAPI_SpecialColumns()spliced raw table and schema names into catalog SQL (CVE-2026-120062),identifierEscape()overflowed 128-byte stack buffers by up to 2 bytes (CVE-2026-120063), andSQLBindCol/SQLColAttribute/SQLSetPoslacked index bounds checks (CVE-2026-120064). Fixed inpsqlODBC 18.00.0006. libslirpicmp_forward_error()heap out-of-bounds read (CVE-2026-120830, CVSS 7.4 High) andif_output()session queue corruption (CVE-2026-120831, CVSS 6.5 Medium): Inlibslirp(the user-mode TCP/IP stack used by QEMU, Podmanslirp4netns, and rootless container runtimes),icmp_forward_error()insrc/ip_icmp.csized the quoted original IPv4 packet in an ICMP error reply from the packet’s IP headerip_lenfield (s_ip_len = msrc->m_lenwas not enforced) rather than the actualmbuflengthmsrc->m_len. A guest VM or container sending a truncated IPv4 packet whoseip_lenheader claimed a larger length causedlibslirpto copy up toICMP_MAXDATALENbytes of adjacent host heap memory aftermsrc->m_datainto the ICMP reply returned to the guest. Separately,if_output()insrc/if.cunlinkedifm->m_nextpktinstead of the session queue head when demoting a session fromif_fastqtoif_batchq, corrupting the circular doubly linked packet list.PyMuPDF1.25.3through< 2.0.0stack buffer overflow (CVE-2026-120752, CVSS 7.5 High) and NISTlabbench< 0.46.1automatic pickle execution (CVE-2026-120833, CVSS 7.8 High): InPyMuPDF(src/extra.i),JM_set_annot_callout_line()declaredfz_point points[3]on the stack and loopedfor (int i = 0; i < count; i++)without checking thatcount <= 3, allowing a caller passing a 4+ elementcalloutsequence toPage.add_freetext_annot()to overflow the stack. In NIST’slabbench(< 0.46.1),labbench.read()andread_relational()automatically dispatched any path ending in.por.pickletopandas.read_pickle();0.46.1refuses to unpickle unlessLABBENCH_AUTOLOAD_PICKLE=1is set.- NAVER
billboard.js< 4.1.3split-tag XSS bypass in HTML legend templates (CVE-2026-120988/GHSA-g5px-mcqp-3ghp): The sanitizer added forCVE-2026-1513(src/module/sanitize.ts) only matched closed<...>tags (/<\/?[^>]*>|[^<>\s]+>/g) and ran on each series item individually before concatenating them withhtml += contentand writingwrapper.html(html). Splitting an HTML tag across two series names (such as["<img src=x onerror=...", 100]and[" >", 200]) bypassed per-item sanitization and assembled a live<img onerror=...>element in the DOM. Fixed inbillboard.js 4.1.3.
What to do now: Upgrade psqlODBC to >= 18.00.0006, apply vendor/distro updates for libslirp containing commits 21b33a6c55 and bad35bd3b5, upgrade PyMuPDF to >= 2.0.0 (or validate len(callout) in (2, 3) before calling add_freetext_annot), upgrade labbench to >= 0.46.1, and upgrade billboard.js to >= 4.1.3.
Affected packages and projects
| Ecosystem | Package / Project | CVE / GHSA | Severity | Affected versions | Fixed version | Vulnerable location |
|---|---|---|---|---|---|---|
| C / PostgreSQL | psqlODBC (postgresql-interfaces/psqlodbc) | CVE-2026-120057..120067 (11 CVEs) | CVSS 7.5 High (5), 7.1 High (1), 6.8..5.3 Medium (5) | < 18.00.0006 (120062 affects 17.00.0006..18.00.0005) | 18.00.0006 | connection.c, qresult.c, parse.c, convert.c, info.c, bind.c, results.c, mylog.c |
| C / Virtualization | libslirp (slirp/libslirp) | CVE-2026-120830, CVE-2026-120831 | CVSS 7.4 High / 6.5 Medium | Prior to commits 21b33a6c55 and bad35bd3b5 | Commits 21b33a6c55 and bad35bd3b5 | icmp_forward_error() in src/ip_icmp.c and if_output() in src/if.c |
| PyPI | PyMuPDF (pymupdf) | CVE-2026-120752 | CVSS 7.5 High | >= 1.25.3, < 2.0.0 | 2.0.0 (commit d4298ead84) | JM_set_annot_callout_line(), set_pixel(), and ll_JM_color_count() in src/extra.i |
| PyPI | labbench (usnistgov/labbench) | CVE-2026-120833 | CVSS 7.8 High | < 0.46.1 | 0.46.1 | read() and read_relational() in src/labbench/_data.py |
| npm | billboard.js | CVE-2026-120988 (GHSA-g5px-mcqp-3ghp) | Medium / High | < 4.1.3 | 4.1.3 | sanitize() in src/module/sanitize.ts, src/ChartInternal/internals/legend.ts, and src/config/resolver/canvas.ts |
Technical analysis
1. psqlODBC 18.00.0006 (CVE-2026-120057 through CVE-2026-120067): 11 memory-corruption, format-string, and SQL-injection bugs
Commit 79f4631db2 and commit 99467f09bb in psqlODBC 18.00.0006 fix 11 distinct CVEs across the driver:
| CVE | GHSA | CVSS | Vulnerable function | Technical root cause |
|---|---|---|---|---|
CVE-2026-120057 | GHSA-qhmr-5339-q33r | 7.5 High | CC_send_function() (connection.c), odbc_lo_read() (lobj.c) | Fast-path loread copied *actual_result_len bytes from the server reply directly into result_buf (memcpy(result_buf, value, *actual_result_len)) without passing or clamping to result_buf_len. |
CVE-2026-120058 | GHSA-6rmx-9q62-4w6m | 7.5 High | QR_from_PGresult() (qresult.c) | With UseDeclareFetch=1, the tuple cache is sized from the column count of the first FETCH, but later FETCH replies updated num_fields without checking that it matched, overrunning backend_tuples (or underflowing unsigned num_fields -= num_key_fields). |
CVE-2026-120059 | GHSA-44rq-72jh-x2h8 | 6.8 Medium | parse_statement() (parse.c) | For updatable cursors on tables without OIDs, the driver placed an auto-increment int4 column’s name into ti->bestqual (SPRINTF_FIXED(query, "\"%s\" = %%d", SAFE_NAME(ti->bestitem))) and later passed bestqual as the format string to appendPQExpBuffer(&buf, bestqual, oid) without doubling % directives in the column name. |
CVE-2026-120060 | GHSA-4mfx-cfxx-c877 | 5.9 Medium | PGAPI_BulkOperations(), PGAPI_Statistics(), convert_from_pgbinary() | Trusted server-supplied cached_rows in an unsigned size subtraction (size_of_rowset - cached_rows), trusted fields_vector[0] (colcnt) above INDEX_KEYS_STORAGE_COUNT, and read 3 bytes after \ on truncated octal bytea escapes. |
CVE-2026-120061 | GHSA-hfm6-qfx8-v4xq | 7.5 High | processParameters() & COPY_INTO_BUF (convert.c) | Wrote {fn ...} escape argument offsets into a 16-entry SQLLEN param_pos[16][2] stack array with no upper bound and without initializing unused slots to -1, and COPY_INTO_BUF wrote 1 byte past a 128-byte stack buffer on {d}, {t}, {ts}, or {escape} bodies. |
CVE-2026-120062 | GHSA-gg8f-fx3w-rj33 | 7.5 High | PGAPI_SpecialColumns() -> findPrimaryOrUnique() (info.c) | Spliced raw szTableName and szSchemaName into c.relname='%s' and n.nspname='%s' catalog queries instead of passing the already escaped escTableName and escSchemaName (17.00.0006..18.00.0005). |
CVE-2026-120063 | GHSA-285r-84w3-xcxv | 5.9 Medium | identifierEscape() (info.c) | Loop condition outlen < bufsize - 1 did not reserve space for a doubled quote plus the closing " and NUL terminator, writing up to 2 bytes (" and \0) past a 128-byte stack buffer. |
CVE-2026-120064 | GHSA-7pq2-q7mj-ph8c | 7.5 High | PGAPI_BindCol(), reset_a_column_binding(), PGAPI_ColAttributes(), PGAPI_SetPos() | icol > SHRT_MAX wrapped SQLSMALLINT binding counts negative; negative SQL_DESC_COUNT indexed before bindings[]; Int2 col_idx wrapped negative on large icol; and SQL_ADD in SQLSetPos did not check s.irow <= rowsetSize. |
CVE-2026-120065 | GHSA-9cg8-r57h-h6jj | 7.1 High | parse_statement() (parse.c) | Stored the server-reported auto-increment int4 column name in ti->bestitem without doubling embedded " characters, allowing a table author to inject SQL into positioned SELECT, UPDATE, and DELETE queries. |
CVE-2026-120066 | GHSA-wj7r-6pj3-62g8 | 5.3 Medium | logs_on_off() (mylog.c) | Opened debug/comm logs under /tmp with default permissions and without O_NOFOLLOW or ownership checks. |
CVE-2026-120067 | GHSA-3r96-h2q4-6pxh | 5.9 Medium | QR_read_tuples_from_pgres() (qresult.c) | Updatable cursors (enabled by default) append hidden ctid and oid columns and copy each value into a 32-byte stack buffer (char tidoidbuf[32]) using the server-sent PQgetlength without a bounds check. Even without a hostile server, any database user who creates a view with its own column named ctid returning >= 32 bytes overflows tidoidbuf when an application queries the view with an updatable cursor. |
Here is the keyset stack-overflow fix in qresult.c (CVE-2026-120067, commit 99467f09bb) and the SQLSpecialColumns SQL-injection fix in info.c (CVE-2026-120062, commit 79f4631db2):
--- a/qresult.c
+++ b/qresult.c
@@ -1404,7 +1404,15 @@ QR_read_tuples_from_pgres(QResultClass *self, PGresult **pgres)
len = PQgetlength(*pgres, rowno, field_lf);
value = PQgetvalue(*pgres, rowno, field_lf);
if (field_lf >= effective_cols)
+ {
+ if (len < 0 || len >= (int) sizeof(tidoidbuf))
+ {
+ QR_set_rstatus(self, PORES_FATAL_ERROR);
+ QR_set_message(self, "Oversized keyset (ctid/oid) field from server");
+ return FALSE;
+ }
buffer = tidoidbuf;
+ }
--- a/info.c
+++ b/info.c
@@ -2923,7 +2944,7 @@
-findPrimaryOrUnique(ConnectionClass *conn, StatementClass * stmt, const SQLCHAR * szTableName, const SQLCHAR *szTableQualifier, const SQLCHAR * szSchemaName, bool primaryOrUnique) {
+findPrimaryOrUnique(ConnectionClass *conn, StatementClass * stmt, const char *escTableName, const char *escSchemaName, bool primaryOrUnique) {
...
- appendPQExpBuffer(&columns_query, "WHERE i.indisprimary and a.attnum > 0 and c.relname='%s'" , szTableName );
+ appendPQExpBuffer(&columns_query, "WHERE i.indisprimary and a.attnum > 0 and c.relname='%s'" , escTableName ? escTableName : "" );
2. libslirp (CVE-2026-120830 and CVE-2026-120831): guest-to-host heap overread in icmp_forward_error() and queue corruption in if_output()
When libslirp generates an ICMP error packet (such as Time Exceeded or Destination Unreachable) in response to an IPv4 packet msrc from a guest VM or container, icmp_forward_error() in src/ip_icmp.c quotes the original IPv4 header plus the first 8 bytes of payload. Before commit 21b33a6c55 (CVE-2026-120830), s_ip_len was computed from the IPv4 header’s ip_len field and clamped only to ICMP_MAXDATALEN, never to the actual number of bytes received in msrc->m_len:
--- a/src/ip_icmp.c
+++ b/src/ip_icmp.c
@@ -557,6 +557,9 @@ void icmp_forward_error(struct mbuf *msrc, uint8_t type, uint8_t code, int minsi
else if (s_ip_len > ICMP_MAXDATALEN) /* maximum size */
s_ip_len = ICMP_MAXDATALEN;
+ if (s_ip_len > msrc->m_len)
+ s_ip_len = msrc->m_len;
+
m->m_len = ICMP_MINLEN + s_ip_len; /* 8 bytes ICMP header */
If a guest sent a short IPv4 packet whose ip_len header field was inflated up to ICMP_MAXDATALEN and triggered an ICMP error (for example with ip_ttl = 1), icmp_forward_error() copied s_ip_len - msrc->m_len bytes past the end of msrc->m_data on the host heap and sent them back to the guest inside the ICMP error payload.
Separately, in src/if.c (CVE-2026-120831, commit bad35bd3b5), when a socket on the fast queue (if_fastq) accumulated >= 6 queued packets, if_output() tried to move that session’s packet chain to the batch queue (if_batchq) by calling slirp_remque(ifm->m_nextpkt) and slirp_insque(ifm->m_nextpkt, &slirp->if_batchq) instead of walking m_prevpkt back to the session queue head head, corrupting the queue pointers and crashing the host networking process.
3. PyMuPDF 2.0 (CVE-2026-120752), NIST labbench 0.46.1 (CVE-2026-120833), and billboard.js 4.1.3 (CVE-2026-120988)
PyMuPDF(CVE-2026-120752): Insrc/extra.i,JM_set_annot_callout_line()copiedcount = (int) PySequence_Size(callout)points into a fixed 3-element stack arrayfz_point points[3]with no upper bound. Commitd4298ead84throwsstd::runtime_error(MSG_BAD_ARG_POINTS)whencount > sizeof(points)/sizeof(points[0])and also replaces anassert(n <= sizeof(oldpix))inll_JM_color_count()and an uncheckedunsigned char c[5]inset_pixel()with runtimestd::range_errorguards.- NIST
labbench(CVE-2026-120833): Insrc/labbench/_data.py,read()andread_relational()inferred the file format from the path suffix and calledpd.read_pickle()on any.por.picklefile. Commitac9b9b18cb(0.46.1) wrapspd.read_pickle()in a gate that raisesRuntimeErrorunlessLABBENCH_AUTOLOAD_PICKLEis explicitly enabled. billboard.js(CVE-2026-120988/GHSA-g5px-mcqp-3ghp): Insrc/ChartInternal/internals/legend.tsandsrc/config/resolver/canvas.ts, custom HTML legend templates calledsanitize()on each series item and then concatenated them (html += content) before passinghtmltowrapper.html(html). Becausesanitize()only matched complete<...>tags, an unterminated<img src=x onerror=...in the first series ID survivedsanitize()and was closed by>in the second series ID. Commit0e9431eb1a(4.1.3) escapes trailing unterminated<[^>]*$sequences insanitize()and runssanitize(html)a second time on the concatenated legend string.
Detection and remediation
# 1. Check installed psqlODBC driver version on Linux/macOS
odbcinst -q -d
dpkg -l | rg "odbc-postgresql|psqlodbc" 2>/dev/null
rpm -qa | rg "postgresql-odbc|psqlodbc" 2>/dev/null
# 2. Check libslirp, PyMuPDF, labbench, and billboard.js versions
dpkg -l | rg "libslirp" 2>/dev/null
pip show PyMuPDF labbench 2>/dev/null
rg -n '"billboard\.js"' package.json package-lock.json pnpm-lock.yaml yarn.lock 2>/dev/null
If your application uses psqlODBC and cannot immediately upgrade to 18.00.0006, set UpdatableCursors=0 and UseDeclareFetch=0 in your DSN or connection string, disable Debug and CommLog in production, and require sslmode=verify-full for all PostgreSQL connections.
Timeline
- 16 October 2026 (
02:15to03:00 UTC): NAVER merges commit0e9431eb1aand releasesbillboard.js 4.1.3. - 2 November 2026 (
15:04to18:01 UTC): PostgreSQLpsqlODBCmaintainers merge commits99467f09bband79f4631db2and releasepsqlODBC 18.00.0006. - 2 November 2026 (
19:18to23:17 UTC): NVD publishesCVE-2026-120057throughCVE-2026-120067forpsqlODBCandCVE-2026-120752forPyMuPDF. - 3 November 2026 (
00:17to08:17 UTC): NVD publishesCVE-2026-120830andCVE-2026-120831forlibslirp,CVE-2026-120833forlabbench, andCVE-2026-120988(GHSA-g5px-mcqp-3ghp) forbillboard.js.
From research to remediation
Check whether this pattern exists in your codebase
Turn this research into a remediation workflow. Scan dependencies and package manifests for similar supply-chain risk, then prioritize fixes with reachability context.
References
- psqlODBC 18.00.0006 Release, Changelog, and Commits 79f4631db2 and 99467f09bb (CVE-2026-120057 through CVE-2026-120067)
- psqlODBC Security Advisories GHSA-qhmr-5339-q33r (CVE-2026-120057), GHSA-6rmx-9q62-4w6m (CVE-2026-120058), GHSA-hfm6-qfx8-v4xq (CVE-2026-120061), and GHSA-gg8f-fx3w-rj33 (CVE-2026-120062)
- libslirp Commits 21b33a6c55 (CVE-2026-120830: icmp_forward_error OOB heap read) and bad35bd3b5 (CVE-2026-120831: if_output queue corruption)
- PyMuPDF Commit d4298ead84 (CVE-2026-120752: JM_set_annot_callout_line stack buffer overflow) and NIST labbench Commit ac9b9b18cb (CVE-2026-120833)
- naver/billboard.js Advisory GHSA-g5px-mcqp-3ghp and Commit 0e9431eb1a (CVE-2026-120988: split-tag XSS in custom legend templates)