pg.ddx.io pgpool-committers@postgresql.org mailing list archivehelp / color / mirror / Atom feed
pgpool: Reject client certificate CN containing embedded NUL byte. 6+ messages / 1 participants [nested] [flat]
* pgpool: Reject client certificate CN containing embedded NUL byte. @ 2026-09-29 04:41 Taiki Koshino <koshino@sraoss.co.jp> 0 siblings, 0 replies; 6+ messages in thread From: Taiki Koshino @ 2026-09-29 04:41 UTC (permalink / raw) To: pgpool-committers@lists.postgresql.org Reject client certificate CN containing embedded NUL byte. X509_NAME_get_text_by_NID returns the ASN.1 byte length of the Common Name string. pgpool stored the buffer as a C string and later compared it to the HBA-supplied username with strcasecmp(). If the certificate CN contains an embedded NUL byte (e.g. "target\0attacker"), the ASN.1-length view of the name and the C-string view disagree: strcasecmp() truncates at the embedded NUL, so a peer presenting a maliciously crafted certificate authenticates as the prefix. Reject the certificate when the C-string length of the extracted CN differs from the byte length returned by X509_NAME_get_text_by_NID(). Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl> Reported-by: Claude Author: Bo Peng <pengbo@sraoss.co.jp> CVE-2026-92868 Backpatch-through: v4.3 Branch ------ V4_7_STABLE Details ------- https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=f135cf0fa58bd6c9d0edcbd6b36f67331cc96... Modified Files -------------- src/utils/pool_ssl.c | 6 ++++++ 1 file changed, 6 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgpool: Reject client certificate CN containing embedded NUL byte. @ 2026-09-29 04:43 Taiki Koshino <koshino@sraoss.co.jp> 0 siblings, 0 replies; 6+ messages in thread From: Taiki Koshino @ 2026-09-29 04:43 UTC (permalink / raw) To: pgpool-committers@lists.postgresql.org Reject client certificate CN containing embedded NUL byte. X509_NAME_get_text_by_NID returns the ASN.1 byte length of the Common Name string. pgpool stored the buffer as a C string and later compared it to the HBA-supplied username with strcasecmp(). If the certificate CN contains an embedded NUL byte (e.g. "target\0attacker"), the ASN.1-length view of the name and the C-string view disagree: strcasecmp() truncates at the embedded NUL, so a peer presenting a maliciously crafted certificate authenticates as the prefix. Reject the certificate when the C-string length of the extracted CN differs from the byte length returned by X509_NAME_get_text_by_NID(). Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl> Reported-by: Claude Author: Bo Peng <pengbo@sraoss.co.jp> CVE-2026-92868 Backpatch-through: v4.3 Branch ------ V4_6_STABLE Details ------- https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=8553c4c570d338e1a2d47ada56bc685f37309... Modified Files -------------- src/utils/pool_ssl.c | 6 ++++++ 1 file changed, 6 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgpool: Reject client certificate CN containing embedded NUL byte. @ 2026-09-29 04:43 Taiki Koshino <koshino@sraoss.co.jp> 0 siblings, 0 replies; 6+ messages in thread From: Taiki Koshino @ 2026-09-29 04:43 UTC (permalink / raw) To: pgpool-committers@lists.postgresql.org Reject client certificate CN containing embedded NUL byte. X509_NAME_get_text_by_NID returns the ASN.1 byte length of the Common Name string. pgpool stored the buffer as a C string and later compared it to the HBA-supplied username with strcasecmp(). If the certificate CN contains an embedded NUL byte (e.g. "target\0attacker"), the ASN.1-length view of the name and the C-string view disagree: strcasecmp() truncates at the embedded NUL, so a peer presenting a maliciously crafted certificate authenticates as the prefix. Reject the certificate when the C-string length of the extracted CN differs from the byte length returned by X509_NAME_get_text_by_NID(). Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl> Reported-by: Claude Author: Bo Peng <pengbo@sraoss.co.jp> CVE: CVE-2026-92868 Backpatch-through: v4.3 Branch ------ V4_5_STABLE Details ------- https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=8568b04481a8710a5b074b32d872dc7a5d9fc... Modified Files -------------- src/utils/pool_ssl.c | 6 ++++++ 1 file changed, 6 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgpool: Reject client certificate CN containing embedded NUL byte. @ 2026-09-29 04:43 Taiki Koshino <koshino@sraoss.co.jp> 0 siblings, 0 replies; 6+ messages in thread From: Taiki Koshino @ 2026-09-29 04:43 UTC (permalink / raw) To: pgpool-committers@lists.postgresql.org Reject client certificate CN containing embedded NUL byte. X509_NAME_get_text_by_NID returns the ASN.1 byte length of the Common Name string. pgpool stored the buffer as a C string and later compared it to the HBA-supplied username with strcasecmp(). If the certificate CN contains an embedded NUL byte (e.g. "target\0attacker"), the ASN.1-length view of the name and the C-string view disagree: strcasecmp() truncates at the embedded NUL, so a peer presenting a maliciously crafted certificate authenticates as the prefix. Reject the certificate when the C-string length of the extracted CN differs from the byte length returned by X509_NAME_get_text_by_NID(). Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl> Reported-by: Claude Author: Bo Peng <pengbo@sraoss.co.jp> CVE-2026-92868 Backpatch-through: v4.3 Branch ------ V4_4_STABLE Details ------- https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=1fe913dbb51f44dce24e8a190fc974b73d6f4... Modified Files -------------- src/utils/pool_ssl.c | 6 ++++++ 1 file changed, 6 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgpool: Reject client certificate CN containing embedded NUL byte. @ 2026-09-29 04:44 Taiki Koshino <koshino@sraoss.co.jp> 0 siblings, 0 replies; 6+ messages in thread From: Taiki Koshino @ 2026-09-29 04:44 UTC (permalink / raw) To: pgpool-committers@lists.postgresql.org Reject client certificate CN containing embedded NUL byte. X509_NAME_get_text_by_NID returns the ASN.1 byte length of the Common Name string. pgpool stored the buffer as a C string and later compared it to the HBA-supplied username with strcasecmp(). If the certificate CN contains an embedded NUL byte (e.g. "target\0attacker"), the ASN.1-length view of the name and the C-string view disagree: strcasecmp() truncates at the embedded NUL, so a peer presenting a maliciously crafted certificate authenticates as the prefix. Reject the certificate when the C-string length of the extracted CN differs from the byte length returned by X509_NAME_get_text_by_NID(). Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl> Reported-by: Claude Author: Bo Peng <pengbo@sraoss.co.jp> CVE-2026-92868 Backpatch-through: v4.3 Branch ------ V4_3_STABLE Details ------- https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=9ae50d372e02a753f1ca0693ba066feb8a086... Modified Files -------------- src/utils/pool_ssl.c | 6 ++++++ 1 file changed, 6 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
* pgpool: Reject client certificate CN containing embedded NUL byte. @ 2026-09-29 04:47 Taiki Koshino <koshino@sraoss.co.jp> 0 siblings, 0 replies; 6+ messages in thread From: Taiki Koshino @ 2026-09-29 04:47 UTC (permalink / raw) To: pgpool-committers@lists.postgresql.org Reject client certificate CN containing embedded NUL byte. X509_NAME_get_text_by_NID returns the ASN.1 byte length of the Common Name string. pgpool stored the buffer as a C string and later compared it to the HBA-supplied username with strcasecmp(). If the certificate CN contains an embedded NUL byte (e.g. "target\0attacker"), the ASN.1-length view of the name and the C-string view disagree: strcasecmp() truncates at the embedded NUL, so a peer presenting a maliciously crafted certificate authenticates as the prefix. Reject the certificate when the C-string length of the extracted CN differs from the byte length returned by X509_NAME_get_text_by_NID(). Reported-by: Emond Papegaaij <emond.papegaaij@topicus.nl> Reported-by: Claude Author: Bo Peng <pengbo@sraoss.co.jp> CVE-2026-92868 Backpatch-through: v4.3 Branch ------ master Details ------- https://git.postgresql.org/gitweb?p=pgpool2.git;a=commitdiff;h=d0a783343ce8e6331a78e2d086b184f504d15... Modified Files -------------- src/utils/pool_ssl.c | 6 ++++++ 1 file changed, 6 insertions(+) ^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2026-09-29 04:47 UTC | newest] Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2026-09-29 04:41 pgpool: Reject client certificate CN containing embedded NUL byte. Taiki Koshino <koshino@sraoss.co.jp> 2026-09-29 04:43 pgpool: Reject client certificate CN containing embedded NUL byte. Taiki Koshino <koshino@sraoss.co.jp> 2026-09-29 04:43 pgpool: Reject client certificate CN containing embedded NUL byte. Taiki Koshino <koshino@sraoss.co.jp> 2026-09-29 04:43 pgpool: Reject client certificate CN containing embedded NUL byte. Taiki Koshino <koshino@sraoss.co.jp> 2026-09-29 04:44 pgpool: Reject client certificate CN containing embedded NUL byte. Taiki Koshino <koshino@sraoss.co.jp> 2026-09-29 04:47 pgpool: Reject client certificate CN containing embedded NUL byte. Taiki Koshino <koshino@sraoss.co.jp>
This inbox is served by DDX for PostgreSQL; see mirroring instructions for how to clone and mirror all data and code used for this inbox